]> git.0d.be Git - empathy.git/blob - src/empathy-import-utils.h
Updated Swedish translation
[empathy.git] / src / empathy-import-utils.h
1 /*
2  * Copyright (C) 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: Jonny Lamb <jonny.lamb@collabora.co.uk>
19  *          Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
20  */
21
22 #ifndef __EMPATHY_IMPORT_UTILS_H__
23 #define __EMPATHY_IMPORT_UTILS_H__
24
25 #include <telepathy-glib/telepathy-glib.h>
26
27 G_BEGIN_DECLS
28
29 typedef struct
30 {
31   /* Table mapping CM param string to a GValue */
32   GHashTable *settings;
33   /* Protocol name */
34   gchar *protocol;
35   /* Connection manager name */
36   gchar *connection_manager;
37   /* The name of the account import source */
38   gchar *source;
39   /* Indicates whether the account is enabled by default */
40   gboolean enabled;
41 } EmpathyImportAccountData;
42
43 typedef enum {
44   EMPATHY_IMPORT_APPLICATION_ALL = 0,
45   EMPATHY_IMPORT_APPLICATION_PIDGIN,
46   EMPATHY_IMPORT_APPLICATION_INVALID
47 } EmpathyImportApplication;
48
49 EmpathyImportAccountData *empathy_import_account_data_new (
50     const gchar *source);
51 void empathy_import_account_data_free (EmpathyImportAccountData *data);
52
53 gboolean empathy_import_accounts_to_import (void);
54 GList *empathy_import_accounts_load (EmpathyImportApplication id);
55
56 gboolean empathy_import_protocol_is_supported (const gchar *protocol,
57     TpConnectionManager **cm);
58
59 G_END_DECLS
60
61 #endif /* __EMPATHY_IMPORT_UTILS_H__ */