diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-29 10:24:47 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-10-29 12:32:21 +0200 |
commit | fe40ae918dee314862364a8376e6aac0a2195a04 (patch) | |
tree | f8cadef1c0a5dffc9665459e7fb358d46cdc5300 /examples | |
parent | 55b87ce76a0ac7a5c1bdfc1da632eaec2e309f22 (diff) |
echo-message-parts: add Messages immutable properties
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cm/echo-message-parts/chan.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/cm/echo-message-parts/chan.c b/examples/cm/echo-message-parts/chan.c index cb470921..48f4c02a 100644 --- a/examples/cm/echo-message-parts/chan.c +++ b/examples/cm/echo-message-parts/chan.c @@ -216,6 +216,23 @@ example_echo_2_channel_close (TpBaseChannel *self) } static void +example_echo_2_channel_fill_immutable_properties (TpBaseChannel *chan, + GHashTable *properties) +{ + TpBaseChannelClass *klass = TP_BASE_CHANNEL_CLASS ( + example_echo_2_channel_parent_class); + + klass->fill_immutable_properties (chan, properties); + + tp_dbus_properties_mixin_fill_properties_hash ( + G_OBJECT (chan), properties, + TP_IFACE_CHANNEL_INTERFACE_MESSAGES, "MessagePartSupportFlags", + TP_IFACE_CHANNEL_INTERFACE_MESSAGES, "DeliveryReportingSupport", + TP_IFACE_CHANNEL_INTERFACE_MESSAGES, "SupportedContentTypes", + NULL); +} + +static void example_echo_2_channel_class_init (ExampleEcho2ChannelClass *klass) { GObjectClass *object_class = (GObjectClass *) klass; @@ -228,6 +245,8 @@ example_echo_2_channel_class_init (ExampleEcho2ChannelClass *klass) base_class->target_handle_type = TP_HANDLE_TYPE_CONTACT; base_class->interfaces = example_echo_2_channel_interfaces; base_class->close = example_echo_2_channel_close; + base_class->fill_immutable_properties = + example_echo_2_channel_fill_immutable_properties; tp_message_mixin_init_dbus_properties (object_class); } |