Clear audio_output when the call ends
[empathy-mirror.git] / libempathy-gtk / empathy-contact-selector-dialog.h
blob27d689c5ad43913c0277f0e9e2e4e7dc4d8cd67b
1 /*
2 * Copyright (C) 2007-2009 Collabora Ltd.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Xavier Claessens <xclaesse@gmail.com>
19 * Authors: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
20 * Authors: Danielle Madeley <danielle.madeley@collabora.co.uk>
23 #ifndef __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
24 #define __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
29 #include <telepathy-glib/connection.h>
30 #include <telepathy-glib/account.h>
32 #include "empathy-account-chooser.h"
34 G_BEGIN_DECLS
36 typedef struct _EmpathyContactSelectorDialog EmpathyContactSelectorDialog;
37 typedef struct _EmpathyContactSelectorDialogClass \
38 EmpathyContactSelectorDialogClass;
40 struct _EmpathyContactSelectorDialogClass {
41 GtkDialogClass parent_class;
43 void (*account_filter) (EmpathyContactSelectorDialog *self,
44 EmpathyAccountChooserFilterResultCallback callback,
45 gpointer callback_data,
46 TpAccount *account);
47 gboolean (*contact_filter) (EmpathyContactSelectorDialog *self,
48 const char *id);
51 struct _EmpathyContactSelectorDialog {
52 GtkDialog parent;
54 /* protected fields */
55 GtkWidget *vbox;
56 GtkWidget *button_action;
59 GType empathy_contact_selector_dialog_get_type (void);
60 const gchar *empathy_contact_selector_dialog_get_selected (
61 EmpathyContactSelectorDialog *self,
62 TpConnection **connection,
63 TpAccount **account);
64 void empathy_contact_selector_dialog_set_show_account_chooser (
65 EmpathyContactSelectorDialog *self,
66 gboolean show_account_chooser);
67 gboolean empathy_contact_selector_dialog_get_show_account_chooser (
68 EmpathyContactSelectorDialog *self);
70 void empathy_contact_selector_dialog_set_filter_account (
71 EmpathyContactSelectorDialog *self,
72 TpAccount *account);
74 TpAccount * empathy_contact_selector_dialog_get_filter_account (
75 EmpathyContactSelectorDialog *self);
77 /* TYPE MACROS */
78 #define EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG \
79 (empathy_contact_selector_dialog_get_type ())
80 #define EMPATHY_CONTACT_SELECTOR_DIALOG(obj) \
81 (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
82 EmpathyContactSelectorDialog))
83 #define EMPATHY_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
84 (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
85 EmpathyContactSelectorDialogClass))
86 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG(obj) \
87 (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
88 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
89 (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
90 #define EMPATHY_CONTACT_SELECTOR_DIALOG_GET_CLASS(obj) \
91 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
92 EmpathyContactSelectorDialogClass))
94 G_END_DECLS
96 #endif /* __EMPATHY_CONTACT_SELECTOR_DIALOG_H__ */