summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-connection.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-04-08 18:39:31 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-12-01 15:12:21 +0000
commit719ce480abc48e24f5c8528ab4bc5bf119101333 (patch)
tree94f724db64a3a1fa82a0c48128b8a1992e08b435 /telepathy-glib/base-connection.c
parent63bc3c571ebdc3dacb4308d5413d816741d254ad (diff)
downloadtelepathy-glib-719ce480abc48e24f5c8528ab4bc5bf119101333.tar.gz
TpBaseConnection: add stub has-immortal-handles property
Diffstat (limited to 'telepathy-glib/base-connection.c')
-rw-r--r--telepathy-glib/base-connection.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 86c795377..42679d949 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -271,6 +271,7 @@ enum
PROP_INTERFACES,
PROP_DBUS_STATUS,
PROP_DBUS_DAEMON,
+ PROP_HAS_IMMORTAL_HANDLES,
N_PROPS
};
@@ -472,6 +473,10 @@ tp_base_connection_get_property (GObject *object,
g_value_set_object (value, self->priv->bus_proxy);
break;
+ case PROP_HAS_IMMORTAL_HANDLES:
+ g_value_set_boolean (value, TRUE);
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
@@ -1513,6 +1518,7 @@ tp_base_connection_class_init (TpBaseConnectionClass *klass)
{ "SelfHandle", "self-handle", NULL },
{ "Status", "dbus-status", NULL },
{ "Interfaces", "interfaces", NULL },
+ /*{ "HasImmortalHandles", "has-immortal-handles", NULL },*/
{ NULL }
};
static TpDBusPropertiesMixinPropImpl requests_properties[] = {
@@ -1615,6 +1621,21 @@ tp_base_connection_class_init (TpBaseConnectionClass *klass)
"The D-Bus daemon used by this object", TP_TYPE_DBUS_DAEMON,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+ /**
+ * TpBaseConnection:has-immortal-handles:
+ *
+ * This property is not useful to use directly. Its value is %TRUE, to
+ * indicate that this version of telepathy-glib never unreferences handles
+ * until the connection becomes disconnected.
+ *
+ * Since: 0.13.UNRELEASED
+ */
+ param_spec = g_param_spec_boolean ("has-immortal-handles",
+ "Connection.HasImmortalHandles",
+ "Always TRUE", TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ g_object_class_install_property (object_class, PROP_HAS_IMMORTAL_HANDLES,
+ param_spec);
+
/* signal definitions */
/**