4 using System.Runtime.InteropServices;
5 using System.Diagnostics;
7 public class Signal : Message
9 public Signal() : base(MessageType.Signal)
13 internal Signal(IntPtr rawMessage, Service service) : base(rawMessage, service)
17 public Signal(Service service) : base(MessageType.Signal, service)
21 public Signal(Service service, string pathName, string interfaceName, string name)
23 this.service = service;
25 RawMessage = dbus_message_new_signal(pathName, interfaceName, name);
27 if (RawMessage == IntPtr.Zero) {
28 throw new OutOfMemoryException();
31 this.pathName = pathName;
32 this.interfaceName = interfaceName;
35 dbus_message_unref(RawMessage);
38 public new string PathName
47 base.PathName = value;
51 public new string InterfaceName
55 return base.InterfaceName;
60 base.InterfaceName = value;
64 public new string Name
77 private extern static IntPtr dbus_message_new_signal(string pathName, string interfaceName, string name);