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>
12 #define EMPATHY_ROSTER_VIEW_GROUP_UNGROUPED _("Ungrouped")
13 #define EMPATHY_ROSTER_VIEW_GROUP_TOP_GROUP _("Top Contacts")
14 #define EMPATHY_ROSTER_VIEW_GROUP_PEOPLE_NEARBY _("People Nearby")
16 typedef struct _EmpathyRosterView EmpathyRosterView;
17 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
18 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
20 struct _EmpathyRosterViewClass
23 EggListBoxClass parent_class;
26 struct _EmpathyRosterView
30 EmpathyRosterViewPriv *priv;
33 GType empathy_roster_view_get_type (void);
36 #define EMPATHY_TYPE_ROSTER_VIEW \
37 (empathy_roster_view_get_type ())
38 #define EMPATHY_ROSTER_VIEW(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
40 EMPATHY_TYPE_ROSTER_VIEW, \
42 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_CAST((klass), \
44 EMPATHY_TYPE_ROSTER_VIEW, \
45 EmpathyRosterViewClass))
46 #define EMPATHY_IS_ROSTER_VIEW(obj) \
47 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
48 EMPATHY_TYPE_ROSTER_VIEW))
49 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
50 (G_TYPE_CHECK_CLASS_TYPE((klass), \
51 EMPATHY_TYPE_ROSTER_VIEW))
52 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
53 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
54 EMPATHY_TYPE_ROSTER_VIEW, \
55 EmpathyRosterViewClass))
57 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager);
59 EmpathyIndividualManager * empathy_roster_view_get_manager (
60 EmpathyRosterView *self);
62 void empathy_roster_view_show_offline (EmpathyRosterView *self,
65 void empathy_roster_view_show_groups (EmpathyRosterView *self,
68 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
69 EmpathyLiveSearch *search);
71 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
73 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
75 guint empathy_roster_view_add_event (EmpathyRosterView *self,
76 FolksIndividual *individual,
80 void empathy_roster_view_remove_event (EmpathyRosterView *self,
83 FolksIndividual * empathy_roster_view_get_individual_at_y (
84 EmpathyRosterView *self,
86 GtkWidget **out_child);
88 const gchar * empathy_roster_view_get_group_at_y (
89 EmpathyRosterView *self,
92 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
96 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/