summaryrefslogtreecommitdiff
path: root/meegohandsetnotification/meegohandsetnotificationprovider.h
blob: 3cf78d304ca83e34a55288b9ab07373d2c34cff0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MEEGOHANDSETNOTIFICATIONPROVIDER_H
#define MEEGOHANDSETNOTIFICATIONPROVIDER_H

#include <sowatch.h>

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