summaryrefslogtreecommitdiff
path: root/libsowatch/notification.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/notification.h')
-rw-r--r--libsowatch/notification.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/libsowatch/notification.h b/libsowatch/notification.h
new file mode 100644
index 0000000..7f463bf
--- /dev/null
+++ b/libsowatch/notification.h
@@ -0,0 +1,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