summaryrefslogtreecommitdiff
path: root/testnotification/testnotification.h
diff options
context:
space:
mode:
Diffstat (limited to 'testnotification/testnotification.h')
-rw-r--r--testnotification/testnotification.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/testnotification/testnotification.h b/testnotification/testnotification.h
new file mode 100644
index 0000000..f54623d
--- /dev/null
+++ b/testnotification/testnotification.h
@@ -0,0 +1,34 @@
+#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;
+};
+
+}
+
+#endif // TESTNOTIFICATION_H