]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-roster-model.h
Updated Swedish translation
[empathy.git] / libempathy-gtk / empathy-roster-model.h
index 75b0b1055d7c9190d57c1a07951cb0587811a388..1b35f1a1c881de7266c2635e6b31cd57ece99732 100644 (file)
 #ifndef __EMPATHY_ROSTER_MODEL_H__
 #define __EMPATHY_ROSTER_MODEL_H__
 
-#include <glib-object.h>
+#include <folks/folks.h>
 
 G_BEGIN_DECLS
 
+#define EMPATHY_ROSTER_MODEL_GROUP_TOP_GROUP _("Top Contacts")
+#define EMPATHY_ROSTER_MODEL_GROUP_PEOPLE_NEARBY _("People Nearby")
+#define EMPATHY_ROSTER_MODEL_GROUP_UNGROUPED _("Ungrouped")
+
 typedef struct _EmpathyRosterModel EmpathyRosterModel;
 typedef struct _EmpathyRosterModelInterface EmpathyRosterModelInterface;
 
@@ -33,6 +37,9 @@ struct _EmpathyRosterModelInterface
   GTypeInterface g_iface;
 
   /* Virtual table */
+  GList * (* get_individuals) (EmpathyRosterModel *self);
+  GList * (*dup_groups_for_individual) (EmpathyRosterModel *self,
+      FolksIndividual *individual);
 };
 
 GType empathy_roster_model_get_type (void);
@@ -52,6 +59,26 @@ GType empathy_roster_model_get_type (void);
     EMPATHY_TYPE_ROSTER_MODEL, \
     EmpathyRosterModelInterface))
 
+/* Restricted */
+
+void empathy_roster_model_fire_individual_added (EmpathyRosterModel *self,
+    FolksIndividual *individual);
+
+void empathy_roster_model_fire_individual_removed (EmpathyRosterModel *self,
+    FolksIndividual *individual);
+
+void empathy_roster_model_fire_groups_changed (EmpathyRosterModel *self,
+    FolksIndividual *individual,
+    const gchar *group,
+    gboolean is_member);
+
+/* Public API */
+GList * empathy_roster_model_get_individuals (EmpathyRosterModel *self);
+
+GList * empathy_roster_model_dup_groups_for_individual (
+    EmpathyRosterModel *self,
+    FolksIndividual *individual);
+
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_ROSTER_MODEL_H__*/