syncthingtray/tray/application/settings.h

67 lines
1.2 KiB
C
Raw Normal View History

2016-08-25 00:45:32 +02:00
#ifndef SETTINGS_H
#define SETTINGS_H
#include "../../connector/syncthingconnectionsettings.h"
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
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 &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-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();
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