[Telepathy-commits] [telepathy-haze/master] Implement DBus properties for Channel interface.
Will Thompson
will.thompson at collabora.co.uk
Mon Aug 18 09:53:56 PDT 2008
---
src/contact-list-channel.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/src/contact-list-channel.c b/src/contact-list-channel.c
index d323b54..dacf8a8 100644
--- a/src/contact-list-channel.c
+++ b/src/contact-list-channel.c
@@ -683,7 +683,23 @@ haze_contact_list_channel_class_init (HazeContactListChannelClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (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 (object_class,
sizeof(HazeContactListChannelPrivate));
@@ -731,7 +747,7 @@ haze_contact_list_channel_class_init (HazeContactListChannelClass *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 (HazeContactListChannelClass, properties_class));
--
1.5.6.3
More information about the Telepathy-commits
mailing list