[Telepathy-commits] [telepathy-salut/master] SalutRoomlistChannel: Add TargetID property
Sjoerd Simons
sjoerd.simons at collabora.co.uk
Tue Aug 19 10:56:26 PDT 2008
---
src/salut-roomlist-channel.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/salut-roomlist-channel.c b/src/salut-roomlist-channel.c
index 1a33f9c..55da334 100644
--- a/src/salut-roomlist-channel.c
+++ b/src/salut-roomlist-channel.c
@@ -65,6 +65,7 @@ enum
PROP_HANDLE,
PROP_CONNECTION,
PROP_INTERFACES,
+ PROP_TARGET_ID,
LAST_PROPERTY
};
@@ -144,6 +145,9 @@ salut_roomlist_channel_get_property (GObject *object,
case PROP_INTERFACES:
g_value_set_static_boxed (value, salut_roomlist_channel_interfaces);
break;
+ case PROP_TARGET_ID:
+ g_value_set_static_string (value, "");
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -205,6 +209,7 @@ salut_roomlist_channel_class_init (
static TpDBusPropertiesMixinPropImpl channel_props[] = {
{ "TargetHandleType", "handle-type", NULL },
{ "TargetHandle", "handle", NULL },
+ { "TargetID", "target-id", NULL },
{ "ChannelType", "channel-type", NULL },
{ "Interfaces", "interfaces", NULL },
{ NULL }
@@ -238,6 +243,13 @@ salut_roomlist_channel_class_init (
g_object_class_override_property (object_class, PROP_HANDLE,
"handle");
+ param_spec = g_param_spec_string ("target-id", "Target JID",
+ "The string obtained by inspecting this channel's handle",
+ NULL,
+ G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK |
+ G_PARAM_STATIC_BLURB);
+ g_object_class_install_property (object_class, PROP_TARGET_ID, param_spec);
+
param_spec = g_param_spec_object ("connection", "SalutConnection object",
"Salut connection object that owns this "
"room list channel object.",
--
1.5.6.3
More information about the Telepathy-commits
mailing list