summaryrefslogtreecommitdiff
path: root/meegohandsetnotification/meegohandsetnotification.h
blob: fc9d50ff13c6915085c0eadceeaa7e1f6a3069ee (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
34
35
36
37
#ifndef MEEGOHANDSETNOTIFICATION_H
#define MEEGOHANDSETNOTIFICATION_H

#include <sowatch.h>
#include <notificationsystem/notification.h>
#include <notificationsystem/notificationparameters.h>

class WatchNotificationSink;

class MeegoHandsetNotification : public sowatch::Notification
{
    Q_OBJECT
public:
	explicit MeegoHandsetNotification(const ::Notification& n, QObject *parent = 0);

	Type type() const;
	uint count() const;
	QDateTime dateTime() const;
	QString title() const;
	QString body() const;
	void activate();
	void clear();

signals:
	void changed();
	void cleared();

protected:
	void changeTo(const ::Notification& notification);

protected:
	::Notification _n;

friend class WatchNotificationSink;
};

#endif // MEEGOHANDSETNOTIFICATION_H