summaryrefslogtreecommitdiff
path: root/daemon/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/settings.h')
-rw-r--r--daemon/settings.h170
1 files changed, 89 insertions, 81 deletions
diff --git a/daemon/settings.h b/daemon/settings.h
index 4534a54..826f0ce 100644
--- a/daemon/settings.h
+++ b/daemon/settings.h
@@ -1,81 +1,89 @@
-#ifndef SETTINGS_H
-#define SETTINGS_H
-
-#include <MDConfGroup>
-
-class Settings : public MDConfGroup
-{
- Q_OBJECT
-
- Q_PROPERTY(QString profileWhenConnected MEMBER profileWhenConnected NOTIFY profileWhenConnectedChanged)
- Q_PROPERTY(QString profileWhenDisconnected MEMBER profileWhenDisconnected NOTIFY profileWhenDisconnectedChanged)
- Q_PROPERTY(bool transliterateMessage MEMBER transliterateMessage NOTIFY transliterateMessageChanged)
- Q_PROPERTY(bool useSystemVolume MEMBER useSystemVolume NOTIFY useSystemVolumeChanged)
- Q_PROPERTY(bool incomingCallNotification MEMBER incomingCallNotification NOTIFY incomingCallNotificationChanged)
- Q_PROPERTY(bool notificationsCommhistoryd MEMBER notificationsCommhistoryd NOTIFY notificationsCommhistorydChanged)
- Q_PROPERTY(bool notificationsMissedCall MEMBER notificationsMissedCall NOTIFY notificationsMissedCallChanged)
- Q_PROPERTY(bool notificationsEmails MEMBER notificationsEmails NOTIFY notificationsEmailsChanged)
- Q_PROPERTY(bool notificationsMitakuuluu MEMBER notificationsMitakuuluu NOTIFY notificationsMitakuuluuChanged)
- Q_PROPERTY(bool notificationsTwitter MEMBER notificationsTwitter NOTIFY notificationsTwitterChanged)
- Q_PROPERTY(bool notificationsFacebook MEMBER notificationsFacebook NOTIFY notificationsFacebookChanged)
- 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;
- bool transliterateMessage;
- bool useSystemVolume;
- bool incomingCallNotification;
- bool notificationsCommhistoryd;
- bool notificationsMissedCall;
- bool notificationsEmails;
- bool notificationsMitakuuluu;
- bool notificationsTwitter;
- bool notificationsFacebook;
- bool notificationsOther;
- bool notificationsAll;
- QString accountToken;
- bool debug;
-
-public:
- explicit Settings(QObject *parent = 0) :
- MDConfGroup("/org/pebbled/settings", parent, BindProperties),
- transliterateMessage(false),
- useSystemVolume(true),
- incomingCallNotification(true),
- notificationsCommhistoryd(true),
- notificationsMissedCall(true),
- notificationsEmails(false),
- notificationsMitakuuluu(true),
- notificationsTwitter(true),
- notificationsFacebook(true),
- notificationsOther(true),
- notificationsAll(false),
- debug(false)
- {
- resolveMetaObject();
- QMetaObject::invokeMethod(this, "propertyChanged", Qt::DirectConnection);
- sync();
- }
-
-signals:
- void profileWhenConnectedChanged();
- void profileWhenDisconnectedChanged();
- void transliterateMessageChanged();
- void useSystemVolumeChanged();
- void incomingCallNotificationChanged();
- void notificationsCommhistorydChanged();
- void notificationsMissedCallChanged();
- void notificationsEmailsChanged();
- void notificationsMitakuuluuChanged();
- void notificationsTwitterChanged();
- void notificationsFacebookChanged();
- void notificationsOtherChanged();
- void notificationsAllChanged();
- void accountTokenChanged();
- void debugChanged();
-};
-
-#endif // SETTINGS_H
+#ifndef SETTINGS_H
+#define SETTINGS_H
+
+#include <MDConfGroup>
+
+class Settings : public MDConfGroup
+{
+ Q_OBJECT
+
+ Q_PROPERTY(QString profileWhenConnected MEMBER profileWhenConnected NOTIFY profileWhenConnectedChanged)
+ Q_PROPERTY(QString profileWhenDisconnected MEMBER profileWhenDisconnected NOTIFY profileWhenDisconnectedChanged)
+ Q_PROPERTY(bool transliterateMessage MEMBER transliterateMessage NOTIFY transliterateMessageChanged)
+ Q_PROPERTY(bool useSystemVolume MEMBER useSystemVolume NOTIFY useSystemVolumeChanged)
+ Q_PROPERTY(bool incomingCallNotification MEMBER incomingCallNotification NOTIFY incomingCallNotificationChanged)
+ Q_PROPERTY(bool notificationsCommhistoryd MEMBER notificationsCommhistoryd NOTIFY notificationsCommhistorydChanged)
+ Q_PROPERTY(bool notificationsMissedCall MEMBER notificationsMissedCall NOTIFY notificationsMissedCallChanged)
+ Q_PROPERTY(bool notificationsEmails MEMBER notificationsEmails NOTIFY notificationsEmailsChanged)
+ Q_PROPERTY(bool notificationsTwitter MEMBER notificationsTwitter NOTIFY notificationsTwitterChanged)
+ Q_PROPERTY(bool notificationsFacebook MEMBER notificationsFacebook NOTIFY notificationsFacebookChanged)
+ Q_PROPERTY(bool notificationsTelegram MEMBER notificationsTelegram NOTIFY notificationsTelegramChanged)
+ Q_PROPERTY(bool notificationsWhatsapp MEMBER notificationsWhatsapp NOTIFY notificationsWhatsappChanged)
+ Q_PROPERTY(bool notificationsHangouts MEMBER notificationsHangouts NOTIFY notificationsHangoutsChanged)
+ 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;
+ bool transliterateMessage;
+ bool useSystemVolume;
+ bool incomingCallNotification;
+ bool notificationsCommhistoryd;
+ bool notificationsMissedCall;
+ bool notificationsEmails;
+ bool notificationsTwitter;
+ bool notificationsFacebook;
+ bool notificationsTelegram;
+ bool notificationsWhatsapp;
+ bool notificationsHangouts;
+ bool notificationsOther;
+ bool notificationsAll;
+ QString accountToken;
+ bool debug;
+
+public:
+ explicit Settings(QObject *parent = 0) :
+ MDConfGroup("/org/pebbled/settings", parent, BindProperties),
+ transliterateMessage(false),
+ useSystemVolume(true),
+ incomingCallNotification(true),
+ notificationsCommhistoryd(true),
+ notificationsMissedCall(true),
+ notificationsEmails(false),
+ notificationsTwitter(true),
+ notificationsFacebook(true),
+ notificationsTelegram(true),
+ notificationsWhatsapp(true),
+ notificationsHangouts(true),
+ notificationsOther(true),
+ notificationsAll(false),
+ debug(false)
+ {
+ resolveMetaObject();
+ QMetaObject::invokeMethod(this, "propertyChanged", Qt::DirectConnection);
+ sync();
+ }
+
+signals:
+ void profileWhenConnectedChanged();
+ void profileWhenDisconnectedChanged();
+ void transliterateMessageChanged();
+ void useSystemVolumeChanged();
+ void incomingCallNotificationChanged();
+ void notificationsCommhistorydChanged();
+ void notificationsMissedCallChanged();
+ void notificationsEmailsChanged();
+ void notificationsTwitterChanged();
+ void notificationsFacebookChanged();
+ void notificationsTelegramChanged();
+ void notificationsWhatsappChanged();
+ void notificationsHangoutsChanged();
+ void notificationsOtherChanged();
+ void notificationsAllChanged();
+ void accountTokenChanged();
+ void debugChanged();
+};
+
+#endif // SETTINGS_H