]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-selector-dialog.h
Updated Polish translation
[empathy.git] / libempathy-gtk / empathy-contact-selector-dialog.h
1 /*
2  * Copyright (C) 2007-2009 Collabora Ltd.
3  *
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.
8  *
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.
13  *
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
17  *
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>
21  */
22
23 #ifndef __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
24 #define __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
25
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
28
29 #include <telepathy-glib/connection.h>
30 #include <telepathy-glib/account.h>
31
32 G_BEGIN_DECLS
33
34 typedef struct _EmpathyContactSelectorDialog EmpathyContactSelectorDialog;
35 typedef struct _EmpathyContactSelectorDialogClass \
36           EmpathyContactSelectorDialogClass;
37
38 struct _EmpathyContactSelectorDialogClass {
39   GtkDialogClass parent_class;
40
41   gboolean (*account_filter) (EmpathyContactSelectorDialog *self,
42       TpAccount *account);
43   gboolean (*contact_filter) (EmpathyContactSelectorDialog *self,
44       const char *id);
45 };
46
47 struct _EmpathyContactSelectorDialog {
48   GtkDialog parent;
49
50   /* protected fields */
51   GtkWidget *vbox;
52   GtkWidget *button_action;
53 };
54
55 GType empathy_contact_selector_dialog_get_type (void);
56 const gchar *empathy_contact_selector_dialog_get_selected (
57     EmpathyContactSelectorDialog *self,
58     TpConnection **connection);
59 void empathy_contact_selector_dialog_set_show_account_chooser (
60     EmpathyContactSelectorDialog *self,
61     gboolean show_account_chooser);
62 gboolean empathy_contact_selector_dialog_get_show_account_chooser (
63     EmpathyContactSelectorDialog *self);
64
65 void empathy_contact_selector_dialog_set_filter_account (
66     EmpathyContactSelectorDialog *self,
67     TpAccount *account);
68
69 TpAccount * empathy_contact_selector_dialog_get_filter_account (
70     EmpathyContactSelectorDialog *self);
71
72 /* TYPE MACROS */
73 #define EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG \
74   (empathy_contact_selector_dialog_get_type ())
75 #define EMPATHY_CONTACT_SELECTOR_DIALOG(obj) \
76   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
77     EmpathyContactSelectorDialog))
78 #define EMPATHY_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
79   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
80     EmpathyContactSelectorDialogClass))
81 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG(obj) \
82   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
83 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
84   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
85 #define EMPATHY_CONTACT_SELECTOR_DIALOG_GET_CLASS(obj) \
86   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
87     EmpathyContactSelectorDialogClass))
88
89 G_END_DECLS
90
91 #endif /* __EMPATHY_CONTACT_SELECTOR_DIALOG_H__ */