Changeset View
Changeset View
Standalone View
Standalone View
plugins/notifications/notification.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | |||||
67 | public Q_SLOTS: | 67 | public Q_SLOTS: | ||
68 | Q_SCRIPTABLE void dismiss(); | 68 | Q_SCRIPTABLE void dismiss(); | ||
69 | Q_SCRIPTABLE void reply(); | 69 | Q_SCRIPTABLE void reply(); | ||
70 | 70 | | |||
71 | Q_SIGNALS: | 71 | Q_SIGNALS: | ||
72 | void dismissRequested(const QString& m_internalId); | 72 | void dismissRequested(const QString& m_internalId); | ||
73 | void replyRequested(); | 73 | void replyRequested(); | ||
74 | Q_SCRIPTABLE void ready(); | 74 | Q_SCRIPTABLE void ready(); | ||
75 | void actionTriggered(const QString& key, const QString& action); | ||||
75 | 76 | | |||
76 | private: | 77 | private: | ||
77 | QString m_internalId; | 78 | QString m_internalId; | ||
78 | QString m_appName; | 79 | QString m_appName; | ||
79 | QString m_ticker; | 80 | QString m_ticker; | ||
80 | QString m_title; | 81 | QString m_title; | ||
81 | QString m_text; | 82 | QString m_text; | ||
82 | QString m_iconPath; | 83 | QString m_iconPath; | ||
83 | QString m_requestReplyId; | 84 | QString m_requestReplyId; | ||
84 | bool m_dismissable; | 85 | bool m_dismissable; | ||
85 | bool m_hasIcon; | 86 | bool m_hasIcon; | ||
86 | QPointer<KNotification> m_notification; | 87 | QPointer<KNotification> m_notification; | ||
87 | QDir m_imagesDir; | 88 | QDir m_imagesDir; | ||
88 | bool m_silent; | 89 | bool m_silent; | ||
89 | QString m_payloadHash; | 90 | QString m_payloadHash; | ||
90 | bool m_ready; | 91 | bool m_ready; | ||
92 | QStringList m_actions; | ||||
91 | 93 | | |||
92 | void parseNetworkPacket(const NetworkPacket& np); | 94 | void parseNetworkPacket(const NetworkPacket& np); | ||
93 | void loadIcon(const NetworkPacket& np); | 95 | void loadIcon(const NetworkPacket& np); | ||
94 | void applyIcon(); | 96 | void applyIcon(); | ||
95 | void applyNoIcon(); | 97 | void applyNoIcon(); | ||
96 | 98 | | |||
97 | static QMap<QString, FileTransferJob*> s_downloadsInProgress; | 99 | static QMap<QString, FileTransferJob*> s_downloadsInProgress; | ||
98 | }; | 100 | }; | ||
99 | 101 | | |||
100 | #endif | 102 | #endif |