/* -*- 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
#include <libmissioncontrol/mc-account.h>
#include "empathy-contact.h"
+#include "empathy-tp-contact-factory.h"
G_BEGIN_DECLS
typedef struct _EmpathyContactFactory EmpathyContactFactory;
typedef struct _EmpathyContactFactoryClass EmpathyContactFactoryClass;
-typedef struct _EmpathyContactFactoryPriv EmpathyContactFactoryPriv;
struct _EmpathyContactFactory {
GObject parent;
+ gpointer priv;
};
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,
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