remove released flag
[nijm-empathy.git] / libempathy-gtk / empathy-roster-view.h
blob6a8d30c14753ba12247f0331fac11807bdbc890c
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"
9 G_BEGIN_DECLS
11 typedef struct _EmpathyRosterView EmpathyRosterView;
12 typedef struct _EmpathyRosterViewClass EmpathyRosterViewClass;
13 typedef struct _EmpathyRosterViewPriv EmpathyRosterViewPriv;
15 struct _EmpathyRosterViewClass
17 /*<private>*/
18 GtkListBoxClass parent_class;
21 struct _EmpathyRosterView
23 /*<private>*/
24 GtkListBox parent;
25 EmpathyRosterViewPriv *priv;
28 GType empathy_roster_view_get_type (void);
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))
52 GtkWidget * empathy_roster_view_new (EmpathyRosterModel *model);
54 void empathy_roster_view_show_offline (EmpathyRosterView *self,
55 gboolean show);
57 void empathy_roster_view_show_groups (EmpathyRosterView *self,
58 gboolean show);
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,
69 const gchar *icon,
70 gpointer user_data);
72 void empathy_roster_view_remove_event (EmpathyRosterView *self,
73 guint event_id);
75 FolksIndividual * empathy_roster_view_get_individual_at_y (
76 EmpathyRosterView *self,
77 gint y,
78 GtkListBoxRow **out_row);
80 const gchar * empathy_roster_view_get_group_at_y (
81 EmpathyRosterView *self,
82 gint y);
84 FolksIndividual * empathy_roster_view_get_selected_individual (EmpathyRosterView *self);
86 G_END_DECLS
88 #endif /* #ifndef __EMPATHY_ROSTER_VIEW_H__*/