From 0c168e3e1506c9cf5d4cb13189fa284ec0706904 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Wed, 29 Sep 2004 01:46:45 +0000 Subject: 2004-09-28 Jon Trowbridge * 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. --- mono/BusDriver.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'mono/BusDriver.cs') 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) { -- cgit