"Fossies" - the Fresh Open Source Software Archive 
Member "evolution-mapi-3.46.1/src/camel/camel-mapi-store.h" (2 Dec 2022, 3232 Bytes) of package /linux/misc/evolution-mapi-3.46.1.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "camel-mapi-store.h" see the
Fossies "Dox" file reference documentation.
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with the program; if not, see <http://www.gnu.org/licenses/>
15 *
16 *
17 * Authors:
18 * Johnny Jacob <jjohnny@novell.com>
19 *
20 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21 *
22 */
23
24 #ifndef CAMEL_MAPI_STORE_H
25 #define CAMEL_MAPI_STORE_H
26
27 #include <glib/gi18n-lib.h>
28
29 #include <camel/camel.h>
30
31 #include <e-mapi-connection.h>
32 #include <e-mapi-folder.h>
33
34 /* Standard GObject macros */
35 #define CAMEL_TYPE_MAPI_STORE \
36 (camel_mapi_store_get_type ())
37 #define CAMEL_MAPI_STORE(obj) \
38 (G_TYPE_CHECK_INSTANCE_CAST \
39 ((obj), CAMEL_TYPE_MAPI_STORE, CamelMapiStore))
40 #define CAMEL_MAPI_STORE_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_CAST \
42 ((cls), CAMEL_TYPE_MAPI_STORE, CamelMapiStoreClass))
43 #define CAMEL_IS_MAPI_STORE(obj) \
44 (G_TYPE_CHECK_INSTANCE_TYPE \
45 ((obj), CAMEL_TYPE_MAPI_STORE))
46 #define CAMEL_IS_MAPI_STORE_CLASS(cls) \
47 (G_TYPE_CHECK_CLASS_TYPE \
48 ((cls), CAMEL_TYPE_MAPI_STORE))
49 #define CAMEL_MAPI_STORE_GET_CLASS(obj) \
50 (G_TYPE_INSTANCE_GET_CLASS \
51 ((obj), CAMEL_TYPE_MAPI_STORE, CamelMapiStoreClass))
52
53 #define DISPLAY_NAME_FAVORITES _("Favorites")
54 #define DISPLAY_NAME_FOREIGN_FOLDERS _("Foreign folders")
55
56 G_BEGIN_DECLS
57
58 typedef struct _CamelMapiStore CamelMapiStore;
59 typedef struct _CamelMapiStoreClass CamelMapiStoreClass;
60 typedef struct _CamelMapiStorePrivate CamelMapiStorePrivate;
61
62 struct _CamelMapiStore{
63 CamelOfflineStore parent_object;
64
65 CamelStoreSummary *summary;
66 CamelMapiStorePrivate *priv;
67 };
68
69 struct _CamelMapiStoreClass {
70 CamelOfflineStoreClass parent_class;
71 };
72
73 GType camel_mapi_store_get_type (void);
74 gboolean camel_mapi_store_connected (CamelMapiStore *mapi_store,
75 GCancellable *cancellable,
76 GError **error);
77 void camel_mapi_store_maybe_disconnect (CamelMapiStore *mapi_store,
78 const GError *mapi_error);
79
80 const gchar * camel_mapi_store_folder_id_lookup (CamelMapiStore *mapi_store, const gchar *folder_name);
81 const gchar * camel_mapi_store_folder_lookup (CamelMapiStore *mapi_store, const gchar *folder_id);
82 const gchar * camel_mapi_store_system_folder_fid (CamelMapiStore *mapi_store, guint folder_type);
83 const gchar * mapi_folders_hash_table_name_lookup (CamelMapiStore *store, const gchar *fid, gboolean use_cache);
84
85 EMapiConnection * camel_mapi_store_ref_connection (CamelMapiStore *mapi_store,
86 GCancellable *cancellable,
87 GError **error);
88
89 void camel_mapi_store_ensure_unique_path (CamelMapiStore *mapi_store, gchar **ppath);
90 void camel_mapi_store_announce_subscribed_folder (CamelMapiStore *mapi_store, const gchar *path);
91
92 G_END_DECLS
93
94 #endif /* CAMEL_OPENCHANGE_STORE_H */