]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-roster-view.h
Fix broken nl translation
[empathy.git] / libempathy-gtk / empathy-roster-view.h
1
2 #ifndef __EMPATHY_ROSTER_VIEW_H__
3 #define __EMPATHY_ROSTER_VIEW_H__
4
5 #include <tp-account-widgets/tpaw-live-search.h>
6
7 #include "empathy-roster-model.h"
8
9 G_BEGIN_DECLS
10
11 typedef struct _EmpathyRosterView EmpathyRosterView;
12 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
13 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
14
15 struct _EmpathyRosterViewClass
16 {
17   /*<private>*/
18   GtkListBoxClass parent_class;
19 };
20
21 struct _EmpathyRosterView
22 {
23   /*<private>*/
24   GtkListBox parent;
25   EmpathyRosterViewPriv *priv;
26 };
27
28 GType empathy_roster_view_get_type (void);
29
30 /* TYPE MACROS */
31 #define EMPATHY_TYPE_ROSTER_VIEW \
32   (empathy_roster_view_get_type ())
33 #define EMPATHY_ROSTER_VIEW(obj) \
34   (G_TYPE_CHECK_INSTANCE_CAST((obj), \
35     EMPATHY_TYPE_ROSTER_VIEW, \
36     EmpathyRosterView))
37 #define EMPATHY_ROSTER_VIEW_CLASS(klass) \
38   (G_TYPE_CHECK_CLASS_CAST((klass), \
39     EMPATHY_TYPE_ROSTER_VIEW, \
40     EmpathyRosterViewClass))
41 #define EMPATHY_IS_ROSTER_VIEW(obj) \
42   (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
43     EMPATHY_TYPE_ROSTER_VIEW))
44 #define EMPATHY_IS_ROSTER_VIEW_CLASS(klass) \
45   (G_TYPE_CHECK_CLASS_TYPE((klass), \
46     EMPATHY_TYPE_ROSTER_VIEW))
47 #define EMPATHY_ROSTER_VIEW_GET_CLASS(obj) \
48   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49     EMPATHY_TYPE_ROSTER_VIEW, \
50     EmpathyRosterViewClass))
51
52 GtkWidget * empathy_roster_view_new (EmpathyRosterModel *model);
53
54 void empathy_roster_view_show_offline (EmpathyRosterView *self,
55     gboolean show);
56
57 void empathy_roster_view_show_groups (EmpathyRosterView *self,
58     gboolean show);
59
60 void empathy_roster_view_set_live_search (EmpathyRosterView *self,
61     TpawLiveSearch *search);
62
63 gboolean empathy_roster_view_is_empty (EmpathyRosterView *self);
64
65 gboolean empathy_roster_view_is_searching (EmpathyRosterView *self);
66
67 guint empathy_roster_view_add_event (EmpathyRosterView *self,
68     FolksIndividual *individual,
69     const gchar *icon,
70     gpointer user_data);
71
72 void empathy_roster_view_remove_event (EmpathyRosterView *self,
73     guint event_id);
74
75 FolksIndividual * empathy_roster_view_get_individual_at_y (
76     EmpathyRosterView *self,
77     gint y,
78     GtkListBoxRow **out_row);
79
80 const gchar * empathy_roster_view_get_group_at_y (
81     EmpathyRosterView *self,
82     gint y);
83
84 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
85
86 G_END_DECLS
87
88 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/