2 * empathy-contact-chooser.h
4 * EmpathyContactChooser
6 * (c) 2010, Collabora Ltd.
9 * Guillaume Desmottes <guillaume.desmottes@collabora.com>
12 #ifndef __EMPATHY_CONTACT_CHOOSER_H__
13 #define __EMPATHY_CONTACT_CHOOSER_H__
16 #include <folks/folks.h>
20 #define EMPATHY_TYPE_CONTACT_CHOOSER (empathy_contact_chooser_get_type ())
21 #define EMPATHY_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooser))
22 #define EMPATHY_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
23 #define EMPATHY_IS_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
24 #define EMPATHY_IS_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
25 #define EMPATHY_CONTACT_CHOOSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
27 typedef struct _EmpathyContactChooser EmpathyContactChooser
;
28 typedef struct _EmpathyContactChooserClass EmpathyContactChooserClass
;
29 typedef struct _EmpathyContactChooserPrivate EmpathyContactChooserPrivate
;
31 typedef gboolean (*EmpathyContactChooserFilterFunc
) (
32 EmpathyContactChooser
*self
,
33 FolksIndividual
*individual
,
38 struct _EmpathyContactChooser
42 EmpathyContactChooserPrivate
*priv
;
45 struct _EmpathyContactChooserClass
47 GtkBoxClass parent_class
;
50 GType
empathy_contact_chooser_get_type (void);
52 GtkWidget
* empathy_contact_chooser_new (void);
54 FolksIndividual
* empathy_contact_chooser_dup_selected (
55 EmpathyContactChooser
*self
);
57 void empathy_contact_chooser_set_filter_func (EmpathyContactChooser
*self
,
58 EmpathyContactChooserFilterFunc func
,
61 void empathy_contact_chooser_show_search_entry (EmpathyContactChooser
*self
,
64 void empathy_contact_chooser_show_tree_view (EmpathyContactChooser
*self
,