2004-08-31 03:59:14 +00:00
|
|
|
namespace DBus
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
2005-01-25 19:47:13 +00:00
|
|
|
public delegate void NameOwnerChangedHandler (string name,
|
|
|
|
|
string oldOwner,
|
|
|
|
|
string newOwner);
|
2004-08-31 03:59:14 +00:00
|
|
|
|
|
|
|
|
[Interface ("org.freedesktop.DBus")]
|
|
|
|
|
public abstract class BusDriver
|
|
|
|
|
{
|
|
|
|
|
[Method]
|
2005-03-13 02:15:09 +00:00
|
|
|
public abstract string[] ListNames ();
|
2004-08-31 03:59:14 +00:00
|
|
|
|
|
|
|
|
[Method]
|
2005-03-13 02:15:09 +00:00
|
|
|
public abstract string GetNameOwner (string name);
|
2004-08-31 03:59:14 +00:00
|
|
|
|
|
|
|
|
[Method]
|
|
|
|
|
public abstract UInt32 GetConnectionUnixUser (string connectionName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Signal]
|
2005-01-25 19:47:13 +00:00
|
|
|
public virtual event NameOwnerChangedHandler NameOwnerChanged;
|
2004-08-31 03:59:14 +00:00
|
|
|
|
|
|
|
|
static public BusDriver New (Connection connection)
|
|
|
|
|
{
|
|
|
|
|
Service service;
|
|
|
|
|
service = Service.Get (connection, "org.freedesktop.DBus");
|
|
|
|
|
|
|
|
|
|
BusDriver driver;
|
|
|
|
|
driver = (BusDriver) service.GetObject (typeof (BusDriver), "/org/freedesktop/DBus");
|
|
|
|
|
|
|
|
|
|
return driver;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|