diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 03:18:46 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 03:18:46 +0200 |
commit | 12cf6df3f1c90c6ccbab398f0ae03c946e4af638 (patch) | |
tree | a205f1240a421a1a6ac4d97e592730e5be00533b /libsowatch/watchserver.h | |
parent | 12d61ddf50f5f34cafd25d7cbdc827156cfb184c (diff) | |
download | sowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.tar.gz sowatch-12cf6df3f1c90c6ccbab398f0ae03c946e4af638.zip |
continue working on qml watchface support
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r-- | libsowatch/watchserver.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h index 30f39c6..eafee7a 100644 --- a/libsowatch/watchserver.h +++ b/libsowatch/watchserver.h @@ -94,10 +94,10 @@ private: /** We store a currently live weather forecast. */ WeatherNotification* _weather; - /** Current watchlet. */ + /** Active watchlet is the one that has "focus" right now. */ + Watchlet* _activeWatchlet; + /** Current watchlet is the app watchlet (not idle, not notification) that is current in the carrousel. */ Watchlet* _currentWatchlet; - /** Is the current watchlet active? */ - bool _currentWatchletActive; /** The current watchlet index if any, for use by nextWatchlet() */ int _currentWatchletIndex; @@ -111,8 +111,9 @@ private: void setWatchletProperties(Watchlet *watchlet); void unsetWatchletProperties(Watchlet *watchlet); - void deactivateCurrentWatchlet(); - void reactivateCurrentWatchlet(); + void activateWatchlet(Watchlet *watchlet); + void deactivateActiveWatchlet(); + void activateCurrentWatchlet(); void goToIdle(); private slots: |