[Telepathy-commits] [telepathy-python/master] Implemented GroupFlags, Members, RemotePendingMembers & SelfHandle D-Bus properties on ChannelInterfaceGroup.
Jonny Lamb
jonny.lamb at collabora.co.uk
Tue Dec 23 17:51:22 PST 2008
Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
src/server/channel.py | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/server/channel.py b/src/server/channel.py
index bec8894..5f87793 100644
--- a/src/server/channel.py
+++ b/src/server/channel.py
@@ -250,10 +250,17 @@ from telepathy._generated.Channel_Interface_DTMF import ChannelInterfaceDTMF
from telepathy._generated.Channel_Interface_Group \
import ChannelInterfaceGroup as _ChannelInterfaceGroup
-class ChannelInterfaceGroup(_ChannelInterfaceGroup):
+class ChannelInterfaceGroup(_ChannelInterfaceGroup, DBusProperties):
def __init__(self):
_ChannelInterfaceGroup.__init__(self)
+
+ self._implement_property_get(CHANNEL_INTERFACE_GROUP,
+ {'GroupFlags': lambda: dbus.UInt32(self.GetGroupFlags()),
+ 'Members': lambda: dbus.Array(self.GetMembers()),
+ 'RemotePendingMembers': lambda: dbus.Array(self.GetRemotePendingMembers()),
+ 'SelfHandle': lambda: dbus.UInt32(self.GetSelfHandle())})
+
self._group_flags = 0
self._members = set()
self._local_pending = set()
--
1.5.6.5
More information about the Telepathy-commits
mailing list