2016-08-25 00:45:32 +02:00
|
|
|
#ifndef SETTINGS_H
|
|
|
|
#define SETTINGS_H
|
|
|
|
|
2016-09-30 23:55:25 +02:00
|
|
|
#include "../../connector/syncthingconnectionsettings.h"
|
2016-09-29 21:19:54 +02:00
|
|
|
|
2016-08-25 00:45:32 +02:00
|
|
|
#include <c++utilities/conversion/types.h>
|
|
|
|
|
2016-09-03 20:14:52 +02:00
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
|
|
|
|
#include <vector>
|
2016-08-25 00:45:32 +02:00
|
|
|
|
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-09-29 21:19:54 +02:00
|
|
|
Data::SyncthingConnectionSettings &primaryConnectionSettings();
|
|
|
|
std::vector<Data::SyncthingConnectionSettings> &secondaryConnectionSettings();
|
2016-08-25 00:45:32 +02:00
|
|
|
|
2016-09-01 16:34:30 +02:00
|
|
|
// notifications
|
2016-08-25 00:45:32 +02:00
|
|
|
bool ¬ifyOnDisconnect();
|
2016-09-01 16:34:30 +02:00
|
|
|
bool ¬ifyOnInternalErrors();
|
2016-08-25 00:45:32 +02:00
|
|
|
bool ¬ifyOnSyncComplete();
|
|
|
|
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-10-03 01:16:47 +02:00
|
|
|
int &tabPosition();
|
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-09-29 21:19:54 +02:00
|
|
|
QString syncthingCmd();
|
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
|