"Fossies" - the Fresh Open Source Software Archive 
Member "evolution-mapi-3.46.1/src/libexchangemapi/e-mapi-book-utils.h" (2 Dec 2022, 2260 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 "e-mapi-book-utils.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 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
18 *
19 */
20
21 #ifndef E_MAPI_BOOK_UTILS_H
22 #define E_MAPI_BOOK_UTILS_H
23
24 #include <libebook/libebook.h>
25
26 #include <e-mapi-connection.h>
27 #include <e-mapi-defs.h>
28 #include <e-mapi-utils.h>
29
30 /* vCard parameter name in contact list */
31 #define EMA_X_MEMBERID "X-EMA-MEMBER-ID"
32 #define EMA_X_MEMBERVALUE "X-EMA-MEMBER-VALUE"
33
34 G_BEGIN_DECLS
35
36 EContact * e_mapi_book_utils_contact_from_object (EMapiConnection *conn,
37 EMapiObject *object,
38 const gchar *book_uri);
39
40 gboolean e_mapi_book_utils_contact_to_object (EContact *contact,
41 EContact *old_contact, /* can be NULL */
42 EMapiObject **pobject,
43 TALLOC_CTX *mem_ctx,
44 GCancellable *cancellable,
45 GError **perror);
46
47 /* converts time_t to string, suitable for E_CONTACT_REV field value;
48 free returned pointer with g_free() */
49 gchar * e_mapi_book_utils_timet_to_string (time_t tt);
50
51 /* converts sexp_query into mapi_SRestriction, which is completely
52 allocated on the given mem_ctx */
53 gboolean e_mapi_book_utils_build_sexp_restriction (EMapiConnection *conn,
54 TALLOC_CTX *mem_ctx,
55 struct mapi_SRestriction **restrictions,
56 gpointer user_data, /* const gchar *sexp */
57 GCancellable *cancellable,
58 GError **perror);
59
60 GSList * e_mapi_book_utils_get_supported_contact_fields (void);
61
62 gboolean e_mapi_book_utils_get_supported_mapi_proptags (TALLOC_CTX *mem_ctx,
63 struct SPropTagArray **propTagArray);
64
65 G_END_DECLS
66
67 #endif