Update Greek translation
[empathy-mirror.git] / src / empathy-import-utils.h
blobd860c4ee89c20ed995dec9f35c6ee542bea5bbc4
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: Jonny Lamb <jonny.lamb@collabora.co.uk>
19 * Cosimo Cecchi <cosimo.cecchi@collabora.co.uk>
22 #ifndef __EMPATHY_IMPORT_UTILS_H__
23 #define __EMPATHY_IMPORT_UTILS_H__
25 #include <telepathy-glib/telepathy-glib.h>
27 G_BEGIN_DECLS
29 typedef struct
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;
43 typedef enum {
44 EMPATHY_IMPORT_APPLICATION_ALL = 0,
45 EMPATHY_IMPORT_APPLICATION_PIDGIN,
46 EMPATHY_IMPORT_APPLICATION_INVALID
47 } EmpathyImportApplication;
49 EmpathyImportAccountData *empathy_import_account_data_new (
50 const gchar *source);
51 void empathy_import_account_data_free (EmpathyImportAccountData *data);
53 gboolean empathy_import_accounts_to_import (void);
54 GList *empathy_import_accounts_load (EmpathyImportApplication id);
56 gboolean empathy_import_protocol_is_supported (const gchar *protocol,
57 TpConnectionManager **cm);
59 G_END_DECLS
61 #endif /* __EMPATHY_IMPORT_UTILS_H__ */