[telepathy-python/master] Add a dict to Channel class to hold properties.

Jonny Lamb jonny.lamb at collabora.co.uk
Thu Jul 16 01:49:26 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 src/server/channel.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/server/channel.py b/src/server/channel.py
index 5ac27ba..52b3fc2 100644
--- a/src/server/channel.py
+++ b/src/server/channel.py
@@ -60,6 +60,8 @@ class Channel(_Channel, DBusProperties):
         self._handle = handle
         self._interfaces = set()
 
+        self._props = dict()
+
         DBusProperties.__init__(self)
         self._implement_property_get(CHANNEL_INTERFACE,
             {'ChannelType': lambda: dbus.String(self.GetChannelType()),
@@ -80,6 +82,12 @@ class Channel(_Channel, DBusProperties):
         else:
             return ''
 
+    def get_props(self):
+        return self._props
+
+    def set_props(self, props):
+        self._props = props
+
     @dbus.service.method(CHANNEL_INTERFACE, in_signature='', out_signature='')
     def Close(self):
         self.Closed()
-- 
1.5.6.5




More information about the telepathy-commits mailing list