*
* Authors: Xavier Claessens <xclaesse@gmail.com>
* Authors: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
+ * Authors: Danielle Madeley <danielle.madeley@collabora.co.uk>
*/
#ifndef __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
#include <gtk/gtk.h>
#include <telepathy-glib/connection.h>
+#include <telepathy-glib/account.h>
G_BEGIN_DECLS
struct _EmpathyContactSelectorDialogClass {
GtkDialogClass parent_class;
- void (*got_response) (EmpathyContactSelectorDialog *self,
- TpConnection *connection,
- const gchar *contact_id);
+ gboolean (*account_filter) (EmpathyContactSelectorDialog *self,
+ TpAccount *account);
+ gboolean (*contact_filter) (EmpathyContactSelectorDialog *self,
+ const char *id);
};
struct _EmpathyContactSelectorDialog {
GtkDialog parent;
/* protected fields */
+ GtkWidget *vbox;
GtkWidget *button_action;
};
GType empathy_contact_selector_dialog_get_type (void);
+const gchar *empathy_contact_selector_dialog_get_selected (
+ EmpathyContactSelectorDialog *self,
+ TpConnection **connection);
+void empathy_contact_selector_dialog_set_show_account_chooser (
+ EmpathyContactSelectorDialog *self,
+ gboolean show_account_chooser);
+gboolean empathy_contact_selector_dialog_get_show_account_chooser (
+ EmpathyContactSelectorDialog *self);
+
+void empathy_contact_selector_dialog_set_filter_account (
+ EmpathyContactSelectorDialog *self,
+ TpAccount *account);
+
+TpAccount * empathy_contact_selector_dialog_get_filter_account (
+ EmpathyContactSelectorDialog *self);
/* TYPE MACROS */
#define EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG \