| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 1999-2008 Novell, Inc. (www.novell.com) |
| 3 |
* SPDX-FileContributor: Chenthill Palanisamy <[email protected]> |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef CAMEL_EWS_STORE_H |
| 8 |
#define CAMEL_EWS_STORE_H |
| 9 |
|
| 10 |
#include <camel/camel.h> |
| 11 |
#include <camel/camel-ews-enums.h> |
| 12 |
|
| 13 |
#include "common/e-ews-connection.h" |
| 14 |
|
| 15 |
#include "camel-ews-store-summary.h" |
| 16 |
|
| 17 |
/* Standard GObject macros */ |
| 18 |
#define CAMEL_TYPE_EWS_STORE \ |
| 19 |
(camel_ews_store_get_type ()) |
| 20 |
#define CAMEL_EWS_STORE(obj) \ |
| 21 |
(G_TYPE_CHECK_INSTANCE_CAST \ |
| 22 |
((obj), CAMEL_TYPE_EWS_STORE, CamelEwsStore)) |
| 23 |
#define CAMEL_EWS_STORE_CLASS(cls) \ |
| 24 |
(G_TYPE_CHECK_CLASS_CAST \ |
| 25 |
((cls), CAMEL_TYPE_EWS_STORE, CamelEwsStoreClass)) |
| 26 |
#define CAMEL_IS_EWS_STORE(obj) \ |
| 27 |
(G_TYPE_CHECK_INSTANCE_TYPE \ |
| 28 |
((obj), CAMEL_TYPE_EWS_STORE)) |
| 29 |
#define CAMEL_IS_EWS_STORE_CLASS(cls) \ |
| 30 |
(G_TYPE_CHECK_CLASS_TYPE \ |
| 31 |
((cls), CAMEL_TYPE_EWS_STORE)) |
| 32 |
#define CAMEL_EWS_STORE_GET_CLASS(obj) \ |
| 33 |
(G_TYPE_INSTANCE_GET_CLASS \ |
| 34 |
((obj), CAMEL_TYPE_EWS_STORE, CamelEwsStoreClass)) |
| 35 |
|
| 36 |
#define EWS_PARAM_FILTER_INBOX (1 << 0) |
| 37 |
|
| 38 |
#define EWS_FOREIGN_FOLDER_ROOT_ID "ForeignRoot" |
| 39 |
#define EWS_FOREIGN_FOLDER_ROOT_DISPLAY_NAME _("Foreign Folders") |
| 40 |
#define EWS_PUBLIC_FOLDER_ROOT_ID "PublicRoot" |
| 41 |
#define EWS_PUBLIC_FOLDER_ROOT_DISPLAY_NAME _("Public Folders") |
| 42 |
|
| 43 |
G_BEGIN_DECLS |
| 44 |
|
| 45 |
typedef struct _CamelEwsStore CamelEwsStore; |
| 46 |
typedef struct _CamelEwsStoreClass CamelEwsStoreClass; |
| 47 |
typedef struct _CamelEwsStorePrivate CamelEwsStorePrivate; |
| 48 |
|
| 49 |
struct _CamelEwsStore { |
| 50 |
CamelOfflineStore parent; |
| 51 |
CamelEwsStorePrivate *priv; |
| 52 |
|
| 53 |
CamelEwsStoreSummary *summary; |
| 54 |
gchar *storage_path; |
| 55 |
}; |
| 56 |
|
| 57 |
struct _CamelEwsStoreClass { |
| 58 |
CamelOfflineStoreClass parent_class; |
| 59 |
}; |
| 60 |
|
| 61 |
GType camel_ews_store_get_type (void); |
| 62 |
gchar * ews_get_name (CamelService *service, gboolean brief); |
| 63 |
EEwsConnection * |
| 64 |
camel_ews_store_ref_connection (CamelEwsStore *ews_store); |
| 65 |
|
| 66 |
gboolean camel_ews_store_connected (CamelEwsStore *store, |
| 67 |
GCancellable *cancellable, |
| 68 |
GError **error); |
| 69 |
void camel_ews_store_maybe_disconnect |
| 70 |
(CamelEwsStore *store, |
| 71 |
GError *error); |
| 72 |
void camel_ews_store_ensure_virtual_folders |
| 73 |
(CamelEwsStore *ews_store); |
| 74 |
void camel_ews_store_ensure_unique_path |
| 75 |
(CamelEwsStore *ews_store, |
| 76 |
gchar **ppath); |
| 77 |
void camel_ews_store_update_foreign_subfolders |
| 78 |
(CamelEwsStore *ews_store, |
| 79 |
const gchar *fid); |
| 80 |
void camel_ews_store_set_has_ooo_set |
| 81 |
(CamelEwsStore *ews_store, |
| 82 |
gboolean has_ooo_set); |
| 83 |
gboolean camel_ews_store_get_has_ooo_set |
| 84 |
(const CamelEwsStore *ews_store); |
| 85 |
void camel_ews_store_set_ooo_alert_state |
| 86 |
(CamelEwsStore *ews_store, |
| 87 |
CamelEwsStoreOooAlertState state); |
| 88 |
CamelEwsStoreOooAlertState |
| 89 |
camel_ews_store_get_ooo_alert_state |
| 90 |
(const CamelEwsStore *ews_store); |
| 91 |
void camel_ews_store_unset_oof_settings_state |
| 92 |
(CamelEwsStore *ews_store); |
| 93 |
|
| 94 |
|
| 95 |
G_END_DECLS |
| 96 |
|
| 97 |
#endif /* CAMEL_EWS_STORE_H */ |