syncthingtray/application/settings.h

65 lines
1.1 KiB
C
Raw Normal View History

2016-08-25 00:45:32 +02:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include <c++utilities/conversion/types.h>
#include <QtGlobal>
QT_FORWARD_DECLARE_CLASS(QByteArray)
QT_FORWARD_DECLARE_CLASS(QString)
2016-09-01 16:34:30 +02:00
QT_FORWARD_DECLARE_CLASS(QSize)
2016-08-25 00:45:32 +02:00
namespace Media {
enum class TagUsage;
enum class ElementPosition;
}
namespace Dialogs {
class QtSettings;
}
namespace Settings {
2016-09-01 16:34:30 +02:00
bool &firstLaunch();
// connection
2016-08-25 00:45:32 +02:00
QString &syncthingUrl();
bool &authEnabled();
QString &userName();
QString &password();
QByteArray &apiKey();
2016-09-01 16:34:30 +02:00
// notifications
2016-08-25 00:45:32 +02:00
bool &notifyOnDisconnect();
2016-09-01 16:34:30 +02:00
bool &notifyOnInternalErrors();
2016-08-25 00:45:32 +02:00
bool &notifyOnSyncComplete();
bool &showSyncthingNotifications();
2016-09-01 16:34:30 +02:00
// apprearance
2016-08-29 20:51:30 +02:00
bool &showTraffic();
2016-09-01 16:34:30 +02:00
QSize &trayMenuSize();
2016-09-03 19:39:43 +02:00
int &frameStyle();
2016-08-25 00:45:32 +02:00
2016-09-01 16:34:30 +02:00
// autostart/launcher
2016-08-25 00:45:32 +02:00
bool &launchSynchting();
2016-09-03 19:39:43 +02:00
QString &syncthingPath();
QString &syncthingArgs();
2016-08-25 00:45:32 +02:00
2016-09-01 16:34:30 +02:00
// web view
2016-08-25 00:45:32 +02:00
#if defined(SYNCTHINGTRAY_USE_WEBENGINE) || defined(SYNCTHINGTRAY_USE_WEBKIT)
bool &webViewDisabled();
double &webViewZoomFactor();
QByteArray &webViewGeometry();
bool &webViewKeepRunning();
#endif
// Qt settings
Dialogs::QtSettings &qtSettings();
void restore();
void save();
}
#endif // SETTINGS_H