diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 01:36:10 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 01:36:10 +0200 |
commit | 2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (patch) | |
tree | b2b8341615898e5cbf5cdb08ee34a629df093897 /libsowatch/watchserver.h | |
parent | 5153fb9a2b5d8a7af069a75b75bdc7bee591d0a9 (diff) | |
download | sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.tar.gz sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.zip |
preparing for watchlet support
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r-- | libsowatch/watchserver.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h index 1ece104..681c758 100644 --- a/libsowatch/watchserver.h +++ b/libsowatch/watchserver.h @@ -19,12 +19,16 @@ class SOWATCH_EXPORT WatchServer : public QObject { Q_OBJECT Q_PROPERTY(Watch* watch READ watch CONSTANT) + Q_PROPERTY(QString nextWatchletButton READ nextWatchletButton WRITE setNextWatchletButton) public: explicit WatchServer(Watch* watch, QObject* parent = 0); Watch* watch(); + QString nextWatchletButton() const; + void setNextWatchletButton(const QString& value); + void addProvider(NotificationProvider* provider); void runWatchlet(const QString& id); @@ -33,6 +37,8 @@ public: protected: Watch* _watch; + char _nextWatchletButton; + QMap<QString, Watchlet*> _watchlets; /** Stores current notifications, classified by type. */ @@ -40,17 +46,22 @@ protected: QQueue<Notification*> _pendingNotifications; Watchlet* _currentWatchlet; + char _currentWatchletIndex; void registerWatchlet(Watchlet *watchlet); void reactivateCurrentWatchlet(); + void nextWatchlet(); void nextNotification(); uint getNotificationCount(Notification::Type type); + void goToIdle(); + protected slots: void watchConnected(); void watchDisconnected(); void watchIdling(); + void watchButtonPress(int button); void notificationReceived(Notification* notification); void notificationChanged(); void notificationCleared(); |