summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2011-12-08 18:20:18 +0000
committerAlban Crequy <alban.crequy@collabora.co.uk>2012-01-04 13:54:52 +0000
commit3431c955686062c3798c30213a468d4f79be8544 (patch)
treeecf21c96f11f9b8e2c67f1bcdb37871e15a6a159
parent3fe242adc071352bf4b16da30e5198b713b3ced9 (diff)
ContactList: add DownloadAtConnection property and Download method
https://bugs.freedesktop.org/show_bug.cgi?id=43035
-rw-r--r--spec/Connection_Interface_Contact_List.xml42
1 files changed, 42 insertions, 0 deletions
diff --git a/spec/Connection_Interface_Contact_List.xml b/spec/Connection_Interface_Contact_List.xml
index 033c64d1..3edbd54b 100644
--- a/spec/Connection_Interface_Contact_List.xml
+++ b/spec/Connection_Interface_Contact_List.xml
@@ -841,6 +841,34 @@
</tp:docstring>
</property>
+ <property name="DownloadAtConnection" type="b" access="read"
+ tp:name-for-bindings="Download_At_Connection"
+ tp:is-connection-parameter='yes'>
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>If true, the contact list is automatically downloaded at
+ connection. If false, the contact list is only downloaded
+ when requested explicitely with
+ <tp:member-ref>Download</tp:member-ref>.</p>
+
+ <tp:rationale>
+ <p>Downloading the contact list uses bandwidth and is not always
+ necessary or desired. For example, a client could cache the
+ contact list from previous connections and accept less regular
+ updates, it could get the contact list from an out-of-band
+ protocol-specific way, or it could not need the contact list at
+ all.</p>
+ </tp:rationale>
+
+ <p>Connection managers MUST default to true.</p>
+
+ <tp:rationale>
+ <p>If a connection manager starts supporting this property but
+ defaults to false, it would break all existing clients that don't
+ call <tp:member-ref>Download</tp:member-ref>.</p>
+ </tp:rationale>
+ </tp:docstring>
+ </property>
+
<method name="AuthorizePublication"
tp:name-for-bindings="Authorize_Publication">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
@@ -1080,6 +1108,20 @@
</tp:possible-errors>
</method>
+ <method name="Download" tp:name-for-bindings="Download">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>Download the contact list from the server. If
+ <tp:member-ref>DownloadAtConnection</tp:member-ref> is true,
+ Download does nothing.</p>
+ </tp:docstring>
+
+ <tp:possible-errors>
+ <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
+ <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
+ <tp:error name="org.freedesktop.Telepathy.Error.NotImplemented"/>
+ </tp:possible-errors>
+ </method>
+
</interface>
</node>
<!-- vim:set sw=2 sts=2 et ft=xml: -->