Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/server_p.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
68 | void UnInhibit(uint cookie); | 68 | void UnInhibit(uint cookie); | ||
69 | bool inhibited() const; // property getter | 69 | bool inhibited() const; // property getter | ||
70 | 70 | | |||
71 | Q_SIGNALS: | 71 | Q_SIGNALS: | ||
72 | // DBus | 72 | // DBus | ||
73 | void NotificationClosed(uint id, uint reason); | 73 | void NotificationClosed(uint id, uint reason); | ||
74 | void ActionInvoked(uint id, const QString &actionKey); | 74 | void ActionInvoked(uint id, const QString &actionKey); | ||
75 | // non-standard | 75 | // non-standard | ||
76 | // This is manually emitted as targeted signal in sendReplyText() | ||||
76 | void NotificationReplied(uint id, const QString &text); | 77 | void NotificationReplied(uint id, const QString &text); | ||
77 | 78 | | |||
78 | void validChanged(); | 79 | void validChanged(); | ||
79 | 80 | | |||
80 | void inhibitedChanged(); | 81 | void inhibitedChanged(); | ||
81 | 82 | | |||
82 | void externalInhibitedChanged(); | 83 | void externalInhibitedChanged(); | ||
83 | void externalInhibitionsChanged(); | 84 | void externalInhibitionsChanged(); | ||
84 | 85 | | |||
85 | void serviceOwnershipLost(); | 86 | void serviceOwnershipLost(); | ||
86 | 87 | | |||
87 | public: // stuff used by public class | 88 | public: // stuff used by public class | ||
88 | friend class ServerInfo; | 89 | friend class ServerInfo; | ||
89 | static QString notificationServiceName(); | 90 | static QString notificationServiceName(); | ||
91 | static QString notificationServicePath(); | ||||
92 | static QString notificationServiceInterface(); | ||||
90 | 93 | | |||
91 | bool init(); | 94 | bool init(); | ||
92 | uint add(const Notification ¬ification); | 95 | uint add(const Notification ¬ification); | ||
96 | void sendReplyText(const QString &dbusService, uint notificationId, const QString &text); | ||||
93 | 97 | | |||
94 | ServerInfo *currentOwner() const; | 98 | ServerInfo *currentOwner() const; | ||
95 | 99 | | |||
96 | // Server only handles external application inhibitions but we still want the Inhibited property | 100 | // Server only handles external application inhibitions but we still want the Inhibited property | ||
97 | // expose the actual inhibition state for applications to check. | 101 | // expose the actual inhibition state for applications to check. | ||
98 | void setInhibited(bool inhibited); | 102 | void setInhibited(bool inhibited); | ||
99 | 103 | | |||
100 | bool externalInhibited() const; | 104 | bool externalInhibited() const; | ||
Show All 30 Lines |