52 lines
898 B
C++
52 lines
898 B
C++
#ifndef SETTINGS_H
|
|
#define SETTINGS_H
|
|
|
|
#include <c++utilities/conversion/types.h>
|
|
|
|
#include <QtGlobal>
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QByteArray)
|
|
QT_FORWARD_DECLARE_CLASS(QString)
|
|
|
|
namespace Media {
|
|
enum class TagUsage;
|
|
enum class ElementPosition;
|
|
}
|
|
|
|
namespace Dialogs {
|
|
class QtSettings;
|
|
}
|
|
|
|
namespace Settings {
|
|
|
|
QString &syncthingUrl();
|
|
bool &authEnabled();
|
|
QString &userName();
|
|
QString &password();
|
|
QByteArray &apiKey();
|
|
|
|
bool ¬ifyOnDisconnect();
|
|
bool ¬ifyOnErrors();
|
|
bool ¬ifyOnSyncComplete();
|
|
bool &showSyncthingNotifications();
|
|
|
|
bool &launchSynchting();
|
|
QString &syncthingCommand();
|
|
|
|
#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
|