summaryrefslogtreecommitdiff
path: root/rockworkd/libpebble/notification.h
blob: 1ab76a08d4905f24b965773f7e00ecab418918c8 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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