From 9e061170b3834845910749c55eda63f03d982bbf Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 3 May 2013 21:13:31 +0200 Subject: add a small status bar to metawatch watchlets --- libsowatch/declarativewatchwrapper.cpp | 4 ---- libsowatch/declarativewatchwrapper.h | 1 - libsowatch/watch.h | 4 +++- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'libsowatch') 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; -- cgit v1.2.3