[Telepathy-commits] [telepathy-sofiasip/master] Added property "channel-destroyed" to TpsipTextChannel
Mikhail Zabaluev
mikhail.zabaluev at nokia.com
Tue Oct 21 02:17:38 PDT 2008
---
src/sip-text-channel.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/sip-text-channel.c b/src/sip-text-channel.c
index dc1795a..a20f333 100644
--- a/src/sip-text-channel.c
+++ b/src/sip-text-channel.c
@@ -84,6 +84,7 @@ enum
PROP_INITIATOR_ID,
PROP_REQUESTED,
PROP_INTERFACES,
+ PROP_CHANNEL_DESTROYED,
LAST_PROPERTY
};
@@ -285,6 +286,13 @@ tpsip_text_channel_class_init(TpsipTextChannelClass *klass)
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_REQUESTED, param_spec);
+ param_spec = g_param_spec_boolean ("channel-destroyed", "Destroyed?",
+ "If true, the channel has *really* closed, rather than just "
+ "appearing to do so",
+ FALSE,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ g_object_class_install_property (object_class, PROP_CHANNEL_DESTROYED, param_spec);
+
klass->dbus_props_class.interfaces =
(TpDBusPropertiesMixinIfaceImpl *) prop_interfaces;
tp_dbus_properties_mixin_class_init (object_class,
@@ -351,6 +359,10 @@ tpsip_text_channel_get_property(GObject *object,
g_value_set_boolean (value, (priv->initiator == base_conn->self_handle));
break;
+ case PROP_CHANNEL_DESTROYED:
+ g_value_set_boolean (value, priv->closed);
+ break;
+
case PROP_INTERFACES:
g_value_set_static_boxed (value, tpsip_text_channel_interfaces);
break;
--
1.5.6.5
More information about the Telepathy-commits
mailing list