Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/notification.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 43 | public: | |||
---|---|---|---|---|---|
65 | void setRead(bool read); | 65 | void setRead(bool read); | ||
66 | 66 | | |||
67 | QString summary() const; | 67 | QString summary() const; | ||
68 | void setSummary(const QString &summary); | 68 | void setSummary(const QString &summary); | ||
69 | 69 | | |||
70 | QString body() const; | 70 | QString body() const; | ||
71 | void setBody(const QString &body); | 71 | void setBody(const QString &body); | ||
72 | 72 | | |||
73 | // This returns the raw body data as provided by the notification | ||||
74 | // this is useful when you want to html sanitization at different | ||||
75 | // stage then the notification server. | ||||
76 | QString rawBody() const; | ||||
77 | | ||||
73 | QString icon() const; | 78 | QString icon() const; | ||
74 | void setIcon(const QString &icon); | 79 | void setIcon(const QString &icon); | ||
75 | 80 | | |||
76 | QImage image() const; | 81 | QImage image() const; | ||
77 | void setImage(const QImage &image); | 82 | void setImage(const QImage &image); | ||
78 | 83 | | |||
79 | QString desktopEntry() const; | 84 | QString desktopEntry() const; | ||
80 | void setDesktopEntry(const QString &desktopEntry); | 85 | void setDesktopEntry(const QString &desktopEntry); | ||
Show All 38 Lines | |||||
119 | QString replySubmitButtonIconName() const; | 124 | QString replySubmitButtonIconName() const; | ||
120 | 125 | | |||
121 | bool expired() const; | 126 | bool expired() const; | ||
122 | void setExpired(bool expired); | 127 | void setExpired(bool expired); | ||
123 | 128 | | |||
124 | bool dismissed() const; | 129 | bool dismissed() const; | ||
125 | void setDismissed(bool dismissed); | 130 | void setDismissed(bool dismissed); | ||
126 | 131 | | |||
132 | // Little bit of mess here, we want to sometime keep track of processed hints, and not process it. | ||||
133 | QVariantMap hints() const; | ||||
broulik: Maybe add a new `rawHints() const`?
Not a fan of ref return | |||||
I avoided using "raw" word in the function name, because when we process hints we don't actually modify it. We just process rest of notifications data, so it is still same thing. I will drop ref return however. bshah: I avoided using "raw" word in the function name, because when we process hints we don't… | |||||
134 | void setHints(const QVariantMap &hints); | ||||
135 | | ||||
127 | void processHints(const QVariantMap &hints); | 136 | void processHints(const QVariantMap &hints); | ||
128 | 137 | | |||
129 | private: | 138 | private: | ||
130 | friend class NotificationsModel; | 139 | friend class NotificationsModel; | ||
140 | friend class AbstractNotificationsModel; | ||||
131 | friend class ServerPrivate; | 141 | friend class ServerPrivate; | ||
132 | 142 | | |||
133 | class Private; | 143 | class Private; | ||
134 | Private *d; | 144 | Private *d; | ||
135 | 145 | | |||
136 | }; | 146 | }; | ||
137 | 147 | | |||
138 | } // namespace NotificationManager | 148 | } // namespace NotificationManager |
Maybe add a new rawHints() const?
Not a fan of ref return