summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-04-07 20:29:48 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-04-07 20:31:33 +0100
commitff658fdfa1e69c4e53008764fa6d930d080942e1 (patch)
tree9fe8ef1a8220e3743210904197ace68b0e58ed3e
parent3fb41ef63c60dd14492e9eeaf53ca0912293cb03 (diff)
conn: implement Interfaces and Status properties
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--src/server/conn.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/conn.py b/src/server/conn.py
index ecd6b16..a857a57 100644
--- a/src/server/conn.py
+++ b/src/server/conn.py
@@ -91,8 +91,11 @@ class Connection(_Connection, DBusProperties):
self._interfaces = set()
DBusProperties.__init__(self)
- self._implement_property_get(CONN_INTERFACE,
- {'SelfHandle': lambda: dbus.UInt32(self.GetSelfHandle())})
+ self._implement_property_get(CONN_INTERFACE, {
+ 'SelfHandle': lambda: dbus.UInt32(self.GetSelfHandle()),
+ 'Interfaces': lambda: dbus.Array(self.GetInterfaces(), signature='s'),
+ 'Status': lambda: dbus.UInt32(self.GetStatus())
+ })
self._proto = proto