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__
17 #include <telepathy-glib/account.h>
19 #include "libempathy/empathy-tp-chat.h"
23 #define EMPATHY_TYPE_CONTACT_CHOOSER (empathy_contact_chooser_get_type ())
24 #define EMPATHY_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooser))
25 #define EMPATHY_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
26 #define EMPATHY_IS_CONTACT_CHOOSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
27 #define EMPATHY_IS_CONTACT_CHOOSER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), EMPATHY_TYPE_CONTACT_CHOOSER))
28 #define EMPATHY_CONTACT_CHOOSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_CHOOSER, EmpathyContactChooserClass))
30 typedef struct _EmpathyContactChooser EmpathyContactChooser;
31 typedef struct _EmpathyContactChooserClass EmpathyContactChooserClass;
32 typedef struct _EmpathyContactChooserPrivate EmpathyContactChooserPrivate;
34 typedef gboolean (*EmpathyContactChooserFilterFunc) (
35 EmpathyContactChooser *self,
36 FolksIndividual *individual,
41 struct _EmpathyContactChooser
45 EmpathyContactChooserPrivate *priv;
48 struct _EmpathyContactChooserClass
50 GtkBoxClass parent_class;
53 GType empathy_contact_chooser_get_type (void);
55 GtkWidget * empathy_contact_chooser_new (void);
57 FolksIndividual * empathy_contact_chooser_dup_selected (
58 EmpathyContactChooser *self);
60 void empathy_contact_chooser_set_filter_func (EmpathyContactChooser *self,
61 EmpathyContactChooserFilterFunc func,
64 void empathy_contact_chooser_show_search_entry (EmpathyContactChooser *self,
67 void empathy_contact_chooser_show_tree_view (EmpathyContactChooser *self,