]> git.0d.be Git - empathy.git/blob - src/empathy-import-widget.h
UOA: Do not segfault when "Done" or "Cancel" button clicked but widget is not ready yet
[empathy.git] / src / empathy-import-widget.h
1 /*
2  * Copyright (C) 2008-2009 Collabora Ltd.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program 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  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA  02110-1301  USA
18  *
19  * Authors: Jonny Lamb <jonny.lamb@collabora.co.uk>
20  *          Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
21  */
22
23 /* empathy-import-widget.h */
24
25 #ifndef __EMPATHY_IMPORT_WIDGET_H__
26 #define __EMPATHY_IMPORT_WIDGET_H__
27
28 #include <glib-object.h>
29
30 #include <libempathy/empathy-connection-managers.h>
31
32 #include "empathy-import-utils.h"
33
34 G_BEGIN_DECLS
35
36 #define EMPATHY_TYPE_IMPORT_WIDGET empathy_import_widget_get_type()
37 #define EMPATHY_IMPORT_WIDGET(obj) \
38   (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_IMPORT_WIDGET,\
39       EmpathyImportWidget))
40 #define EMPATHY_IMPORT_WIDGET_CLASS(klass) \
41   (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_IMPORT_WIDGET,\
42       EmpathyImportWidgetClass))
43 #define EMPATHY_IS_IMPORT_WIDGET(obj) \
44   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_IMPORT_WIDGET))
45 #define EMPATHY_IS_IMPORT_WIDGET_CLASS(klass) \
46   (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_IMPORT_WIDGET))
47 #define EMPATHY_IMPORT_WIDGET_GET_CLASS(obj) \
48   (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_IMPORT_WIDGET,\
49       EmpathyImportWidgetClass))
50
51 typedef struct {
52   GObject parent;
53
54   /* private */
55   gpointer priv;
56 } EmpathyImportWidget;
57
58 typedef struct {
59   GObjectClass parent_class;
60 } EmpathyImportWidgetClass;
61
62 GType empathy_import_widget_get_type (void);
63
64 EmpathyImportWidget* empathy_import_widget_new (EmpathyImportApplication id,
65     EmpathyConnectionManagers *cms);
66
67 GtkWidget * empathy_import_widget_get_widget (EmpathyImportWidget *self);
68
69 void empathy_import_widget_add_selected_accounts (EmpathyImportWidget *self);
70
71 G_END_DECLS
72
73 #endif /* __EMPATHY_IMPORT_WIDGET_H__ */