#ifndef WATCHNOTIFICATIONSINK_H #define WATCHNOTIFICATIONSINK_H #include #include #include #include #include namespace sowatch { class MeegoHandsetNotificationProvider; } class WatchNotificationSink : public NotificationSink { Q_OBJECT public: explicit WatchNotificationSink(sowatch::MeegoHandsetNotificationProvider* parent); void addNotification(const Notification ¬ification); void removeNotification(uint notificationId); void addGroup(uint groupId, const NotificationParameters ¶meters); void removeGroup(uint groupId); int getCount(sowatch::Notification::Type type); signals: void incomingNotification(const sowatch::Notification& notification); void countsChanged(sowatch::Notification::Type type); protected: static const uint maxTypes = sowatch::Notification::TypeCount; static sowatch::Notification::Type notificationTypeFromEventType(const QString& eventType); sowatch::MeegoHandsetNotificationProvider* _parent; QMap _trackedNotifications; uint _counts[maxTypes]; }; #endif // WATCHNOTIFICATIONSINK_H