summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2014-07-28 11:04:12 +0200
committerTomasz Sterna <tomek@xiaoka.com>2014-07-28 11:04:12 +0200
commit0ead71b6a9b5c49a4bdc055ce45bc8531b538a20 (patch)
tree21e92503bf004773625c6208f08a1c6b93182b96 /app
parent05502a35e1b1bd10a4ba81d2974d5c41e6a1ef35 (diff)
parent5f3e8fd022e29d3014b4e0888f310a5ac512b467 (diff)
Merge pull request #12 from smurfy/notifications
Notifications via freedesktop.org interface snooping
Diffstat (limited to 'app')
-rw-r--r--app/qml/pages/ManagerPage.qml90
1 files changed, 90 insertions, 0 deletions
diff --git a/app/qml/pages/ManagerPage.qml b/app/qml/pages/ManagerPage.qml
index 6f94e4b..ecb7610 100644
--- a/app/qml/pages/ManagerPage.qml
+++ b/app/qml/pages/ManagerPage.qml
@@ -41,6 +41,14 @@ 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 notificationsTwitter: true
+ property bool notificationsFacebook: true
+ property bool notificationsOther: true
+ property bool notificationsAll: false
}
SilicaFlickable {
@@ -140,6 +148,88 @@ 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("Twitter")
+ checked: settings.notificationsTwitter
+ automaticCheck: false
+ onClicked: {
+ settings.notificationsTwitter = !settings.notificationsTwitter;
+ }
+ }
+
+ TextSwitch {
+ visible: false //not yet supported
+ text: qsTr("Facebook")
+ checked: settings.notificationsFacebook
+ automaticCheck: false
+ onClicked: {
+ settings.notificationsFacebook = !settings.notificationsFacebook;
+ }
+ }
+
+ 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;
+ }
+ }
}
}
}