]> git.0d.be Git - empathy.git/blob - libempathy-gtk/empathy-contact-selector-dialog.h
add empathy-contact-selector-dialog
[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  */
21
22 #ifndef __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
23 #define __EMPATHY_CONTACT_SELECTOR_DIALOG_H__
24
25 #include <glib-object.h>
26 #include <gtk/gtk.h>
27
28 #include <telepathy-glib/connection.h>
29
30 G_BEGIN_DECLS
31
32 typedef struct _EmpathyContactSelectorDialog EmpathyContactSelectorDialog;
33 typedef struct _EmpathyContactSelectorDialogClass \
34           EmpathyContactSelectorDialogClass;
35
36 struct _EmpathyContactSelectorDialogClass {
37   GtkDialogClass parent_class;
38
39   void (*got_response) (EmpathyContactSelectorDialog *self,
40       TpConnection *connection,
41       const gchar *contact_id);
42 };
43
44 struct _EmpathyContactSelectorDialog {
45   GtkDialog parent;
46
47   /* protected fields */
48   GtkWidget *button_action;
49 };
50
51 GType empathy_contact_selector_dialog_get_type (void);
52
53 /* TYPE MACROS */
54 #define EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG \
55   (empathy_contact_selector_dialog_get_type ())
56 #define EMPATHY_CONTACT_SELECTOR_DIALOG(obj) \
57   (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
58     EmpathyContactSelectorDialog))
59 #define EMPATHY_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
60   (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
61     EmpathyContactSelectorDialogClass))
62 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG(obj) \
63   (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
64 #define EMPATHY_IS_CONTACT_SELECTOR_DIALOG_CLASS(klass) \
65   (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG))
66 #define EMPATHY_CONTACT_SELECTOR_DIALOG_GET_CLASS(obj) \
67   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CONTACT_SELECTOR_DIALOG, \
68     EmpathyContactSelectorDialogClass))
69
70 G_END_DECLS
71
72 #endif /* __EMPATHY_CONTACT_SELECTOR_DIALOG_H__ */