summaryrefslogtreecommitdiff
path: root/libsowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-03 21:13:31 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-03 21:13:31 +0200
commit9e061170b3834845910749c55eda63f03d982bbf (patch)
tree0837bbdb63918eaf07333a81a98a21646d5ac3c6 /libsowatch
parentfba422cb3999e5c1a35849891861faa24494bd50 (diff)
downloadsowatch-9e061170b3834845910749c55eda63f03d982bbf.tar.gz
sowatch-9e061170b3834845910749c55eda63f03d982bbf.zip
add a small status bar to metawatch watchlets
Diffstat (limited to 'libsowatch')
-rw-r--r--libsowatch/declarativewatchwrapper.cpp4
-rw-r--r--libsowatch/declarativewatchwrapper.h1
-rw-r--r--libsowatch/watch.h4
3 files changed, 3 insertions, 6 deletions
diff --git a/libsowatch/declarativewatchwrapper.cpp b/libsowatch/declarativewatchwrapper.cpp
index 968c3e2..d06ef3b 100644
--- a/libsowatch/declarativewatchwrapper.cpp
+++ b/libsowatch/declarativewatchwrapper.cpp
@@ -41,10 +41,6 @@ void DeclarativeWatchWrapper::activate()
// Emit the active signal
emit activeChanged();
-
- // Since a notification currently causes the active watchlet to be deactivated,
- // we can assume the notifications list only changes when we are deactivated.
- emit notificationsChanged();
}
}
diff --git a/libsowatch/declarativewatchwrapper.h b/libsowatch/declarativewatchwrapper.h
index 74f569c..4cc0bf4 100644
--- a/libsowatch/declarativewatchwrapper.h
+++ b/libsowatch/declarativewatchwrapper.h
@@ -32,7 +32,6 @@ signals:
void buttonReleased(int button);
void activeChanged();
- void notificationsChanged();
private:
WatchServer *_server;
diff --git a/libsowatch/watch.h b/libsowatch/watch.h
index 60a66bd..5e0233b 100644
--- a/libsowatch/watch.h
+++ b/libsowatch/watch.h
@@ -41,7 +41,9 @@ public:
virtual void setDateTime(const QDateTime& dateTime) = 0;
/** Asynchronously queries battery date/time from the watch; once the
* query is finished, dateTimeChanged() will be signaled and dateTime()
- * will return the updated value. */
+ * will return the updated value.
+ * This is not mandatory and returning currentDateTime() is just fine.
+ */
virtual void queryDateTime() = 0;
/** Gets the current date/time as last fetched from the watch. */
virtual QDateTime dateTime() const = 0;