summaryrefslogtreecommitdiff
path: root/app/qml/pages
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-06-19 13:23:55 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-06-19 13:23:55 +0200
commit98aaa3a2292989f05f5c3e683e2dd4f20bb145e3 (patch)
tree505524dca0466930ec0a839e75476dc8c8de1ee9 /app/qml/pages
parent231462ccfe9fbc25fcc44a4ef128a174329b1901 (diff)
Notifications debugging via magic cookies
Diffstat (limited to 'app/qml/pages')
-rw-r--r--app/qml/pages/WatchPage.qml41
1 files changed, 41 insertions, 0 deletions
diff --git a/app/qml/pages/WatchPage.qml b/app/qml/pages/WatchPage.qml
index 730f850..3f5a5d6 100644
--- a/app/qml/pages/WatchPage.qml
+++ b/app/qml/pages/WatchPage.qml
@@ -1,12 +1,19 @@
import QtQuick 2.0
import QtQml 2.1
import Sailfish.Silica 1.0
+import org.nemomobile.configuration 1.0
Page {
id: watchPage
property bool firmwareVersionOK: app.firmwareVersion && app.firmwareVersion.indexOf("v1.") !== 0
+ ConfigurationGroup {
+ id: settings
+ path: "/org/pebbled/settings"
+ property bool debug
+ }
+
SilicaFlickable {
id: flickable
anchors.fill: parent
@@ -48,6 +55,40 @@ Page {
onClicked: pebbled.time()
}
}
+ Row {
+ anchors {
+ left: parent.left
+ right: parent.right
+ margins: Theme.paddingLarge
+ }
+
+ visible: settings.debug
+ Button {
+ text: qsTr("SMS")
+ width: parent.width / 5
+ onClicked: pebbled.ping(128)
+ }
+ Button {
+ text: qsTr("E-Mail")
+ width: parent.width / 5
+ onClicked: pebbled.ping(129)
+ }
+ Button {
+ text: qsTr("FB")
+ width: parent.width / 5
+ onClicked: pebbled.ping(130)
+ }
+ Button {
+ text: qsTr("Twt")
+ width: parent.width / 5
+ onClicked: pebbled.ping(131)
+ }
+ Button {
+ text: qsTr("Music")
+ width: parent.width / 5
+ onClicked: pebbled.ping(132)
+ }
+ }
Item {
width: parent.width