From 77a98ac21c2520d9fb4bb9c8f70967a8e36dc872 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 19 Sep 2011 01:51:04 +0200 Subject: adding notification provider plugins, idle screen --- .../meegohandsetnotificationprovider.h | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meegohandsetnotification/meegohandsetnotificationprovider.h (limited to 'meegohandsetnotification/meegohandsetnotificationprovider.h') diff --git a/meegohandsetnotification/meegohandsetnotificationprovider.h b/meegohandsetnotification/meegohandsetnotificationprovider.h new file mode 100644 index 0000000..3cf78d3 --- /dev/null +++ b/meegohandsetnotification/meegohandsetnotificationprovider.h @@ -0,0 +1,33 @@ +#ifndef MEEGOHANDSETNOTIFICATIONPROVIDER_H +#define MEEGOHANDSETNOTIFICATIONPROVIDER_H + +#include + +class MNotificationManagerInterface; +class WatchNotificationSink; + +namespace sowatch +{ + +class MeegoHandsetNotificationProvider : public NotificationProvider +{ + Q_OBJECT +public: + explicit MeegoHandsetNotificationProvider(QObject *parent = 0); + ~MeegoHandsetNotificationProvider(); + + int getCount(Notification::Type type); +protected: + MNotificationManagerInterface* _manager; + WatchNotificationSink* _sink; + +protected slots: + void sinkNotification(const sowatch::Notification &n); + void sinkUnreadCountChanged(sowatch::Notification::Type type); + +friend class WatchNoficationSink; +}; + +} + +#endif // MEEGOHANDSETNOTIFICATIONPROVIDER_H -- cgit v1.2.3