summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-contact-list.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-10-05 12:16:02 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-10-05 12:25:47 +0100
commit0f2ab6850d1b8e9a0808003ee480db2acd2f876b (patch)
tree377afda1c79f27d064871123f17857306e235f3c /telepathy-glib/base-contact-list.c
parent80624b1844eb2be99c19d70282cbae953c3f4aa5 (diff)
downloadtelepathy-glib-0f2ab6850d1b8e9a0808003ee480db2acd2f876b.tar.gz
TpBaseContactList: implement the ContactListState property
Reviewed-by: David Laban <david.laban@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/base-contact-list.c')
-rw-r--r--telepathy-glib/base-contact-list.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/telepathy-glib/base-contact-list.c b/telepathy-glib/base-contact-list.c
index 7e3a0353d..2f9e1a852 100644
--- a/telepathy-glib/base-contact-list.c
+++ b/telepathy-glib/base-contact-list.c
@@ -4888,6 +4888,7 @@ error:
}
typedef enum {
+ LP_CONTACT_LIST_STATE,
LP_CONTACT_LIST_PERSISTS,
LP_CAN_CHANGE_CONTACT_LIST,
LP_REQUEST_USES_MESSAGE,
@@ -4895,6 +4896,7 @@ typedef enum {
} ListProp;
static TpDBusPropertiesMixinPropImpl known_list_props[] = {
+ { "ContactListState", GINT_TO_POINTER (LP_CONTACT_LIST_STATE), },
{ "ContactListPersists", GINT_TO_POINTER (LP_CONTACT_LIST_PERSISTS), },
{ "CanChangeContactList", GINT_TO_POINTER (LP_CAN_CHANGE_CONTACT_LIST) },
{ "RequestUsesMessage", GINT_TO_POINTER (LP_REQUEST_USES_MESSAGE) },
@@ -4920,6 +4922,11 @@ tp_base_contact_list_get_list_dbus_property (GObject *conn,
switch (p)
{
+ case LP_CONTACT_LIST_STATE:
+ g_return_if_fail (G_VALUE_HOLDS_UINT (value));
+ g_value_set_uint (value, self->priv->state);
+ break;
+
case LP_CONTACT_LIST_PERSISTS:
g_return_if_fail (G_VALUE_HOLDS_BOOLEAN (value));
g_value_set_boolean (value,