aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-model.h
diff options
context:
space:
mode:
authorLaurent Contzen <lcontzen@gmail.com>2012-08-04 21:29:46 +0800
committerLaurent Contzen <lcontzen@gmail.com>2012-08-06 17:02:19 +0800
commitaf7910a9af2984973be248b769d74f09e84822d4 (patch)
treecdabbe1f29bc2641e1344da5f13fb3cac7cab0f4 /libempathy-gtk/empathy-roster-model.h
parentb3c361fdca7f6a0bb2a63e676cd0a5d488261127 (diff)
downloadgsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.gz
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.bz2
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.lz
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.xz
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.tar.zst
gsoc2013-empathy-af7910a9af2984973be248b769d74f09e84822d4.zip
Moved contact_in_top and contact_is_favourite from view to model
empathy-roster-model: new function _contact_in_top empathy-roster-model-manager: implemented _contact_in_top, new function contact_is_favourite empathy-roster-view: removed contact_in_top and contact_is_favourite functions, now calling model's _contact_in_top instead
Diffstat (limited to 'libempathy-gtk/empathy-roster-model.h')
-rw-r--r--libempathy-gtk/empathy-roster-model.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-roster-model.h b/libempathy-gtk/empathy-roster-model.h
index d4737b785..c624ca427 100644
--- a/libempathy-gtk/empathy-roster-model.h
+++ b/libempathy-gtk/empathy-roster-model.h
@@ -24,6 +24,8 @@
#include <folks/folks.h>
+#include <libempathy-gtk/empathy-roster-contact.h>
+
G_BEGIN_DECLS
typedef struct _EmpathyRosterModel EmpathyRosterModel;
@@ -39,6 +41,8 @@ struct _EmpathyRosterModelInterface
GList * (*get_groups_for_individual) (EmpathyRosterModel *self,
FolksIndividual *individual);
GList * (*get_top_individuals) (EmpathyRosterModel *self);
+ gboolean (*contact_in_top) (EmpathyRosterModel *self,
+ EmpathyRosterContact *contact);
};
GType empathy_roster_model_get_type (void);
@@ -86,6 +90,9 @@ GList * empathy_roster_model_get_groups_for_individual (EmpathyRosterModel *self
GList * empathy_roster_model_get_top_individuals (EmpathyRosterModel *self);
+gboolean empathy_roster_model_contact_in_top (EmpathyRosterModel *self,
+ EmpathyRosterContact *contact);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_ROSTER_MODEL_H__*/