[Telepathy-commits] [telepathy-gabble/master] add Changed signal and GetActivities method to Activity views

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:15 PDT 2008


20080605135010-7fe3f-65e0c5e85e6ab1e4986713cc3dd8f6ce950c1d76.gz
---
 extensions/OLPC_Activity_View.xml |   33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diff --git a/extensions/OLPC_Activity_View.xml b/extensions/OLPC_Activity_View.xml
index 27bff70..7ad3c57 100644
--- a/extensions/OLPC_Activity_View.xml
+++ b/extensions/OLPC_Activity_View.xml
@@ -18,6 +18,19 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
   </tp:license>
   <interface name="org.laptop.Telepathy.ActivityView">
 
+  <method name="GetActivities">
+    <arg direction="out" name="activities" type="au">
+      <tp:docstring>
+        An array of room handles
+      </tp:docstring>
+    </arg>
+      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+        <p>Return all the activities of this view</p>
+      </tp:docstring>
+      <tp:possible-errors>
+      </tp:possible-errors>
+    </method>
+
     <method name="Close">
       <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
         <p>Close the view so we won't receive notifications about its
@@ -26,15 +39,33 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</p>
           the bus at any point.</p>
       </tp:docstring>
       <tp:possible-errors>
-        <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument"/>
       </tp:possible-errors>
     </method>
 
+    <signal name="Changed">
+      <arg name="added" type="au">
+        <tp:docstring>
+          Room handles of the added activities
+        </tp:docstring>
+      </arg>
+      <arg name="removed" type="au">
+        <tp:docstring>
+          Room handles of the removed activities
+        </tp:docstring>
+      </arg>
+      <tp:docstring>
+        Signal emitted when the activities in the view are changed.
+      </tp:docstring>
+    </signal>
+
     <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
       <p>An object representing the result of an activity search.</p>
       <p>Activity properties changes are notified on the Connection object using the
         <code>org.laptop.Telepathy.ActivityProperties</code> interface while the view object
         is alive.</p>
+      <p>Members of the activities are notified on the Connection object using the
+        <code>org.laptop.Telepathy.BuddyInfo</code> properties while the view object
+        is alive.</p>
     </tp:docstring>
   </interface>
 </node>
-- 
1.5.6.5




More information about the Telepathy-commits mailing list