summaryrefslogtreecommitdiff
path: root/libsowatch/notification.h
blob: 7f463bf69e9a0a65536a50e1d28288aa9ddf27d9 (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
38
39
40
#ifndef NOTIFICATION_H
#define NOTIFICATION_H

#include <QtCore/QString>
#include <QtCore/QDateTime>
#include "sowatch_global.h"

namespace sowatch
{

class SOWATCH_EXPORT Notification
{
public:
	enum Type {
		OtherNotification = 0,
		EmailNotification,
		CallNotification,
		SmsNotification,
		ImNotification,
		TypeCount
	};

	Notification(Type type, const QDateTime& dateTime, QString title, QString body);
	~Notification();

	inline Type type() const { return _type; }
	inline QDateTime dateTime() const { return _dateTime; }
	inline QString title() const { return _title; }
	inline QString body() const { return _body; }

protected:
	Type _type;
	QDateTime _dateTime;
	QString _title;
	QString _body;
};

}

#endif // NOTIFICATION_H