summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2008-08-18 18:52:50 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2008-08-18 18:52:50 +0100
commite7b19c06b4f43eca9a4e57f79b0c59e267a804b4 (patch)
tree8a1fb62b0dc62181d282d1aa245ee0a93d314be8
parente26b229f27d71669e2d82b3736ffc48e455b6503 (diff)
downloadtelepathy-haze-0.2.x.tar.gz
Implement Channel DBus properties on IMChannel0.2.x
-rw-r--r--src/im-channel.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/im-channel.c b/src/im-channel.c
index 912ac93..a1da4dd 100644
--- a/src/im-channel.c
+++ b/src/im-channel.c
@@ -471,6 +471,21 @@ haze_im_channel_class_init (HazeIMChannelClass *klass)
GParamSpec *param_spec;
static gboolean properties_mixin_initialized = FALSE;
+ 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 }
+ };
g_type_class_add_private (klass, sizeof (HazeIMChannelPrivate));
@@ -513,7 +528,7 @@ haze_im_channel_class_init (HazeIMChannelClass *klass)
if (!properties_mixin_initialized)
{
properties_mixin_initialized = TRUE;
- klass->properties_class.interfaces = NULL;
+ klass->properties_class.interfaces = prop_interfaces;
tp_dbus_properties_mixin_class_init (object_class,
G_STRUCT_OFFSET (HazeIMChannelClass, properties_class));
}