[Telepathy-commits] [telepathy-salut/master] Implement C.I.Requests' D-Bus properties
Will Thompson
will.thompson at collabora.co.uk
Thu Oct 23 07:30:35 PDT 2008
---
src/salut-connection.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/src/salut-connection.c b/src/salut-connection.c
index 3e344ea..3c2bbd7 100644
--- a/src/salut-connection.c
+++ b/src/salut-connection.c
@@ -589,6 +589,19 @@ set_own_status (GObject *obj,
static void
salut_connection_class_init (SalutConnectionClass *salut_connection_class)
{
+ static TpDBusPropertiesMixinPropImpl requests_props[] = {
+ { "Channels", NULL, NULL },
+ { "RequestableChannelClasses", NULL, NULL },
+ { NULL }
+ };
+ static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
+ { SALUT_IFACE_CONNECTION_INTERFACE_REQUESTS,
+ salut_conn_requests_get_dbus_property,
+ NULL,
+ requests_props,
+ },
+ { NULL }
+ };
GObjectClass *object_class = G_OBJECT_CLASS (salut_connection_class);
TpBaseConnectionClass *tp_connection_class =
TP_BASE_CONNECTION_CLASS(salut_connection_class);
@@ -628,6 +641,7 @@ salut_connection_class_init (SalutConnectionClass *salut_connection_class)
salut_connection_start_connecting;
tp_connection_class->interfaces_always_present = interfaces;
+ salut_connection_class->properties_mixin.interfaces = prop_interfaces;
tp_dbus_properties_mixin_class_init (object_class,
G_STRUCT_OFFSET (SalutConnectionClass, properties_mixin));
--
1.5.6.5
More information about the Telepathy-commits
mailing list