select_account_once_ready: free the account and ID to avoid leaks
[empathy-mirror.git] / src / empathy-account-assistant.h
blobd99475fe39c19c6cc6b2803982551696490f7c81
1 /*
2 * Copyright (C) 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: Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
21 /* empathy-account-assistant.h */
23 #ifndef __EMPATHY_ACCOUNT_ASSISTANT_H__
24 #define __EMPATHY_ACCOUNT_ASSISTANT_H__
26 #include <glib-object.h>
27 #include <gtk/gtk.h>
29 #include <libempathy/empathy-connection-managers.h>
31 G_BEGIN_DECLS
33 #define EMPATHY_TYPE_ACCOUNT_ASSISTANT empathy_account_assistant_get_type()
34 #define EMPATHY_ACCOUNT_ASSISTANT(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMPATHY_TYPE_ACCOUNT_ASSISTANT,\
36 EmpathyAccountAssistant))
37 #define EMPATHY_ACCOUNT_ASSISTANT_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_CAST ((klass), EMPATHY_TYPE_ACCOUNT_ASSISTANT,\
39 EmpathyAccountAssistantClass))
40 #define EMPATHY_IS_ACCOUNT_ASSISTANT(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMPATHY_TYPE_ACCOUNT_ASSISTANT))
42 #define EMPATHY_IS_ACCOUNT_ASSISTANT_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_TYPE ((klass), EMPATHY_TYPE_ACCOUNT_ASSISTANT))
44 #define EMPATHY_ACCOUNT_ASSISTANT_GET_CLASS(obj) \
45 (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_ACCOUNT_ASSISTANT,\
46 EmpathyAccountAssistantClass))
48 typedef struct {
49 GtkAssistant parent;
51 /* private */
52 gpointer priv;
53 } EmpathyAccountAssistant;
55 typedef struct {
56 GtkAssistantClass parent_class;
57 } EmpathyAccountAssistantClass;
59 GType empathy_account_assistant_get_type (void);
61 GtkWidget *empathy_account_assistant_show (GtkWindow *parent,
62 EmpathyConnectionManagers *connection_mgrs);
64 G_END_DECLS
66 #endif /* __EMPATHY_ACCOUNT_ASSISTANT_H__ */