| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 1999-2008 Novell, Inc. (www.novell.com) |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef CAMEL_EWS_SEARCH_H |
| 7 |
#define CAMEL_EWS_SEARCH_H |
| 8 |
|
| 9 |
#include <camel/camel.h> |
| 10 |
|
| 11 |
#include "camel-ews-store.h" |
| 12 |
|
| 13 |
/* Standard GObject macros */ |
| 14 |
#define CAMEL_TYPE_EWS_SEARCH \ |
| 15 |
(camel_ews_search_get_type ()) |
| 16 |
#define CAMEL_EWS_SEARCH(obj) \ |
| 17 |
(G_TYPE_CHECK_INSTANCE_CAST \ |
| 18 |
((obj), CAMEL_TYPE_EWS_SEARCH, CamelEwsSearch)) |
| 19 |
#define CAMEL_EWS_SEARCH_CLASS(cls) \ |
| 20 |
(G_TYPE_CHECK_CLASS_CAST \ |
| 21 |
((cls), CAMEL_TYPE_EWS_SEARCH, CamelEwsSearchClass)) |
| 22 |
#define CAMEL_IS_EWS_SEARCH(obj) \ |
| 23 |
(G_TYPE_CHECK_INSTANCE_TYPE \ |
| 24 |
((obj), CAMEL_TYPE_EWS_SEARCH)) |
| 25 |
#define CAMEL_IS_EWS_SEARCH_CLASS(cls) \ |
| 26 |
(G_TYPE_CHECK_CLASS_TYPE \ |
| 27 |
((cls), CAMEL_TYPE_EWS_SEARCH)) |
| 28 |
#define CAMEL_EWS_SEARCH_GET_CLASS(obj) \ |
| 29 |
(G_TYPE_INSTANCE_GET_CLASS \ |
| 30 |
((obj), CAMEL_TYPE_EWS_SEARCH, CamelEwsSearchClass)) |
| 31 |
|
| 32 |
G_BEGIN_DECLS |
| 33 |
|
| 34 |
typedef struct _CamelEwsSearch CamelEwsSearch; |
| 35 |
typedef struct _CamelEwsSearchClass CamelEwsSearchClass; |
| 36 |
typedef struct _CamelEwsSearchPrivate CamelEwsSearchPrivate; |
| 37 |
|
| 38 |
/** |
| 39 |
* CamelEwsSearch: |
| 40 |
* |
| 41 |
* Contains only private data that should be read and manipulated using the |
| 42 |
* functions below. |
| 43 |
* |
| 44 |
* Since: 3.24 |
| 45 |
**/ |
| 46 |
struct _CamelEwsSearch { |
| 47 |
/*< private >*/ |
| 48 |
CamelFolderSearch parent; |
| 49 |
CamelEwsSearchPrivate *priv; |
| 50 |
}; |
| 51 |
|
| 52 |
struct _CamelEwsSearchClass { |
| 53 |
CamelFolderSearchClass parent_class; |
| 54 |
|
| 55 |
/* Padding for future expansion */ |
| 56 |
gpointer reserved[20]; |
| 57 |
}; |
| 58 |
|
| 59 |
GType camel_ews_search_get_type (void) G_GNUC_CONST; |
| 60 |
CamelFolderSearch * |
| 61 |
camel_ews_search_new (CamelEwsStore *ews_store); |
| 62 |
CamelEwsStore * |
| 63 |
camel_ews_search_ref_store (CamelEwsSearch *search); |
| 64 |
void camel_ews_search_set_store (CamelEwsSearch *search, |
| 65 |
CamelEwsStore *ews_store); |
| 66 |
void camel_ews_search_clear_cached_results |
| 67 |
(CamelEwsSearch *search); |
| 68 |
void camel_ews_search_set_cancellable_and_error |
| 69 |
(CamelEwsSearch *search, |
| 70 |
GCancellable *cancellable, |
| 71 |
GError **error); |
| 72 |
|
| 73 |
G_END_DECLS |
| 74 |
|
| 75 |
#endif /* CAMEL_EWS_SEARCH_H */ |