]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-view.h
Filter out offline contacts
[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/empathy-individual-manager.h>
7
8 G_BEGIN_DECLS
9
10 typedef struct _EmpathyRosterView EmpathyRosterView;
11 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
12 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
13
14 struct _EmpathyRosterViewClass
15 {
16   /*<private>*/
17   EggListBoxClass parent_class;
18 };
19
20 struct _EmpathyRosterView
21 {
22   /*<private>*/
23   EggListBox parent;
24   EmpathyRosterViewPriv *priv;
25 };
26
27 GType empathy_roster_view_get_type (void);
28
29 /* TYPE MACROS */
30 #define EMPATHY_TYPE_ROSTER_VIEW \
31   (empathy_roster_view_get_type ())
32 #define EMPATHY_ROSTER_VIEW(obj) \
33   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
34     EMPATHY_TYPE_ROSTER_VIEW, \
35     EmpathyRosterView))
36 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
37   (G_TYPE_CHECK_CLASS_CAST((klass), \
38     EMPATHY_TYPE_ROSTER_VIEW, \
39     EmpathyRosterViewClass))
40 #define EMPATHY_IS_ROSTER_VIEW(obj) \
41   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
42     EMPATHY_TYPE_ROSTER_VIEW))
43 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_TYPE((klass), \
45     EMPATHY_TYPE_ROSTER_VIEW))
46 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
47   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
48     EMPATHY_TYPE_ROSTER_VIEW, \
49     EmpathyRosterViewClass))
50
51 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager);
52
53 EmpathyIndividualManager * empathy_roster_view_get_manager (
54     EmpathyRosterView *self);
55
56 void empathy_roster_view_show_offline (EmpathyRosterView *self,
57     gboolean show);
58
59 G_END_DECLS
60
61 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/