diff options
author | <robert.mcqueen@collabora.co.uk> | 2005-11-14 01:07:53 +0000 |
---|---|---|
committer | <robert.mcqueen@collabora.co.uk> | 2005-11-14 01:07:53 +0000 |
commit | 5e93a8d818af8e67e8fad8a59128775e30302f19 (patch) | |
tree | 56b62c5f70d435e717bab624466e1b83f295bcdd | |
parent | f083271355ed3de4fd2c52771f3099e56207724d (diff) |
fix mismatched signatures and descriptionstelepathy-spec-0.10.1
-rw-r--r-- | telepathy/server/conn.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/telepathy/server/conn.py b/telepathy/server/conn.py index f74eb44f..874141fc 100644 --- a/telepathy/server/conn.py +++ b/telepathy/server/conn.py @@ -240,7 +240,7 @@ class Connection(dbus.service.Object): Get the current status as defined in the StatusChanged signal. Returns: - a string representing the current status + an integer representing the current status """ return self._status @@ -251,8 +251,8 @@ class Connection(dbus.service.Object): """ pass - @dbus.service.signal(CONN_INTERFACE, signature='soub') - def NewChannel(self, type, object_path, handle, supress_handler): + @dbus.service.signal(CONN_INTERFACE, signature='osub') + def NewChannel(self, object_path, type, handle, supress_handler): """ Emitted when a new Channel object is created, either through user request or incoming information from the service. The supress_handler @@ -260,27 +260,27 @@ class Connection(dbus.service.Object): or is an incoming communication and needs to have a handler launched. Parameters: - type - a D-Bus interface name representing the channel type object_path - a D-Bus object path for the channel object on this service + type - a D-Bus interface name representing the channel type handle - a handle indicating the contact, room or list this channel communicates with, or zero supress_handler - a boolean indicating that the channel was requested by a client that intends to display it to the user, so no handler needs to be launched """ pass - @dbus.service.method(CONN_INTERFACE, in_signature='', out_signature='a(so)') + @dbus.service.method(CONN_INTERFACE, in_signature='', out_signature='a(osu)') def ListChannels(self): """ List all the channels which currently exist on this connection. Returns: an array of structs containing: - a D-Bus interface name representing the channel type a D-Bus object path for the channel object on this service + a D-Bus interface name representing the channel type an integer handle representing the contact, room or list this channel communicates with, or zero """ ret = [] for channel in self._channels: - chan = (channel._type, channel._object_path, channel._handle) + chan = (channel._object_path, channel._type, channel._handle) ret.append(chan) return ret |