{
PROP_ACCOUNT = 1,
PROP_SIMULATION_DELAY,
+ PROP_MANAGER,
N_PROPS
};
g_value_set_string (value, self->priv->account);
break;
+ case PROP_MANAGER:
+ g_value_set_object (value, self->priv->list_manager);
+ break;
+
case PROP_SIMULATION_DELAY:
g_value_set_uint (value, self->priv->simulation_delay);
break;
object);
}
+TpTestContactListManager *
+tp_test_contact_list_connection_get_manager (TpTestContactListConnection *self)
+{
+ g_return_val_if_fail (TP_TEST_IS_CONTACT_LIST_CONNECTION (self), NULL);
+
+ return self->priv->list_manager;
+}
+
static gchar *
get_unique_connection_name (TpBaseConnection *conn)
{
G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB);
g_object_class_install_property (object_class, PROP_ACCOUNT, param_spec);
+ param_spec = g_param_spec_object ("manager", "TpTestContactListManager",
+ "TpTestContactListManager object that owns this channel",
+ TP_TEST_TYPE_CONTACT_LIST_MANAGER,
+ G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+ g_object_class_install_property (object_class, PROP_MANAGER, param_spec);
+
param_spec = g_param_spec_uint ("simulation-delay", "Simulation delay",
"Delay between simulated network events",
0, G_MAXUINT32, 1000,
#include <telepathy-glib/contacts-mixin.h>
#include <telepathy-glib/presence-mixin.h>
+#include "contact-list-manager.h"
+
G_BEGIN_DECLS
typedef struct _TpTestContactListConnection TpTestContactListConnection;
(G_TYPE_INSTANCE_GET_CLASS ((obj), TP_TEST_TYPE_CONTACT_LIST_CONNECTION, \
TpTestContactListConnectionClass))
+TpTestContactListManager *tp_test_contact_list_connection_get_manager (
+ TpTestContactListConnection *self);
+
gchar *tp_test_contact_list_normalize_contact (TpHandleRepoIface *repo,
const gchar *id, gpointer context, GError **error);