services/presence/presenceservice: add some missing in_signature arguments
This commit is contained in:
parent
570a485d84
commit
0410ed28ba
@ -291,7 +291,8 @@ class PresenceService(ExportedGObject):
|
|||||||
def PrivateInvitation(self, bus_name, connection, channel):
|
def PrivateInvitation(self, bus_name, connection, channel):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="ao")
|
@dbus.service.method(_PRESENCE_INTERFACE, in_signature='',
|
||||||
|
out_signature="ao")
|
||||||
def GetActivities(self):
|
def GetActivities(self):
|
||||||
ret = []
|
ret = []
|
||||||
for act in self._activities.values():
|
for act in self._activities.values():
|
||||||
@ -307,7 +308,8 @@ class PresenceService(ExportedGObject):
|
|||||||
raise NotFoundError("The activity was not found.")
|
raise NotFoundError("The activity was not found.")
|
||||||
return act.object_path()
|
return act.object_path()
|
||||||
|
|
||||||
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="ao")
|
@dbus.service.method(_PRESENCE_INTERFACE, in_signature='',
|
||||||
|
out_signature="ao")
|
||||||
def GetBuddies(self):
|
def GetBuddies(self):
|
||||||
ret = []
|
ret = []
|
||||||
for buddy in self._buddies.values():
|
for buddy in self._buddies.values():
|
||||||
@ -361,7 +363,8 @@ class PresenceService(ExportedGObject):
|
|||||||
"connection to %s:%s" % (handle, tp_conn_name,
|
"connection to %s:%s" % (handle, tp_conn_name,
|
||||||
tp_conn_path))
|
tp_conn_path))
|
||||||
|
|
||||||
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="o")
|
@dbus.service.method(_PRESENCE_INTERFACE,
|
||||||
|
in_signature='', out_signature="o")
|
||||||
def GetOwner(self):
|
def GetOwner(self):
|
||||||
if not self._owner:
|
if not self._owner:
|
||||||
raise NotFoundError("The owner was not found.")
|
raise NotFoundError("The owner was not found.")
|
||||||
@ -375,7 +378,8 @@ class PresenceService(ExportedGObject):
|
|||||||
self._share_activity(actid, atype, name, properties,
|
self._share_activity(actid, atype, name, properties,
|
||||||
(async_cb, async_err_cb))
|
(async_cb, async_err_cb))
|
||||||
|
|
||||||
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="so")
|
@dbus.service.method(_PRESENCE_INTERFACE,
|
||||||
|
in_signature='', out_signature="so")
|
||||||
def GetPreferredConnection(self):
|
def GetPreferredConnection(self):
|
||||||
conn = self._server_plugin.get_connection()
|
conn = self._server_plugin.get_connection()
|
||||||
return str(conn.service_name), conn.object_path
|
return str(conn.service_name), conn.object_path
|
||||||
|
Loading…
Reference in New Issue
Block a user