]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-view.h
Updated POTFILES.in
[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 #include <libempathy-gtk/empathy-roster-model.h>
10
11 G_BEGIN_DECLS
12
13 #define EMPATHY_ROSTER_VIEW_GROUP_UNGROUPED _("Ungrouped")
14 #define EMPATHY_ROSTER_VIEW_GROUP_TOP_GROUP _("Top Contacts")
15 #define EMPATHY_ROSTER_VIEW_GROUP_PEOPLE_NEARBY _("People Nearby")
16
17 typedef struct _EmpathyRosterView EmpathyRosterView;
18 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
19 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
20
21 struct _EmpathyRosterViewClass
22 {
23   /*<private>*/
24   EggListBoxClass parent_class;
25 };
26
27 struct _EmpathyRosterView
28 {
29   /*<private>*/
30   EggListBox parent;
31   EmpathyRosterViewPriv *priv;
32 };
33
34 GType empathy_roster_view_get_type (void);
35
36 /* TYPE MACROS */
37 #define EMPATHY_TYPE_ROSTER_VIEW \
38   (empathy_roster_view_get_type ())
39 #define EMPATHY_ROSTER_VIEW(obj) \
40   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
41     EMPATHY_TYPE_ROSTER_VIEW, \
42     EmpathyRosterView))
43 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
44   (G_TYPE_CHECK_CLASS_CAST((klass), \
45     EMPATHY_TYPE_ROSTER_VIEW, \
46     EmpathyRosterViewClass))
47 #define EMPATHY_IS_ROSTER_VIEW(obj) \
48   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
49     EMPATHY_TYPE_ROSTER_VIEW))
50 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
51   (G_TYPE_CHECK_CLASS_TYPE((klass), \
52     EMPATHY_TYPE_ROSTER_VIEW))
53 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
54   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
55     EMPATHY_TYPE_ROSTER_VIEW, \
56     EmpathyRosterViewClass))
57
58 GtkWidget * empathy_roster_view_new (EmpathyIndividualManager *manager,
59     EmpathyRosterModel *model);
60
61 EmpathyIndividualManager * empathy_roster_view_get_manager (
62     EmpathyRosterView *self);
63
64 void empathy_roster_view_show_offline (EmpathyRosterView *self,
65     gboolean show);
66
67 void empathy_roster_view_show_groups (EmpathyRosterView *self,
68     gboolean show);
69
70 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
71     EmpathyLiveSearch *search);
72
73 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
74
75 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
76
77 guint empathy_roster_view_add_event (EmpathyRosterView *self,
78     FolksIndividual *individual,
79     const gchar *icon,
80     gpointer user_data);
81
82 void empathy_roster_view_remove_event (EmpathyRosterView *self,
83     guint event_id);
84
85 FolksIndividual * empathy_roster_view_get_individual_at_y (
86     EmpathyRosterView *self,
87     gint y,
88     GtkWidget **out_child);
89
90 const gchar * empathy_roster_view_get_group_at_y (
91     EmpathyRosterView *self,
92     gint y);
93
94 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
95
96 G_END_DECLS
97
98 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/