[Telepathy-commits] [telepathy-gabble/master] GabbleRosterChannel: implement basic Channel properties from spec 0.17.7

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:08 PDT 2008


20080606104113-53eee-bed0faa5815d1bc0a47757f01bf67792bc7156ec.gz
---
 src/gabble-roster-channel.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/gabble-roster-channel.c b/src/gabble-roster-channel.c
index 22b33e8..909ce96 100644
--- a/src/gabble-roster-channel.c
+++ b/src/gabble-roster-channel.c
@@ -267,6 +267,21 @@ static gboolean _gabble_roster_channel_remove_member_cb (GObject *obj,
 static void
 gabble_roster_channel_class_init (GabbleRosterChannelClass *gabble_roster_channel_class)
 {
+  static TpDBusPropertiesMixinPropImpl channel_props[] = {
+      { "TargetHandleType", "handle-type", NULL },
+      { "TargetHandle", "handle", NULL },
+      { "ChannelType", "channel-type", NULL },
+      { "Interfaces", "interfaces", NULL },
+      { NULL }
+  };
+  static TpDBusPropertiesMixinIfaceImpl prop_interfaces[] = {
+      { TP_IFACE_CHANNEL,
+        tp_dbus_properties_mixin_getter_gobject_properties,
+        NULL,
+        channel_props,
+      },
+      { NULL }
+  };
   GObjectClass *object_class = G_OBJECT_CLASS (gabble_roster_channel_class);
   GParamSpec *param_spec;
 
@@ -303,6 +318,7 @@ gabble_roster_channel_class_init (GabbleRosterChannelClass *gabble_roster_channe
       "handle-type");
   g_object_class_override_property (object_class, PROP_HANDLE, "handle");
 
+  gabble_roster_channel_class->properties_class.interfaces = prop_interfaces;
   tp_dbus_properties_mixin_class_init (object_class,
       G_STRUCT_OFFSET (GabbleRosterChannelClass, properties_class));
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list