2 #ifndef __EMPATHY_ROSTER_VIEW_H__
3 #define __EMPATHY_ROSTER_VIEW_H__
5 #include <libempathy-gtk/egg-list-box/egg-list-box.h>
6 #include <libempathy-gtk/empathy-live-search.h>
8 #include <libempathy/empathy-individual-manager.h>
9 #include <libempathy-gtk/empathy-roster-model.h>
13 #define EMPATHY_ROSTER_VIEW_GROUP_UNGROUPED _("Ungrouped")
14 #define EMPATHY_ROSTER_VIEW_GROUP_TOP_GROUP _("Top Contacts")
15 #define EMPATHY_ROSTER_VIEW_GROUP_PEOPLE_NEARBY _("People Nearby")
17 typedef struct _EmpathyRosterView EmpathyRosterView;
18 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
19 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
21 struct _EmpathyRosterViewClass
24 EggListBoxClass parent_class;
27 struct _EmpathyRosterView
31 EmpathyRosterViewPriv *priv;
34 GType empathy_roster_view_get_type (void);
37 #define EMPATHY_TYPE_ROSTER_VIEW \
38 (empathy_roster_view_get_type ())
39 #define EMPATHY_ROSTER_VIEW(obj) \
40 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
41 EMPATHY_TYPE_ROSTER_VIEW, \
43 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
44 (G_TYPE_CHECK_CLASS_CAST((klass), \
45 EMPATHY_TYPE_ROSTER_VIEW, \
46 EmpathyRosterViewClass))
47 #define EMPATHY_IS_ROSTER_VIEW(obj) \
48 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
49 EMPATHY_TYPE_ROSTER_VIEW))
50 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_TYPE((klass), \
52 EMPATHY_TYPE_ROSTER_VIEW))
53 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
54 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55 EMPATHY_TYPE_ROSTER_VIEW, \
56 EmpathyRosterViewClass))
58 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager,
59 EmpathyRosterModel *model);
61 EmpathyIndividualManager * empathy_roster_view_get_manager (
62 EmpathyRosterView *self);
64 void empathy_roster_view_show_offline (EmpathyRosterView *self,
67 void empathy_roster_view_show_groups (EmpathyRosterView *self,
70 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
71 EmpathyLiveSearch *search);
73 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
75 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
77 guint empathy_roster_view_add_event (EmpathyRosterView *self,
78 FolksIndividual *individual,
82 void empathy_roster_view_remove_event (EmpathyRosterView *self,
85 FolksIndividual * empathy_roster_view_get_individual_at_y (
86 EmpathyRosterView *self,
88 GtkWidget **out_child);
90 const gchar * empathy_roster_view_get_group_at_y (
91 EmpathyRosterView *self,
94 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
98 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/