Changeset View
Changeset View
Standalone View
Standalone View
src/notifybysnore.h
Show All 31 Lines | 31 | { | |||
---|---|---|---|---|---|
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | explicit NotifyBySnore(QObject *parent = nullptr); | 35 | explicit NotifyBySnore(QObject *parent = nullptr); | ||
36 | ~NotifyBySnore() override; | 36 | ~NotifyBySnore() override; | ||
37 | 37 | | |||
38 | QString optionName() override { return QStringLiteral("Popup"); } | 38 | QString optionName() override { return QStringLiteral("Popup"); } | ||
39 | void notify(KNotification *notification, KNotifyConfig *config) override; | 39 | void notify(KNotification *notification, KNotifyConfig *config) override; | ||
40 | void notifyDeferred(KNotification* notification); | ||||
40 | void close(KNotification * notification) override; | 41 | void close(KNotification * notification) override; | ||
41 | void update(KNotification *notification, KNotifyConfig *config) override; | 42 | void update(KNotification *notification, KNotifyConfig *config) override; | ||
42 | private: | 43 | private: | ||
43 | QHash<int, QPointer<KNotification>> m_notifications; | 44 | QHash<int, QPointer<KNotification>> m_notifications; | ||
44 | QString m_program = QStringLiteral("SnoreToast.exe"); | 45 | QString m_program = QStringLiteral("SnoreToast.exe"); | ||
45 | QLocalServer m_server; | 46 | QLocalServer m_server; | ||
46 | QTemporaryDir m_iconDir; | 47 | QTemporaryDir m_iconDir; | ||
47 | }; | 48 | }; | ||
48 | 49 | | |||
49 | #endif // NOTIFYBYSNORE_H | 50 | #endif // NOTIFYBYSNORE_H |