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

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


20080606104035-53eee-f8539af8433ec914728d008acc760019856f8001.gz
---
 src/gabble-media-channel.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/gabble-media-channel.c b/src/gabble-media-channel.c
index 2472f29..2b0ece9 100644
--- a/src/gabble-media-channel.c
+++ b/src/gabble-media-channel.c
@@ -498,6 +498,21 @@ static gboolean gabble_media_channel_remove_member (GObject *obj,
 static void
 gabble_media_channel_class_init (GabbleMediaChannelClass *gabble_media_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_media_channel_class);
   GParamSpec *param_spec;
 
@@ -583,6 +598,7 @@ gabble_media_channel_class_init (GabbleMediaChannelClass *gabble_media_channel_c
       G_STRUCT_OFFSET (GabbleMediaChannelClass, properties_class),
       channel_property_signatures, NUM_CHAN_PROPS, NULL);
 
+  gabble_media_channel_class->dbus_props_class.interfaces = prop_interfaces;
   tp_dbus_properties_mixin_class_init (object_class,
       G_STRUCT_OFFSET (GabbleMediaChannelClass, dbus_props_class));
 
-- 
1.5.6.3




More information about the Telepathy-commits mailing list