From 3f64297af4e7a070b4f62ebf3f17105ee6b0a3a8 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Thu, 30 Apr 2015 16:33:09 +0200 Subject: Implemented profile changes on watch (dis)connection --- daemon/settings.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'daemon/settings.h') diff --git a/daemon/settings.h b/daemon/settings.h index 688b211..3c38473 100644 --- a/daemon/settings.h +++ b/daemon/settings.h @@ -7,7 +7,8 @@ class Settings : public MDConfGroup { Q_OBJECT - Q_PROPERTY(bool silentWhenConnected MEMBER silentWhenConnected NOTIFY silentWhenConnectedChanged) + 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) @@ -21,7 +22,8 @@ class Settings : public MDConfGroup Q_PROPERTY(bool notificationsAll MEMBER notificationsAll NOTIFY notificationsAllChanged) Q_PROPERTY(QString accountToken MEMBER accountToken NOTIFY accountTokenChanged) - bool silentWhenConnected; + QString profileWhenConnected; + QString profileWhenDisconnected; bool transliterateMessage; bool useSystemVolume; bool incomingCallNotification; @@ -41,7 +43,8 @@ public: { resolveMetaObject(); } signals: - void silentWhenConnectedChanged(); + void profileWhenConnectedChanged(); + void profileWhenDisconnectedChanged(); void transliterateMessageChanged(); void useSystemVolumeChanged(); void incomingCallNotificationChanged(); -- cgit v1.2.3