]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-factory.h
Keep a ref to all TpConnection objects. Map account<>connection.
[empathy.git] / libempathy / empathy-contact-factory.h
index bed5587813d8856a1f07bd7a3f5c5b34e09e2fab..16df02bcdd012c0b6ceb291da3aea4d94e18bf52 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
- * Copyright (C) 2007 Collabora Ltd.
+ * Copyright (C) 2007-2008 Collabora Ltd.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -27,6 +27,7 @@
 #include <libmissioncontrol/mc-account.h>
 
 #include "empathy-contact.h"
+#include "empathy-tp-contact-factory.h"
 
 G_BEGIN_DECLS
 
@@ -39,10 +40,10 @@ G_BEGIN_DECLS
 
 typedef struct _EmpathyContactFactory      EmpathyContactFactory;
 typedef struct _EmpathyContactFactoryClass EmpathyContactFactoryClass;
-typedef struct _EmpathyContactFactoryPriv  EmpathyContactFactoryPriv;
 
 struct _EmpathyContactFactory {
        GObject parent;
+       gpointer priv;
 };
 
 struct _EmpathyContactFactoryClass {
@@ -50,7 +51,9 @@ struct _EmpathyContactFactoryClass {
 };
 
 GType                  empathy_contact_factory_get_type         (void) G_GNUC_CONST;
-EmpathyContactFactory *empathy_contact_factory_new              (void);
+EmpathyContactFactory *empathy_contact_factory_dup_singleton    (void);
+EmpathyTpContactFactory *empathy_contact_factory_get_tp_factory (EmpathyContactFactory *factory,
+                                                                McAccount             *account);
 EmpathyContact *       empathy_contact_factory_get_user         (EmpathyContactFactory *factory,
                                                                 McAccount             *account);
 EmpathyContact *       empathy_contact_factory_get_from_id      (EmpathyContactFactory *factory,
@@ -61,10 +64,15 @@ EmpathyContact *       empathy_contact_factory_get_from_handle  (EmpathyContactF
                                                                 guint                  handle);
 GList *                empathy_contact_factory_get_from_handles (EmpathyContactFactory *factory,
                                                                 McAccount             *account,
-                                                                GArray                *handles);
-void                   empathy_contact_factory_set_name         (EmpathyContactFactory *factory,
+                                                                const GArray          *handles);
+void                   empathy_contact_factory_set_alias        (EmpathyContactFactory *factory,
                                                                 EmpathyContact        *contact,
-                                                                const gchar           *name);
+                                                                const gchar           *alias);
+void                   empathy_contact_factory_set_avatar       (EmpathyContactFactory *factory,
+                                                                McAccount             *account,
+                                                                const gchar           *data,
+                                                                gsize                  size,
+                                                                const gchar           *mime_type);
 
 G_END_DECLS