~ubuntu-branches/ubuntu/intrepid/tomboy/intrepid

« back to all changes in this revision

Viewing changes to Tomboy/dbus-sharp/BusDriver.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2008-05-20 11:05:10 UTC
  • mfrom: (1.1.38 upstream) (2.1.56 hardy)
  • Revision ID: james.westby@ubuntu.com-20080520110510-y075w3uklbdb0ei3
Tags: 0.10.2-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
namespace DBus
2
 
{
3
 
 
4
 
  using System;
5
 
 
6
 
  public delegate void NameOwnerChangedHandler (string name,
7
 
                                                string oldOwner,
8
 
                                                string newOwner);
9
 
 
10
 
  [Interface ("org.freedesktop.DBus")]
11
 
  public abstract class BusDriver
12
 
  {
13
 
    [Method]
14
 
    public abstract string[] ListNames ();
15
 
 
16
 
    [Method]
17
 
    public abstract string GetNameOwner (string name);
18
 
 
19
 
    [Method]
20
 
    public abstract UInt32 GetConnectionUnixUser (string connectionName);
21
 
 
22
 
 
23
 
    [Signal]
24
 
    public virtual event NameOwnerChangedHandler NameOwnerChanged;
25
 
 
26
 
    static public BusDriver New (Connection connection)
27
 
    {
28
 
      Service service;
29
 
      service = Service.Get (connection, "org.freedesktop.DBus");
30
 
 
31
 
      BusDriver driver;
32
 
      driver = (BusDriver) service.GetObject (typeof (BusDriver), "/org/freedesktop/DBus");
33
 
      
34
 
      return driver;
35
 
    }
36
 
  }
37
 
}