diff options
author | Jon Trowbridge <trow@ximian.com> | 2004-09-29 01:46:45 +0000 |
---|---|---|
committer | Jon Trowbridge <trow@ximian.com> | 2004-09-29 01:46:45 +0000 |
commit | 0c168e3e1506c9cf5d4cb13189fa284ec0706904 (patch) | |
tree | 35ded9f61f7c0c4213451f11488b3ef443d46738 /mono/BusDriver.cs | |
parent | 73a69d496bb26356d684774cd1e98646a443c723 (diff) |
2004-09-28 Jon Trowbridge <trow@ximian.com>
* mono/BusDriver.cs: Changed BusDriver struct to remove
the ServiceCreated and ServiceDeleted events and replace them
with the new ServiceOwnerChanged event.
* mono/example/BusListener.cs: Added a new example program,
which listens for and reports any ServiceOwnerChanged events
on the bus driver.
* mono/example/Makefile.am (DESTDIR): Build changes for the
new BusListener.cs example.
Diffstat (limited to 'mono/BusDriver.cs')
-rw-r--r-- | mono/BusDriver.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/mono/BusDriver.cs b/mono/BusDriver.cs index 8b1fc680..426dd370 100644 --- a/mono/BusDriver.cs +++ b/mono/BusDriver.cs @@ -3,7 +3,9 @@ namespace DBus using System; - public delegate void ServiceEventHandler (string serviceName); + public delegate void ServiceEventHandler (string serviceName, + string oldOwner, + string newOwner); [Interface ("org.freedesktop.DBus")] public abstract class BusDriver @@ -19,11 +21,7 @@ namespace DBus [Signal] - public virtual event ServiceEventHandler ServiceCreated; - - [Signal] - public virtual event ServiceEventHandler ServiceDeleted; - + public virtual event ServiceEventHandler ServiceOwnerChanged; static public BusDriver New (Connection connection) { |