blob: 80d7996aaf4d022bdb651898619ff589b03ec8d1 (
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
41
42
|
#ifndef SOWATCH_NOTIFICATION_H
#define SOWATCH_NOTIFICATION_H
#include <QtCore/QString>
#include <QtCore/QDateTime>
#include "sowatch_global.h"
namespace sowatch
{
class SOWATCH_EXPORT Notification
{
public:
enum Type {
OtherNotification = 0,
CallNotification,
EmailNotification,
MissedCallNotification,
SmsNotification,
ImNotification,
CalendarNotification,
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 // SOWATCH_NOTIFICATION_H
|