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 typedef struct _EmpathyRosterView EmpathyRosterView;
13 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
14 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
16 struct _EmpathyRosterViewClass
19 EggListBoxClass parent_class;
22 struct _EmpathyRosterView
26 EmpathyRosterViewPriv *priv;
29 GType empathy_roster_view_get_type (void);
32 #define EMPATHY_TYPE_ROSTER_VIEW \
33 (empathy_roster_view_get_type ())
34 #define EMPATHY_ROSTER_VIEW(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36 EMPATHY_TYPE_ROSTER_VIEW, \
38 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass), \
40 EMPATHY_TYPE_ROSTER_VIEW, \
41 EmpathyRosterViewClass))
42 #define EMPATHY_IS_ROSTER_VIEW(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
44 EMPATHY_TYPE_ROSTER_VIEW))
45 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
46 (G_TYPE_CHECK_CLASS_TYPE((klass), \
47 EMPATHY_TYPE_ROSTER_VIEW))
48 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 EMPATHY_TYPE_ROSTER_VIEW, \
51 EmpathyRosterViewClass))
53 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager);
55 EmpathyIndividualManager * empathy_roster_view_get_manager (
56 EmpathyRosterView *self);
58 void empathy_roster_view_show_offline (EmpathyRosterView *self,
61 void empathy_roster_view_show_groups (EmpathyRosterView *self,
64 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
65 EmpathyLiveSearch *search);
67 typedef gboolean (* EmpathyRosterViewIndividualTooltipCb) (
68 EmpathyRosterView *self,
69 FolksIndividual *individual,
70 gboolean keyboard_mode,
74 void empathy_roster_view_set_individual_tooltip_cb (EmpathyRosterView *self,
75 EmpathyRosterViewIndividualTooltipCb callback,
78 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
80 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
84 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/