summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-06 17:04:16 +0000
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-01-10 18:14:35 +0000
commit0842629f51aff9b3ee06e7b5094136e9b28faa4d (patch)
tree030c932d83f2b4c946a1de15c4a615db169ec956 /extensions
parentffba9e0559cc8a1445d6b85ce0dda6f4a248c202 (diff)
downloadtelepathy-logger-0842629f51aff9b3ee06e7b5094136e9b28faa4d.tar.gz
Adapt the dbus service to the API changes
This changes the GetRecentMessages dbus method to a new GetRecentEvents one, with a slightly different signature (type argument instead of is_chatroom one), similar to the C API changes. Bump the interface version since this is a break.
Diffstat (limited to 'extensions')
-rw-r--r--extensions/Logger.xml16
1 files changed, 10 insertions, 6 deletions
diff --git a/extensions/Logger.xml b/extensions/Logger.xml
index a377829..9f101e3 100644
--- a/extensions/Logger.xml
+++ b/extensions/Logger.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<node name="/Logger"
xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
- <tp:copyright>Copyright © 2009 Collabora Ltd.</tp:copyright>
+ <tp:copyright>Copyright © 2009-2011 Collabora Ltd.</tp:copyright>
<tp:license xmlns="http://www.w3.org/1999/xhtml">
<p>This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:license>
<interface name="org.freedesktop.Telepathy.Logger.DRAFT"
tp:causes-havoc="experimental">
- <tp:added version="0.1">(as a draft)</tp:added>
+ <tp:added version="0.2">(as a draft)</tp:added>
<tp:docstring>
An interface for requesting information from the Telepathy Logger
@@ -53,8 +53,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</tp:struct>
- <method name="GetRecentMessages"
- tp:name-for-bindings="Get_Recent_Messages">
+ <method name="GetRecentEvents"
+ tp:name-for-bindings="Get_Recent_Events">
<arg direction="in" name="Account" type="o" tp:type="Account">
<tp:docstring>
The account path for the TpAccount to which the conversation is related
@@ -67,9 +67,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</arg>
- <arg direction="in" name="Is_Chatroom" type="b">
+ <arg direction="in" name="Type" type="u">
<tp:docstring>
- Whether the conversation is a chatroom (i.e., XMPP MUC) or not
+ The type of the events to return.
</tp:docstring>
</arg>
@@ -82,6 +82,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
</tp:docstring>
</arg>
+ <!-- FIXME: we're returning a list of events that can be
+ messages (chats), but also calls and any other event
+ type in the future, so make the return type a list of
+ TplLogSearchHit or something generic than a(ssx) ? -->
<arg direction="out" name="Messages" type="a(ssx)"
tp:type="Chat_Message[]" />