summaryrefslogtreecommitdiff
path: root/testnotification/testnotification.h
blob: ecaacb47e2ab0acf4fc904a2d576e877066987cc (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
#ifndef TESTNOTIFICATION_H
#define TESTNOTIFICATION_H

#include <sowatch.h>

namespace sowatch
{

class TestNotification : public Notification
{
	Q_OBJECT

public:
	explicit TestNotification(Type type, const QString& title, const QString& body, QObject *parent = 0);

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

	void activate();
	void dismiss();

private:
	Type _type;
	QDateTime _time;
	QString _title;
	QString _body;
};

}

QML_DECLARE_TYPE(sowatch::TestNotification)

#endif // TESTNOTIFICATION_H