Bug #606181 - Accepting bad SSL certificate applies to any hostname
[platform/upstream/evolution-data-server.git] / camel / providers / imapx / camel-imapx-conn-manager.h
1 /*-*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-imap-conn-manager.h
3  *
4  * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
5  *
6  * Authors: Chenthill Palanisamy <pchenthill@novell.com>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of version 2 of the GNU Lesser General Public
10  * License as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21
22 #ifndef _CAMEL_IMAPX_CONN_MANAGER_H
23 #define _CAMEL_IMAPX_CONN_MANAGER_H
24
25 #include "camel-imapx-server.h"
26
27 #define CAMEL_TYPE_IMAPX_CONN_MANAGER \
28         (camel_imapx_conn_manager_get_type ())
29 #define CAMEL_IMAPX_CONN_MANAGER(obj) \
30         (G_TYPE_CHECK_INSTANCE_CAST \
31         ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManager))
32 #define CAMEL_IMAPX_CONN_MANAGER_CLASS(cls) \
33         (G_TYPE_CHECK_CLASS_CAST \
34         ((cls), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManagerClass))
35 #define CAMEL_IS_IMAPX_CONN_MANAGER(obj) \
36         (G_TYPE_CHECK_INSTANCE_TYPE \
37         ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER))
38 #define CAMEL_IS_CONN_MANAGER_CLASS(obj) \
39         (G_TYPE_CHECK_CLASS_TYPE \
40         ((cls), CAMEL_TYPE_IMAPX_CONN_MANAGER))
41 #define CAMEL_IMAPX_CONN_MANAGER_GET_CLASS(obj) \
42         (G_TYPE_INSTANCE_GET_CLASS \
43         ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManagerClass))
44
45 typedef struct _CamelIMAPXConnManager CamelIMAPXConnManager;
46 typedef struct _CamelIMAPXConnManagerClass CamelIMAPXConnManagerClass;
47 typedef struct _CamelIMAPXConnManagerPrivate CamelIMAPXConnManagerPrivate;
48
49 struct _CamelIMAPXConnManager {
50         CamelObject cobject;
51         CamelIMAPXConnManagerPrivate *priv;
52 };
53
54 struct _CamelIMAPXConnManagerClass {
55         CamelObjectClass cclass;
56 };
57
58 GType           camel_imapx_conn_manager_get_type (void);
59 CamelIMAPXConnManager *
60                 camel_imapx_conn_manager_new    (CamelStore *store);
61 CamelStore *    camel_imapx_conn_manager_get_store
62                                                 (CamelIMAPXConnManager *con_man);
63 CamelIMAPXServer *
64                 camel_imapx_conn_manager_get_connection
65                                                 (CamelIMAPXConnManager *con_man,
66                                                  const gchar *folder_name,
67                                                  GCancellable *cancellable,
68                                                  GError **error);
69 void            camel_imapx_conn_manager_close_connections
70                                                 (CamelIMAPXConnManager *con_man);
71 GList *         camel_imapx_conn_manager_get_connections
72                                                 (CamelIMAPXConnManager *con_man);
73 void            camel_imapx_conn_manager_update_con_info
74                                                 (CamelIMAPXConnManager *con_man,
75                                                  CamelIMAPXServer *server,
76                                                  const gchar *folder_name);
77
78 #endif /* _CAMEL_IMAPX_SERVER_H */