summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-09-02 12:07:00 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-02 12:07:00 +0100
commit3e7521ee128441df9c8ea1b780ca566af587e26c (patch)
tree8f35f4dcd419568c9d1e6a5d4814e5da88422ce8
parentf3809c1aa810bddb11b8c41ddf9943c55fd0ab14 (diff)
RoomConfig1: add ConfigurationRetrieved
I found out while writing Gabble's tests that having a checkpoint signal for “hey the configuration is all ready now” would be useful as a client developer.
-rw-r--r--spec/Channel_Interface_Room_Config.xml29
1 files changed, 29 insertions, 0 deletions
diff --git a/spec/Channel_Interface_Room_Config.xml b/spec/Channel_Interface_Room_Config.xml
index ed530ab5..d6f477ef 100644
--- a/spec/Channel_Interface_Room_Config.xml
+++ b/spec/Channel_Interface_Room_Config.xml
@@ -161,6 +161,26 @@
</tp:docstring>
</property>
+ <property name="ConfigurationRetrieved" type="b" access="read"
+ tp:name-for-bindings="Configuration_Retrieved">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p><code>True</code> once the initial room configuration has been
+ retrieved, or <code>False</code> otherwise. On some services, this
+ may take some time after you've joined a room to fetch the
+ configuration. Once this property changes to <code>True</code>, the
+ other properties on this interface can be assumed to be accurate;
+ this property MUST not change to <code>False</code> after it becomes
+ <code>True</code>.</p>
+
+ <tp:rationale>
+ <p>An application's “configure this room” dialog might choose to
+ display a spinner while this property is <code>False</code>, rather
+ than allowing the user to edit probably-inaccurate
+ configuration.</p>
+ </tp:rationale>
+ </tp:docstring>
+ </property>
+
<method name="UpdateConfiguration" tp:name-for-bindings="Update_Configuration">
<arg direction="in" name="Properties" type="a{sv}">
<tp:docstring xmlns="http://www.w3.org/1999/xhtml">
@@ -213,6 +233,15 @@
protocol.
</tp:docstring>
</tp:error>
+
+ <tp:error name="org.freedesktop.Telepathy.Error.NotAvailable">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ The room's current configuration has not yet been retrieved, so we
+ cannot update it just yet. The application might like to try again
+ once the <tp:member-ref>ConfigurationRetrieved</tp:member-ref>
+ property becomes <code>True</code>.
+ </tp:docstring>
+ </tp:error>
</method>
</interface>