diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-06-18 22:26:10 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-06-18 22:26:10 +0200 |
| commit | 4716453e97602e60f58865692f7dc714f5f992e9 (patch) | |
| tree | eea4e4e04e5b0defaae53af0368f1903f28db8ef /daemon/settings.h | |
| parent | ff461247fe6416540f3e211aba40d61c1e359221 (diff) | |
Implemented togglable debug mode
Diffstat (limited to 'daemon/settings.h')
| -rw-r--r-- | daemon/settings.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/settings.h b/daemon/settings.h index a247dc5..4534a54 100644 --- a/daemon/settings.h +++ b/daemon/settings.h @@ -21,6 +21,7 @@ class Settings : public MDConfGroup Q_PROPERTY(bool notificationsOther MEMBER notificationsOther NOTIFY notificationsOtherChanged) Q_PROPERTY(bool notificationsAll MEMBER notificationsAll NOTIFY notificationsAllChanged) Q_PROPERTY(QString accountToken MEMBER accountToken NOTIFY accountTokenChanged) + Q_PROPERTY(bool debug MEMBER debug NOTIFY debugChanged) QString profileWhenConnected; QString profileWhenDisconnected; @@ -36,6 +37,7 @@ class Settings : public MDConfGroup bool notificationsOther; bool notificationsAll; QString accountToken; + bool debug; public: explicit Settings(QObject *parent = 0) : @@ -50,7 +52,8 @@ public: notificationsTwitter(true), notificationsFacebook(true), notificationsOther(true), - notificationsAll(false) + notificationsAll(false), + debug(false) { resolveMetaObject(); QMetaObject::invokeMethod(this, "propertyChanged", Qt::DirectConnection); @@ -72,6 +75,7 @@ signals: void notificationsOtherChanged(); void notificationsAllChanged(); void accountTokenChanged(); + void debugChanged(); }; #endif // SETTINGS_H |
