]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-tp-contact-list.h
Merge branch 'master' into tp-tube
[empathy.git] / libempathy / empathy-tp-contact-list.h
index 382446ebcc8b2229457191af374cf697d1013b6d..c6cf6cb4abe3c4f44a155469ea5ab27a57361a35 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 /*
  * Copyright (C) 2007 Xavier Claessens <xclaesse@gmail.com>
- * 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
@@ -24,9 +24,8 @@
 #define __EMPATHY_TP_CONTACT_LIST_H__
 
 #include <glib.h>
-#include <libmissioncontrol/mc-account.h>
+#include <telepathy-glib/connection.h>
 
-#include "empathy-contact.h"
 
 G_BEGIN_DECLS
 
@@ -39,10 +38,10 @@ G_BEGIN_DECLS
 
 typedef struct _EmpathyTpContactList      EmpathyTpContactList;
 typedef struct _EmpathyTpContactListClass EmpathyTpContactListClass;
-typedef struct _EmpathyTpContactListPriv  EmpathyTpContactListPriv;
 
 struct _EmpathyTpContactList {
-       GObject      parent;
+       GObject parent;
+       gpointer priv;
 };
 
 struct _EmpathyTpContactListClass {
@@ -50,8 +49,10 @@ struct _EmpathyTpContactListClass {
 };
 
 GType                  empathy_tp_contact_list_get_type    (void) G_GNUC_CONST;
-EmpathyTpContactList * empathy_tp_contact_list_new         (McAccount            *account);
-McAccount *            empathy_tp_contact_list_get_account (EmpathyTpContactList *list);
+EmpathyTpContactList * empathy_tp_contact_list_new         (TpConnection         *connection);
+TpConnection *         empathy_tp_contact_list_get_connection (EmpathyTpContactList *list);
+gboolean               empathy_tp_contact_list_can_add     (EmpathyTpContactList *list);
+void                   empathy_tp_contact_list_remove_all  (EmpathyTpContactList *list);
 
 G_END_DECLS