diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2016-02-11 23:55:16 +0100 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2016-02-11 23:55:16 +0100 |
| commit | 29aaea2d80a9eb1715b6cddfac2d2aacf76358bd (patch) | |
| tree | 012795b6bec16c72f38d33cff46324c9a0225868 /rockworkd/libpebble/notification.h | |
launchpad ~mzanetti/rockwork/trunk r87
Diffstat (limited to 'rockworkd/libpebble/notification.h')
| -rw-r--r-- | rockworkd/libpebble/notification.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/rockworkd/libpebble/notification.h b/rockworkd/libpebble/notification.h new file mode 100644 index 0000000..1ab76a0 --- /dev/null +++ b/rockworkd/libpebble/notification.h @@ -0,0 +1,59 @@ +#ifndef NOTIFICATION_H +#define NOTIFICATION_H + +#include <QString> + +class Notification +{ +public: + enum NotificationType { + NotificationTypeGeneric, + NotificationTypeEmail, + NotificationTypeSMS, + NotificationTypeFacebook, + NotificationTypeTwitter, + NotificationTypeTelegram, + NotificationTypeWhatsApp, + NotificationTypeHangout, + NotificationTypeGMail, + NotificationTypeWeather, + NotificationTypeMusic, + NotificationTypeMissedCall, + NotificationTypeAlarm, + NotificationTypeReminder, + }; + + Notification(const QString &sourceId = QString()); + + QString sourceId() const; + void setSourceId(const QString &sourceId); + + QString sourceName() const; + void setSourceName(const QString &sourceName); + + QString sender() const; + void setSender(const QString &sender); + + QString subject() const; + void setSubject(const QString &subject); + + QString body() const; + void setBody(const QString &body); + + NotificationType type() const; + void setType(NotificationType type); + + QString actToken() const; + void setActToken(QString actToken); + +private: + QString m_sourceId; + QString m_sourceName; + QString m_sender; + QString m_subject; + QString m_body; + NotificationType m_type = NotificationTypeGeneric; + QString m_actToken; +}; + +#endif // NOTIFICATION_H |
