[Telepathy-commits] [telepathy-salut/master] SalutRoomlistChannel: add the Requested property

Alban Crequy alban.crequy at collabora.co.uk
Wed Oct 22 08:34:01 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 e0c1432..fb757ac 100644
--- a/src/salut-roomlist-channel.c
+++ b/src/salut-roomlist-channel.c
@@ -66,6 +66,7 @@ enum
   PROP_CONNECTION,
   PROP_INTERFACES,
   PROP_TARGET_ID,
+  PROP_REQUESTED,
   LAST_PROPERTY
 };
 
@@ -148,6 +149,9 @@ salut_roomlist_channel_get_property (GObject *object,
     case PROP_TARGET_ID:
       g_value_set_static_string (value, "");
       break;
+    case PROP_REQUESTED:
+      g_value_set_boolean (value, TRUE);
+      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
       break;
@@ -210,6 +214,7 @@ salut_roomlist_channel_class_init (
       { "TargetHandleType", "handle-type", NULL },
       { "TargetHandle", "handle", NULL },
       { "TargetID", "target-id", NULL },
+      { "Requested", "requested", NULL },
       { "ChannelType", "channel-type", NULL },
       { "Interfaces", "interfaces", NULL },
       { NULL }
@@ -257,6 +262,13 @@ salut_roomlist_channel_class_init (
       G_PARAM_STATIC_BLURB);
   g_object_class_install_property (object_class, PROP_TARGET_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", "SalutConnection object",
                                     "Salut connection object that owns this "
                                     "room list channel object.",
-- 
1.5.6.5




More information about the Telepathy-commits mailing list