23
23
public class NotificationMonitor : Object {
24
24
private const string NOTIFY_IFACE = "org.freedesktop.Notifications";
25
25
private const string NOTIFY_PATH = "/org/freedesktop/Notifications";
26
28
private const string MATCH_STRING = "eavesdrop='true',type='method_call',interface='org.freedesktop.Notifications',member='Notify'";
27
29
private const uint32 REASON_DISMISSED = 2;
29
31
private static NotificationMonitor? instance = null;
31
35
private DBusConnection connection;
34
36
private uint32 id_counter = 0;
36
38
public signal void received (DBusMessage message, uint32 id);