]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-individual-store.h
remove released flag
[empathy.git] / libempathy-gtk / empathy-individual-store.h
index 246c73b913e58215fee82ece973a5775261002f2..c709348fc6bdac801d548ff8f7260c4bb89cbf86 100644 (file)
@@ -28,8 +28,7 @@
 #define __EMPATHY_INDIVIDUAL_STORE_H__
 
 #include <gtk/gtk.h>
-
-#include <libempathy/empathy-individual-manager.h>
+#include <folks/folks.h>
 
 G_BEGIN_DECLS
 #define EMPATHY_TYPE_INDIVIDUAL_STORE         (empathy_individual_store_get_type ())
@@ -38,8 +37,10 @@ G_BEGIN_DECLS
 #define EMPATHY_IS_INDIVIDUAL_STORE(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), EMPATHY_TYPE_INDIVIDUAL_STORE))
 #define EMPATHY_IS_INDIVIDUAL_STORE_CLASS(k)  (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_INDIVIDUAL_STORE))
 #define EMPATHY_INDIVIDUAL_STORE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_INDIVIDUAL_STORE, EmpathyIndividualStoreClass))
+
 typedef struct _EmpathyIndividualStore EmpathyIndividualStore;
 typedef struct _EmpathyIndividualStoreClass EmpathyIndividualStoreClass;
+typedef struct _EmpathyIndividualStorePriv EmpathyIndividualStorePriv;
 
 typedef enum
 {
@@ -65,6 +66,7 @@ typedef enum
   EMPATHY_INDIVIDUAL_STORE_COL_CAN_VIDEO_CALL,
   EMPATHY_INDIVIDUAL_STORE_COL_IS_FAKE_GROUP,
   EMPATHY_INDIVIDUAL_STORE_COL_CLIENT_TYPES,
+  EMPATHY_INDIVIDUAL_STORE_COL_EVENT_COUNT,
   EMPATHY_INDIVIDUAL_STORE_COL_COUNT,
 } EmpathyIndividualStoreCol;
 
@@ -75,23 +77,20 @@ typedef enum
 struct _EmpathyIndividualStore
 {
   GtkTreeStore parent;
-  gpointer priv;
+  EmpathyIndividualStorePriv *priv;
 };
 
 struct _EmpathyIndividualStoreClass
 {
   GtkTreeStoreClass parent_class;
+
+  void (*reload_individuals) (EmpathyIndividualStore *self);
+  gboolean (*initial_loading) (EmpathyIndividualStore *self);
 };
 
 GType
 empathy_individual_store_get_type (void) G_GNUC_CONST;
 
-EmpathyIndividualStore *empathy_individual_store_new (
-    EmpathyIndividualManager *manager);
-
-EmpathyIndividualManager *empathy_individual_store_get_manager (
-    EmpathyIndividualStore *store);
-
 gboolean empathy_individual_store_get_show_avatars (
     EmpathyIndividualStore *store);
 
@@ -137,5 +136,32 @@ GdkPixbuf *empathy_individual_store_get_individual_status_icon (
     EmpathyIndividualStore *store,
     FolksIndividual *individual);
 
+void individual_store_add_individual_and_connect (EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+void individual_store_remove_individual_and_disconnect (
+    EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+/* protected */
+
+GList *empathy_individual_store_find_contact (EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+void empathy_individual_store_free_iters (GList *iters);
+
+void empathy_individual_store_disconnect_individual (
+    EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+void empathy_individual_store_remove_individual (EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+void empathy_individual_store_add_individual (EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
+void empathy_individual_store_refresh_individual (EmpathyIndividualStore *self,
+    FolksIndividual *individual);
+
 G_END_DECLS
 #endif /* __EMPATHY_INDIVIDUAL_STORE_H__ */