1 /*-*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-imap-conn-manager.h
4 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
6 * Authors: Chenthill Palanisamy <pchenthill@novell.com>
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.
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.
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.
22 #if !defined (__CAMEL_H_INSIDE__) && !defined (CAMEL_COMPILATION)
23 #error "Only <camel/camel.h> can be included directly."
26 #ifndef _CAMEL_IMAPX_CONN_MANAGER_H
27 #define _CAMEL_IMAPX_CONN_MANAGER_H
29 #include "camel-imapx-server.h"
31 #define CAMEL_TYPE_IMAPX_CONN_MANAGER \
32 (camel_imapx_conn_manager_get_type ())
33 #define CAMEL_IMAPX_CONN_MANAGER(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST \
35 ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManager))
36 #define CAMEL_IMAPX_CONN_MANAGER_CLASS(cls) \
37 (G_TYPE_CHECK_CLASS_CAST \
38 ((cls), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManagerClass))
39 #define CAMEL_IS_IMAPX_CONN_MANAGER(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE \
41 ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER))
42 #define CAMEL_IS_CONN_MANAGER_CLASS(obj) \
43 (G_TYPE_CHECK_CLASS_TYPE \
44 ((cls), CAMEL_TYPE_IMAPX_CONN_MANAGER))
45 #define CAMEL_IMAPX_CONN_MANAGER_GET_CLASS(obj) \
46 (G_TYPE_INSTANCE_GET_CLASS \
47 ((obj), CAMEL_TYPE_IMAPX_CONN_MANAGER, CamelIMAPXConnManagerClass))
49 typedef struct _CamelIMAPXConnManager CamelIMAPXConnManager;
50 typedef struct _CamelIMAPXConnManagerClass CamelIMAPXConnManagerClass;
51 typedef struct _CamelIMAPXConnManagerPrivate CamelIMAPXConnManagerPrivate;
53 struct _CamelIMAPXConnManager {
55 CamelIMAPXConnManagerPrivate *priv;
58 struct _CamelIMAPXConnManagerClass {
59 CamelObjectClass cclass;
62 GType camel_imapx_conn_manager_get_type (void);
63 CamelIMAPXConnManager *
64 camel_imapx_conn_manager_new (CamelStore *store);
65 CamelStore * camel_imapx_conn_manager_get_store
66 (CamelIMAPXConnManager *con_man);
68 camel_imapx_conn_manager_get_connection
69 (CamelIMAPXConnManager *con_man,
70 const gchar *folder_name,
71 GCancellable *cancellable,
73 void camel_imapx_conn_manager_close_connections
74 (CamelIMAPXConnManager *con_man);
75 GList * camel_imapx_conn_manager_get_connections
76 (CamelIMAPXConnManager *con_man);
77 void camel_imapx_conn_manager_update_con_info
78 (CamelIMAPXConnManager *con_man,
79 CamelIMAPXServer *server,
80 const gchar *folder_name);
82 #endif /* _CAMEL_IMAPX_SERVER_H */