diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-18 04:26:20 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-18 04:26:20 +0200 |
commit | c42d5abff1f5f51facc169dd593725d819c4c868 (patch) | |
tree | 9aa8bdef88bf89561c7726948541a1ba3906b81e /libsowatch/notification.h | |
parent | f225345d4de3b198a557fe3566f9630163e76d51 (diff) | |
download | sowatch-c42d5abff1f5f51facc169dd593725d819c4c868.tar.gz sowatch-c42d5abff1f5f51facc169dd593725d819c4c868.zip |
separation into lib and plugins complete
Diffstat (limited to 'libsowatch/notification.h')
-rw-r--r-- | libsowatch/notification.h | 40 |
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 |