summaryrefslogtreecommitdiff
path: root/meegohandsetnotification/watchnotificationsink.h
blob: 9500994118cc32320df18498ae95aed54dcd007f (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
#ifndef WATCHNOTIFICATIONSINK_H
#define WATCHNOTIFICATIONSINK_H

#include <QtCore/QMap>
#include <sowatch.h>
#include "meegohandsetnotification.h"
#include <notificationsystem/notificationsink.h>

namespace sowatch {
	class MeegoHandsetNotificationProvider;
}

class WatchNotificationSink : public NotificationSink
{
    Q_OBJECT
public:
	explicit WatchNotificationSink(sowatch::MeegoHandsetNotificationProvider* parent);

	void addNotification(const Notification &notification);
	void removeNotification(uint notificationId);

	void addGroup(uint groupId, const NotificationParameters &parameters);
	void removeGroup(uint groupId);

signals:
	void incomingNotification(sowatch::Notification* notification);

protected:
	QMap<uint, MeegoHandsetNotification*> _trackedNotifications;
};

#endif // WATCHNOTIFICATIONSINK_H