aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-contact-factory.h
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 23:28:22 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-04-24 23:28:22 +0800
commitf02d96379cb7043611d093921755d699e48689bb (patch)
tree4a7cb101ebe4295306f17f12f805e4672c30bff6 /libempathy/empathy-tp-contact-factory.h
parentc8d23985b7754541cab512992294c19f5c87cfaa (diff)
parentd696d6cc31f672884382d5b8949be504cdc718a5 (diff)
downloadgsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar.gz
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar.bz2
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar.lz
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar.xz
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.tar.zst
gsoc2013-empathy-f02d96379cb7043611d093921755d699e48689bb.zip
Merge branch 'master' into tp-tube
Diffstat (limited to 'libempathy/empathy-tp-contact-factory.h')
-rw-r--r--libempathy/empathy-tp-contact-factory.h64
1 files changed, 53 insertions, 11 deletions
diff --git a/libempathy/empathy-tp-contact-factory.h b/libempathy/empathy-tp-contact-factory.h
index 92e7c2980..91ff2f9e7 100644
--- a/libempathy/empathy-tp-contact-factory.h
+++ b/libempathy/empathy-tp-contact-factory.h
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * Copyright (C) 2007-2008 Collabora Ltd.
+ * Copyright (C) 2007-2009 Collabora Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -24,7 +24,7 @@
#include <glib.h>
-#include <libmissioncontrol/mc-account.h>
+#include <telepathy-glib/connection.h>
#include "empathy-contact.h"
@@ -49,15 +49,58 @@ struct _EmpathyTpContactFactoryClass {
GObjectClass parent_class;
};
+typedef void (*EmpathyTpContactFactoryContactsByIdCb) (EmpathyTpContactFactory *factory,
+ guint n_contacts,
+ EmpathyContact * const * contacts,
+ const gchar * const * requested_ids,
+ GHashTable *failed_id_errors,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object);
+
+typedef void (*EmpathyTpContactFactoryContactsByHandleCb) (EmpathyTpContactFactory *factory,
+ guint n_contacts,
+ EmpathyContact * const * contacts,
+ guint n_failed,
+ const TpHandle *failed,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object);
+
+typedef void (*EmpathyTpContactFactoryContactCb) (EmpathyTpContactFactory *factory,
+ EmpathyContact *contact,
+ const GError *error,
+ gpointer user_data,
+ GObject *weak_object);
+
GType empathy_tp_contact_factory_get_type (void) G_GNUC_CONST;
-EmpathyTpContactFactory *empathy_tp_contact_factory_new (McAccount *account);
-EmpathyContact * empathy_tp_contact_factory_get_user (EmpathyTpContactFactory *tp_factory);
-EmpathyContact * empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
- const gchar *id);
-EmpathyContact * empathy_tp_contact_factory_get_from_handle (EmpathyTpContactFactory *tp_factory,
- guint handle);
-GList * empathy_tp_contact_factory_get_from_handles (EmpathyTpContactFactory *tp_factory,
- const GArray *handles);
+EmpathyTpContactFactory *empathy_tp_contact_factory_dup_singleton (TpConnection *connection);
+void empathy_tp_contact_factory_get_from_ids (EmpathyTpContactFactory *tp_factory,
+ guint n_ids,
+ const gchar * const *ids,
+ EmpathyTpContactFactoryContactsByIdCb callback,
+ gpointer user_data,
+ GDestroyNotify destroy,
+ GObject *weak_object);
+void empathy_tp_contact_factory_get_from_handles (EmpathyTpContactFactory *tp_factory,
+ guint n_handles,
+ const TpHandle *handles,
+ EmpathyTpContactFactoryContactsByHandleCb callback,
+ gpointer user_data,
+ GDestroyNotify destroy,
+ GObject *weak_object);
+void empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
+ const gchar *id,
+ EmpathyTpContactFactoryContactCb callback,
+ gpointer user_data,
+ GDestroyNotify destroy,
+ GObject *weak_object);
+void empathy_tp_contact_factory_get_from_handle (EmpathyTpContactFactory *tp_factory,
+ TpHandle handle,
+ EmpathyTpContactFactoryContactCb callback,
+ gpointer user_data,
+ GDestroyNotify destroy,
+ GObject *weak_object);
void empathy_tp_contact_factory_set_alias (EmpathyTpContactFactory *tp_factory,
EmpathyContact *contact,
const gchar *alias);
@@ -65,7 +108,6 @@ void empathy_tp_contact_factory_set_avatar (EmpathyTpC
const gchar *data,
gsize size,
const gchar *mime_type);
-gboolean empathy_tp_contact_factory_is_ready (EmpathyTpContactFactory *tp_factory);
G_END_DECLS