[Telepathy-commits] [telepathy-gabble/master] GabbleRoomlistChannel: add the Requested property
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:54 PDT 2008
20080722163133-53eee-38b218cfaf8944f24b0970c9ae6abb4a6b50fe02.gz
---
src/roomlist-channel.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/roomlist-channel.c b/src/roomlist-channel.c
index e106bb0..ea22017 100644
--- a/src/roomlist-channel.c
+++ b/src/roomlist-channel.c
@@ -69,6 +69,7 @@ enum
PROP_HANDLE_TYPE,
PROP_HANDLE,
PROP_TARGET_ID,
+ PROP_REQUESTED,
PROP_INITIATOR_HANDLE,
PROP_INITIATOR_ID,
PROP_CONNECTION,
@@ -182,6 +183,9 @@ gabble_roomlist_channel_get_property (GObject *object,
tp_handle_inspect (repo, conn->self_handle));
}
break;
+ case PROP_REQUESTED:
+ g_value_set_boolean (value, TRUE);
+ break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -259,6 +263,7 @@ gabble_roomlist_channel_class_init (GabbleRoomlistChannelClass *gabble_roomlist_
{ NULL }
};
static TpDBusPropertiesMixinPropImpl future_props[] = {
+ { "Requested", "requested", NULL },
{ "TargetID", "target-id", NULL },
{ "InitiatorHandle", "initiator-handle", NULL },
{ "InitiatorID", "initiator-id", NULL },
@@ -328,6 +333,13 @@ gabble_roomlist_channel_class_init (GabbleRoomlistChannelClass *gabble_roomlist_
g_object_class_install_property (object_class, PROP_INITIATOR_ID,
param_spec);
+ param_spec = g_param_spec_boolean ("requested", "Requested?",
+ "True if this channel was requested by the local user",
+ FALSE,
+ G_PARAM_READABLE |
+ G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NAME);
+ g_object_class_install_property (object_class, PROP_REQUESTED, param_spec);
+
param_spec = g_param_spec_object ("connection", "GabbleConnection object",
"Gabble connection object that owns this room list channel object.",
GABBLE_TYPE_CONNECTION,
--
1.5.6.3
More information about the Telepathy-commits
mailing list