diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-24 20:52:17 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-24 20:52:17 +0200 |
commit | a1ec50943454ba4674c8c5e5d5dadcdbd414b111 (patch) | |
tree | 163aed51758c98fa6feec35a344aa8b5095c32e5 /libsowatch/watchserver.h | |
parent | cba26597f1c09764d37be0d13863ec5d5c340da0 (diff) | |
download | sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.tar.gz sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.zip |
Incoming phone calls working!
Diffstat (limited to 'libsowatch/watchserver.h')
-rw-r--r-- | libsowatch/watchserver.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/libsowatch/watchserver.h b/libsowatch/watchserver.h index 27d29aa..1ece104 100644 --- a/libsowatch/watchserver.h +++ b/libsowatch/watchserver.h @@ -1,9 +1,9 @@ #ifndef SOWATCH_WATCHSERVER_H #define SOWATCH_WATCHSERVER_H -#include <QtCore/QObject> +#include <QtCore/QList> #include <QtCore/QMap> -#include <QtCore/QSignalMapper> +#include <QtCore/QQueue> #include "sowatch_global.h" #include "notification.h" @@ -32,20 +32,28 @@ public: protected: Watch* _watch; - Watchlet* _currentWatchlet; QMap<QString, Watchlet*> _watchlets; - QList<NotificationProvider*> _providers; + + /** Stores current notifications, classified by type. */ + QList<Notification*> _notifications[Notification::TypeCount]; + QQueue<Notification*> _pendingNotifications; + + Watchlet* _currentWatchlet; void registerWatchlet(Watchlet *watchlet); + void reactivateCurrentWatchlet(); + + void nextNotification(); + uint getNotificationCount(Notification::Type type); protected slots: void watchConnected(); void watchDisconnected(); - void notificationEmitted(const Notification& notification); - void unreadCountUpdated(Notification::Type type); - void incomingCall(const QString& displayText); - void endIncomingCall(); + void watchIdling(); + void notificationReceived(Notification* notification); + void notificationChanged(); + void notificationCleared(); friend class Watchlet; }; |