2 #ifndef __EMPATHY_ROSTER_VIEW_H__
3 #define __EMPATHY_ROSTER_VIEW_H__
5 #include <tp-account-widgets/tpaw-live-search.h>
7 #include "empathy-roster-model.h"
11 typedef struct _EmpathyRosterView EmpathyRosterView
;
12 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass
;
13 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv
;
15 struct _EmpathyRosterViewClass
18 GtkListBoxClass parent_class
;
21 struct _EmpathyRosterView
25 EmpathyRosterViewPriv
*priv
;
28 GType
empathy_roster_view_get_type (void);
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, \
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))
52 GtkWidget
* empathy_roster_view_new (EmpathyRosterModel
*model
);
54 void empathy_roster_view_show_offline (EmpathyRosterView
*self
,
57 void empathy_roster_view_show_groups (EmpathyRosterView
*self
,
60 void empathy_roster_view_set_live_search (EmpathyRosterView
*self
,
61 TpawLiveSearch
*search
);
63 gboolean
empathy_roster_view_is_empty (EmpathyRosterView
*self
);
65 gboolean
empathy_roster_view_is_searching (EmpathyRosterView
*self
);
67 guint
empathy_roster_view_add_event (EmpathyRosterView
*self
,
68 FolksIndividual
*individual
,
72 void empathy_roster_view_remove_event (EmpathyRosterView
*self
,
75 FolksIndividual
* empathy_roster_view_get_individual_at_y (
76 EmpathyRosterView
*self
,
78 GtkListBoxRow
**out_row
);
80 const gchar
* empathy_roster_view_get_group_at_y (
81 EmpathyRosterView
*self
,
84 FolksIndividual
* empathy_roster_view_get_selected_individual (EmpathyRosterView
*self
);
88 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/