#define __EMPATHY_CONTACT_CHOOSER_H__
#include <gtk/gtk.h>
-
-#include <telepathy-glib/account.h>
-
-#include "libempathy/empathy-tp-chat.h"
+#include <folks/folks.h>
G_BEGIN_DECLS
typedef struct _EmpathyContactChooserClass EmpathyContactChooserClass;
typedef struct _EmpathyContactChooserPrivate EmpathyContactChooserPrivate;
+typedef gboolean (*EmpathyContactChooserFilterFunc) (
+ EmpathyContactChooser *self,
+ FolksIndividual *individual,
+ gboolean is_online,
+ gboolean searching,
+ gpointer user_data);
+
struct _EmpathyContactChooser
{
GtkBox parent;
GType empathy_contact_chooser_get_type (void);
-GtkWidget * empathy_contact_chooser_new (EmpathyTpChat *tp_chat);
+GtkWidget * empathy_contact_chooser_new (void);
-TpContact * empathy_contact_chooser_get_selected (
+FolksIndividual * empathy_contact_chooser_dup_selected (
EmpathyContactChooser *self);
+void empathy_contact_chooser_set_filter_func (EmpathyContactChooser *self,
+ EmpathyContactChooserFilterFunc func,
+ gpointer user_data);
+
+void empathy_contact_chooser_show_search_entry (EmpathyContactChooser *self,
+ gboolean show);
+
+void empathy_contact_chooser_show_tree_view (EmpathyContactChooser *self,
+ gboolean show);
+
G_END_DECLS
#endif