From 7116e096e1288170da3820c77e41e377f9bd69be Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 18 May 2015 09:35:38 +0200 Subject: Save default settings to DConf if not present --- daemon/settings.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'daemon/settings.h') diff --git a/daemon/settings.h b/daemon/settings.h index 3c38473..a247dc5 100644 --- a/daemon/settings.h +++ b/daemon/settings.h @@ -39,8 +39,23 @@ class Settings : public MDConfGroup public: explicit Settings(QObject *parent = 0) : - MDConfGroup("/org/pebbled/settings", parent, BindProperties) - { resolveMetaObject(); } + 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) + { + resolveMetaObject(); + QMetaObject::invokeMethod(this, "propertyChanged", Qt::DirectConnection); + sync(); + } signals: void profileWhenConnectedChanged(); -- cgit v1.2.3