From a1ec50943454ba4674c8c5e5d5dadcdbd414b111 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 24 Sep 2011 20:52:17 +0200 Subject: Incoming phone calls working! --- libsowatch/watchserver.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'libsowatch/watchserver.h') 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 +#include #include -#include +#include #include "sowatch_global.h" #include "notification.h" @@ -32,20 +32,28 @@ public: protected: Watch* _watch; - Watchlet* _currentWatchlet; QMap _watchlets; - QList _providers; + + /** Stores current notifications, classified by type. */ + QList _notifications[Notification::TypeCount]; + QQueue _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; }; -- cgit v1.2.3