]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-view.h
Use a flat namespace for internal includes
[empathy.git] / libempathy-gtk / empathy-roster-view.h
1
2 #ifndef __EMPATHY_ROSTER_VIEW_H__
3 #define __EMPATHY_ROSTER_VIEW_H__
4
5 #include "egg-list-box/egg-list-box.h"
6 #include "empathy-live-search.h"
7
8 #include "empathy-roster-model.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 (EmpathyRosterModel *model);
54
55 void empathy_roster_view_show_offline (EmpathyRosterView *self,
56     gboolean show);
57
58 void empathy_roster_view_show_groups (EmpathyRosterView *self,
59     gboolean show);
60
61 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
62     EmpathyLiveSearch *search);
63
64 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
65
66 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
67
68 guint empathy_roster_view_add_event (EmpathyRosterView *self,
69     FolksIndividual *individual,
70     const gchar *icon,
71     gpointer user_data);
72
73 void empathy_roster_view_remove_event (EmpathyRosterView *self,
74     guint event_id);
75
76 FolksIndividual * empathy_roster_view_get_individual_at_y (
77     EmpathyRosterView *self,
78     gint y,
79     GtkWidget **out_child);
80
81 const gchar * empathy_roster_view_get_group_at_y (
82     EmpathyRosterView *self,
83     gint y);
84
85 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
86
87 G_END_DECLS
88
89 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/