2 OpenChange Storage Abstraction Layer library
6 Copyright (C) Julien Kerihuel 2009-2011
7 Copyright (C) Brad Hards <bradh@openchange.org> 2010-2011
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 \file mapistore_defs.h
26 \brief MAPISTORE common definitions
28 This header contains the shared definitions for data structures,
29 enumerations and defines that are used across the MAPISTORE API.
32 #ifndef __MAPISTORE_DEFS_H
33 #define __MAPISTORE_DEFS_H
36 \brief Special Folder identifiers
38 This list identifies each of the folder identifiers.
40 enum MAPISTORE_DFLT_FOLDERS {
42 MDB_DEFERRED_ACTIONS = 2,
43 MDB_SPOOLER_QUEUE = 3,
49 MDB_DELETED_ITEMS = 9,
50 MDB_COMMON_VIEWS = 10,
62 MDB_TRACKED_MAIL = 22,
65 MDB_LOCAL_FAILURES = 25,
66 MDB_SERVER_FAILURES = 26,
69 MDB_CONVERSATION_ACT = 29, /**< Conversation Actions folder */
70 MDB_LAST_SPECIALFOLDER = MDB_CONVERSATION_ACT, /**< the last identifier, used for iteration */
71 MDB_CUSTOM = 999 /**< This is a custom (or generic) folder with no special meaning */
74 struct mapistore_message {
75 struct SRowSet *recipients;
76 struct SRow *properties;
79 #define MAPISTORE_FOLDER_TABLE 1
80 #define MAPISTORE_MESSAGE_TABLE 2
82 #define MAPISTORE_FOLDER 1
83 #define MAPISTORE_MESSAGE 2
85 #define MAPISTORE_SOFT_DELETE 1
86 #define MAPISTORE_PERMANENT_DELETE 2
88 /* TODO: perhaps this should be in another header */
89 const char *mapistore_get_mapping_path(void);
91 #endif /* __MAPISTORE_DEFS_H */