[Telepathy-commits] [telepathy-gabble/master] GabbleConnection: hook up Requests properties

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Aug 20 10:06:51 PDT 2008


20080730183457-53eee-e7019c0feff376bd424bcba6c9600d51f27e336e.gz
---
 src/connection.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/connection.c b/src/connection.c
index a236ce8..467999d 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -484,6 +484,19 @@ base_connected_cb (TpBaseConnection *base_conn)
 static void
 gabble_connection_class_init (GabbleConnectionClass *gabble_connection_class)
 {
+  static TpDBusPropertiesMixinPropImpl requests_props[] = {
+        { "Channels", NULL, NULL },
+        { "RequestableChannelClasses", NULL, NULL },
+        { NULL }
+  };
+  static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
+        { GABBLE_IFACE_CONNECTION_INTERFACE_REQUESTS,
+          gabble_conn_requests_get_dbus_property,
+          NULL,
+          requests_props,
+        },
+        { NULL }
+  };
   GObjectClass *object_class = G_OBJECT_CLASS (gabble_connection_class);
   TpBaseConnectionClass *parent_class = TP_BASE_CONNECTION_CLASS (
       gabble_connection_class);
@@ -653,6 +666,7 @@ gabble_connection_class_init (GabbleConnectionClass *gabble_connection_class)
           NULL,
           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
+  gabble_connection_class->properties_class.interfaces = prop_interfaces;
   tp_dbus_properties_mixin_class_init (object_class,
       G_STRUCT_OFFSET (GabbleConnectionClass, properties_class));
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list