diff options
| author | Philipp Andreas <github@smurfy.de> | 2014-07-22 22:18:00 +0200 |
|---|---|---|
| committer | Philipp Andreas <github@smurfy.de> | 2014-07-22 22:18:00 +0200 |
| commit | 3c1e7d693aad55658c4d6d3b061b3368fd145610 (patch) | |
| tree | 1cc6b732c6f42a1162f6b9ac056ae7537587ba32 /app | |
| parent | ee7c3abcc960f5d4fd8686f3f3478c6f77e39b82 (diff) | |
Adding settings for notifications
Diffstat (limited to 'app')
| -rw-r--r-- | app/qml/pages/ManagerPage.qml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml index 6f94e4b..04035da 100644 --- a/app/qml/pages/ManagerPage.qml +++ b/app/qml/pages/ManagerPage.qml @@ -41,6 +41,12 @@ Page { id: settings path: "/org/pebbled/settings" property bool silentWhenConnected: false + property bool notificationsCommhistoryd: true + property bool notificationsMissedCall: true + property bool notificationsEmails: false + property bool notificationsMitakuuluu: true + property bool notificationsOther: true + property bool notificationsAll: false } SilicaFlickable { @@ -140,6 +146,69 @@ Page { settings.silentWhenConnected = !settings.silentWhenConnected; } } + + Label { + text: qsTr("Notifications") + font.family: Theme.fontFamilyHeading + color: Theme.highlightColor + anchors.right: parent.right + anchors.rightMargin: Theme.paddingMedium + } + + TextSwitch { + text: qsTr("Messaging (SMS and IM)") + checked: settings.notificationsCommhistoryd + automaticCheck: false + onClicked: { + settings.notificationsCommhistoryd = !settings.notificationsCommhistoryd; + } + } + + TextSwitch { + text: qsTr("Missed call") + checked: settings.notificationsMissedCall + automaticCheck: false + onClicked: { + settings.notificationsMissedCall = !settings.notificationsMissedCall; + } + } + + TextSwitch { + text: qsTr("Emails") + checked: settings.notificationsEmails + automaticCheck: false + onClicked: { + settings.notificationsEmails = !settings.notificationsEmails; + } + } + + TextSwitch { + text: qsTr("Mitakuuluu") + checked: settings.notificationsMitakuuluu + automaticCheck: false + onClicked: { + settings.notificationsMitakuuluu = !settings.notificationsMitakuuluu; + } + } + + TextSwitch { + text: qsTr("Other phone notification") + checked: settings.notificationsOther + automaticCheck: false + onClicked: { + settings.notificationsOther = !settings.notificationsOther; + } + } + + TextSwitch { + text: qsTr("All phone notifications") + checked: settings.notificationsAll + automaticCheck: false + enabled: settings.notificationsOther + onClicked: { + settings.notificationsAll = !settings.notificationsAll; + } + } } } } |
