]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-view.h
roster-view: add live search support
[empathy.git] / libempathy-gtk / empathy-roster-view.h
1
2 #ifndef __EMPATHY_ROSTER_VIEW_H__
3 #define __EMPATHY_ROSTER_VIEW_H__
4
5 #include <libempathy-gtk/egg-list-box/egg-list-box.h>
6 #include <libempathy-gtk/empathy-live-search.h>
7
8 #include <libempathy/empathy-individual-manager.h>
9
10 G_BEGIN_DECLS
11
12 typedef struct _EmpathyRosterView EmpathyRosterView;
13 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
14 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
15
16 struct _EmpathyRosterViewClass
17 {
18   /*<private>*/
19   EggListBoxClass parent_class;
20 };
21
22 struct _EmpathyRosterView
23 {
24   /*<private>*/
25   EggListBox parent;
26   EmpathyRosterViewPriv *priv;
27 };
28
29 GType empathy_roster_view_get_type (void);
30
31 /* TYPE MACROS */
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, \
37     EmpathyRosterView))
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))
52
53 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager);
54
55 EmpathyIndividualManager * empathy_roster_view_get_manager (
56     EmpathyRosterView *self);
57
58 void empathy_roster_view_show_offline (EmpathyRosterView *self,
59     gboolean show);
60
61 void empathy_roster_view_show_groups (EmpathyRosterView *self,
62     gboolean show);
63
64 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
65     EmpathyLiveSearch *search);
66
67 G_END_DECLS
68
69 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/