[libsocialweb] contacts: add a ContactsQuery interface



commit 05d53e70a942d172cd93230e1b7f455856c0c48c
Author: Alban Crequy <alban crequy collabora co uk>
Date:   Wed Mar 23 11:17:27 2011 +0000

    contacts: add a ContactsQuery interface

 interfaces/Makefile.am                  |    2 ++
 interfaces/sw-contacts-query.xml        |   10 ++++++++++
 interfaces/sw-service.xml               |    4 ++++
 libsocialweb-client/sw-client-service.h |    1 +
 libsocialweb/sw-service.h               |    1 +
 5 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/interfaces/Makefile.am b/interfaces/Makefile.am
index fa4291a..35c5761 100644
--- a/interfaces/Makefile.am
+++ b/interfaces/Makefile.am
@@ -13,6 +13,7 @@ MARSHALS_LISTS = sw-marshals.list
 
 DBUS_SPECS = sw-core.xml sw-service.xml \
 	     sw-item-view.xml sw-query.xml \
+	     sw-contacts-query.xml \
 	     sw-avatar.xml sw-status-update.xml \
 	     sw-photo-upload.xml sw-banishable.xml \
 	     sw-video-upload.xml lastfm.xml \
@@ -32,6 +33,7 @@ libsocialweb_ginterfaces_la_CFLAGS = $(DBUS_GLIB_CFLAGS) $(GCOV_CFLAGS)
 libsocialweb_ginterfaces_ladir = $(pkgincludedir)/interfaces
 libsocialweb_ginterfaces_la_HEADERS = \
 	sw-query-ginterface.h \
+	sw-contacts-query-ginterface.h \
 	sw-status-update-ginterface.h \
 	sw-avatar-ginterface.h \
 	sw-photo-upload-ginterface.h \
diff --git a/interfaces/sw-contacts-query.xml b/interfaces/sw-contacts-query.xml
new file mode 100644
index 0000000..7b43575
--- /dev/null
+++ b/interfaces/sw-contacts-query.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<node name="/Contacts_Query_Iface" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0";>>
+  <interface name="com.meego.libsocialweb.ContactsQuery">
+    <method name="OpenView" tp:name-for-bindings="Open_View">
+      <arg name="query" type="s" direction="in"/>
+      <arg name="params" type="a{ss}" direction="in"/>
+      <arg name="view" type="o" direction="out"/>
+    </method>
+  </interface>
+</node>
diff --git a/interfaces/sw-service.xml b/interfaces/sw-service.xml
index cfd2372..61d9af4 100644
--- a/interfaces/sw-service.xml
+++ b/interfaces/sw-service.xml
@@ -39,6 +39,10 @@
               <doc:definition>The service supports the #Query interface.</doc:definition>
             </doc:item>
             <doc:item>
+              <doc:term>has-contacts-query-iface</doc:term>
+              <doc:definition>The service supports the #ContactsQuery interface.</doc:definition>
+            </doc:item>
+            <doc:item>
               <doc:term>has-collections-iface</doc:term>
               <doc:definition>The service supports the #Collections interface.</doc:definition>
             </doc:item>
diff --git a/libsocialweb-client/sw-client-service.h b/libsocialweb-client/sw-client-service.h
index aa20d05..6a6b292 100644
--- a/libsocialweb-client/sw-client-service.h
+++ b/libsocialweb-client/sw-client-service.h
@@ -73,6 +73,7 @@ GType sw_client_service_get_type (void);
 #define HAS_VIDEO_UPLOAD_IFACE "has-video-upload-iface"
 #define HAS_BANISHABLE_IFACE "has-banishable-iface"
 #define HAS_QUERY_IFACE "has-query-iface"
+#define HAS_CONTACTS_QUERY_IFACE "has-contacts-query-iface"
 
 #define CAN_UPDATE_STATUS_WITH_GEOTAG "can-update-status-with-geotag"
 
diff --git a/libsocialweb/sw-service.h b/libsocialweb/sw-service.h
index 4f272f0..60fd658 100644
--- a/libsocialweb/sw-service.h
+++ b/libsocialweb/sw-service.h
@@ -84,6 +84,7 @@ struct _SwServiceClass {
 #define HAS_VIDEO_UPLOAD_IFACE "has-video-upload-iface"
 #define HAS_BANISHABLE_IFACE "has-banishable-iface"
 #define HAS_QUERY_IFACE "has-query-iface"
+#define HAS_CONTACTS_QUERY_IFACE "has-contacts-query-iface"
 #define HAS_COLLECTIONS_IFACE "has-collections-iface"
 
 #define CAN_UPDATE_STATUS_WITH_GEOTAG "can-update-status-with-geotag"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]