| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 2011 Intel Corporation |
| 3 |
* SPDX-FileContributor: David Woodhouse <[email protected]> |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef E_EWS_ITEM_CHANGE_H |
| 8 |
#define E_EWS_ITEM_CHANGE_H |
| 9 |
|
| 10 |
#include "e-ews-folder.h" |
| 11 |
#include "e-soap-request.h" |
| 12 |
#include "e-soap-response.h" |
| 13 |
|
| 14 |
G_BEGIN_DECLS |
| 15 |
|
| 16 |
typedef enum { |
| 17 |
E_EWS_ITEMCHANGE_TYPE_FOLDER, |
| 18 |
E_EWS_ITEMCHANGE_TYPE_ITEM, |
| 19 |
E_EWS_ITEMCHANGE_TYPE_OCCURRENCEITEM, |
| 20 |
E_EWS_ITEMCHANGE_TYPE_RECURRINGMASTER, |
| 21 |
} EEwsItemChangeType; |
| 22 |
|
| 23 |
void e_ews_request_start_folder_change (ESoapRequest *request, |
| 24 |
const gchar *email, |
| 25 |
const EwsFolderId *folder_id); |
| 26 |
void e_ews_request_start_item_change (ESoapRequest *request, |
| 27 |
EEwsItemChangeType type, |
| 28 |
const gchar *itemid, |
| 29 |
const gchar *changekey, |
| 30 |
gint instance_index); |
| 31 |
void e_ews_request_end_item_change (ESoapRequest *request); |
| 32 |
void e_ews_request_start_set_item_field (ESoapRequest *request, |
| 33 |
const gchar *name, |
| 34 |
const gchar *fielduri_prefix, |
| 35 |
const gchar *field_kind); |
| 36 |
void e_ews_request_start_set_indexed_item_field (ESoapRequest *request, |
| 37 |
const gchar *name, |
| 38 |
const gchar *fielduri_prefix, |
| 39 |
const gchar *field_kind, |
| 40 |
const gchar *field_index, |
| 41 |
gboolean delete_field); |
| 42 |
void e_ews_request_end_set_indexed_item_field (ESoapRequest *request, |
| 43 |
gboolean delete_field); |
| 44 |
void e_ews_request_end_set_item_field (ESoapRequest *request); |
| 45 |
void e_ews_request_add_delete_item_field (ESoapRequest *request, |
| 46 |
const gchar *name, |
| 47 |
const gchar *fielduri_prefix); |
| 48 |
void e_ews_request_add_delete_item_field_indexed (ESoapRequest *request, |
| 49 |
const gchar *name, |
| 50 |
const gchar *fielduri_prefix, |
| 51 |
const gchar *field_index); |
| 52 |
|
| 53 |
typedef enum { |
| 54 |
E_EWS_MESSAGE_DATA_TYPE_BOOLEAN, |
| 55 |
E_EWS_MESSAGE_DATA_TYPE_INT, |
| 56 |
E_EWS_MESSAGE_DATA_TYPE_DOUBLE, |
| 57 |
E_EWS_MESSAGE_DATA_TYPE_STRING, |
| 58 |
E_EWS_MESSAGE_DATA_TYPE_TIME |
| 59 |
} EEwsMessageDataType; |
| 60 |
|
| 61 |
const gchar * |
| 62 |
e_ews_request_data_type_get_xml_name (EEwsMessageDataType data_type); |
| 63 |
|
| 64 |
void e_ews_request_add_delete_item_field_extended_tag (ESoapRequest *request, |
| 65 |
guint32 prop_id, |
| 66 |
EEwsMessageDataType data_type); |
| 67 |
|
| 68 |
void e_ews_request_add_delete_item_field_extended_distinguished_tag |
| 69 |
(ESoapRequest *request, |
| 70 |
const gchar *set_id, |
| 71 |
guint32 prop_id, |
| 72 |
EEwsMessageDataType data_type); |
| 73 |
|
| 74 |
void e_ews_request_add_set_item_field_extended_tag_boolean (ESoapRequest *request, |
| 75 |
const gchar *elem_prefix, |
| 76 |
const gchar *elem_name, |
| 77 |
guint32 prop_id, |
| 78 |
gboolean value); |
| 79 |
void e_ews_request_add_set_item_field_extended_tag_int (ESoapRequest *request, |
| 80 |
const gchar *elem_prefix, |
| 81 |
const gchar *elem_name, |
| 82 |
guint32 prop_id, |
| 83 |
gint value); |
| 84 |
void e_ews_request_add_set_item_field_extended_tag_double (ESoapRequest *request, |
| 85 |
const gchar *elem_prefix, |
| 86 |
const gchar *elem_name, |
| 87 |
guint32 prop_id, |
| 88 |
gdouble value); |
| 89 |
void e_ews_request_add_set_item_field_extended_tag_string (ESoapRequest *request, |
| 90 |
const gchar *elem_prefix, |
| 91 |
const gchar *elem_name, |
| 92 |
guint32 prop_id, |
| 93 |
const gchar *value); |
| 94 |
void e_ews_request_add_set_item_field_extended_tag_time (ESoapRequest *request, |
| 95 |
const gchar *elem_prefix, |
| 96 |
const gchar *elem_name, |
| 97 |
guint32 prop_id, |
| 98 |
time_t value); |
| 99 |
void e_ews_request_add_set_item_field_extended_distinguished_tag_boolean |
| 100 |
(ESoapRequest *request, |
| 101 |
const gchar *elem_prefix, |
| 102 |
const gchar *elem_name, |
| 103 |
const gchar *set_id, |
| 104 |
guint32 prop_id, |
| 105 |
gboolean value); |
| 106 |
void e_ews_request_add_set_item_field_extended_distinguished_tag_int |
| 107 |
(ESoapRequest *request, |
| 108 |
const gchar *elem_prefix, |
| 109 |
const gchar *elem_name, |
| 110 |
const gchar *set_id, |
| 111 |
guint32 prop_id, |
| 112 |
gint value); |
| 113 |
void e_ews_request_add_set_item_field_extended_distinguished_tag_double |
| 114 |
(ESoapRequest *request, |
| 115 |
const gchar *elem_prefix, |
| 116 |
const gchar *elem_name, |
| 117 |
const gchar *set_id, |
| 118 |
guint32 prop_id, |
| 119 |
gdouble value); |
| 120 |
void e_ews_request_add_set_item_field_extended_distinguished_tag_string |
| 121 |
(ESoapRequest *request, |
| 122 |
const gchar *elem_prefix, |
| 123 |
const gchar *elem_name, |
| 124 |
const gchar *set_id, |
| 125 |
guint32 prop_id, |
| 126 |
const gchar *value); |
| 127 |
void e_ews_request_add_set_item_field_extended_distinguished_tag_time |
| 128 |
(ESoapRequest *request, |
| 129 |
const gchar *elem_prefix, |
| 130 |
const gchar *elem_name, |
| 131 |
const gchar *set_id, |
| 132 |
guint32 prop_id, |
| 133 |
time_t value); |
| 134 |
void e_ews_request_add_extended_property_tag_boolean (ESoapRequest *request, |
| 135 |
guint32 prop_id, |
| 136 |
gboolean value); |
| 137 |
void e_ews_request_add_extended_property_tag_int (ESoapRequest *request, |
| 138 |
guint32 prop_id, |
| 139 |
gint value); |
| 140 |
void e_ews_request_add_extended_property_tag_double (ESoapRequest *request, |
| 141 |
guint32 prop_id, |
| 142 |
gdouble value); |
| 143 |
void e_ews_request_add_extended_property_tag_string (ESoapRequest *request, |
| 144 |
guint32 prop_id, |
| 145 |
const gchar *value); |
| 146 |
void e_ews_request_add_extended_property_tag_time (ESoapRequest *request, |
| 147 |
guint32 prop_id, |
| 148 |
time_t value); |
| 149 |
void e_ews_request_add_extended_property_distinguished_tag_boolean |
| 150 |
(ESoapRequest *request, |
| 151 |
const gchar *set_id, |
| 152 |
guint32 prop_id, |
| 153 |
gboolean value); |
| 154 |
void e_ews_request_add_extended_property_distinguished_tag_int |
| 155 |
(ESoapRequest *request, |
| 156 |
const gchar *set_id, |
| 157 |
guint32 prop_id, |
| 158 |
gint value); |
| 159 |
void e_ews_request_add_extended_property_distinguished_tag_double |
| 160 |
(ESoapRequest *request, |
| 161 |
const gchar *set_id, |
| 162 |
guint32 prop_id, |
| 163 |
gdouble value); |
| 164 |
void e_ews_request_add_extended_property_distinguished_tag_string |
| 165 |
(ESoapRequest *request, |
| 166 |
const gchar *set_id, |
| 167 |
guint32 prop_id, |
| 168 |
const gchar *value); |
| 169 |
void e_ews_request_add_extended_property_distinguished_tag_time |
| 170 |
(ESoapRequest *request, |
| 171 |
const gchar *set_id, |
| 172 |
guint32 prop_id, |
| 173 |
time_t value); |
| 174 |
|
| 175 |
void e_ews_request_add_delete_item_field_extended_name (ESoapRequest *request, |
| 176 |
const gchar *name, |
| 177 |
EEwsMessageDataType data_type); |
| 178 |
|
| 179 |
void e_ews_request_add_delete_item_field_extended_distinguished_name |
| 180 |
(ESoapRequest *request, |
| 181 |
const gchar *set_id, |
| 182 |
const gchar *name, |
| 183 |
EEwsMessageDataType data_type); |
| 184 |
|
| 185 |
void e_ews_request_add_set_item_field_extended_name_boolean (ESoapRequest *request, |
| 186 |
const gchar *elem_prefix, |
| 187 |
const gchar *elem_name, |
| 188 |
const gchar *name, |
| 189 |
gboolean value); |
| 190 |
void e_ews_request_add_set_item_field_extended_name_int (ESoapRequest *request, |
| 191 |
const gchar *elem_prefix, |
| 192 |
const gchar *elem_name, |
| 193 |
const gchar *name, |
| 194 |
gint value); |
| 195 |
void e_ews_request_add_set_item_field_extended_name_double (ESoapRequest *request, |
| 196 |
const gchar *elem_prefix, |
| 197 |
const gchar *elem_name, |
| 198 |
const gchar *name, |
| 199 |
gdouble value); |
| 200 |
void e_ews_request_add_set_item_field_extended_name_string (ESoapRequest *request, |
| 201 |
const gchar *elem_prefix, |
| 202 |
const gchar *elem_name, |
| 203 |
const gchar *name, |
| 204 |
const gchar *value); |
| 205 |
void e_ews_request_add_set_item_field_extended_name_time (ESoapRequest *request, |
| 206 |
const gchar *elem_prefix, |
| 207 |
const gchar *elem_name, |
| 208 |
const gchar *name, |
| 209 |
time_t value); |
| 210 |
void e_ews_request_add_set_item_field_extended_distinguished_name_boolean |
| 211 |
(ESoapRequest *request, |
| 212 |
const gchar *elem_prefix, |
| 213 |
const gchar *elem_name, |
| 214 |
const gchar *set_id, |
| 215 |
const gchar *name, |
| 216 |
gboolean value); |
| 217 |
void e_ews_request_add_set_item_field_extended_distinguished_name_int |
| 218 |
(ESoapRequest *request, |
| 219 |
const gchar *elem_prefix, |
| 220 |
const gchar *elem_name, |
| 221 |
const gchar *set_id, |
| 222 |
const gchar *name, |
| 223 |
gint value); |
| 224 |
void e_ews_request_add_set_item_field_extended_distinguished_name_double |
| 225 |
(ESoapRequest *request, |
| 226 |
const gchar *elem_prefix, |
| 227 |
const gchar *elem_name, |
| 228 |
const gchar *set_id, |
| 229 |
const gchar *name, |
| 230 |
gdouble value); |
| 231 |
void e_ews_request_add_set_item_field_extended_distinguished_name_string |
| 232 |
(ESoapRequest *request, |
| 233 |
const gchar *elem_prefix, |
| 234 |
const gchar *elem_name, |
| 235 |
const gchar *set_id, |
| 236 |
const gchar *name, |
| 237 |
const gchar *value); |
| 238 |
void e_ews_request_add_set_item_field_extended_distinguished_name_time |
| 239 |
(ESoapRequest *request, |
| 240 |
const gchar *elem_prefix, |
| 241 |
const gchar *elem_name, |
| 242 |
const gchar *set_id, |
| 243 |
const gchar *name, |
| 244 |
time_t value); |
| 245 |
void e_ews_request_add_extended_property_name_boolean (ESoapRequest *request, |
| 246 |
const gchar *name, |
| 247 |
gboolean value); |
| 248 |
void e_ews_request_add_extended_property_name_int (ESoapRequest *request, |
| 249 |
const gchar *name, |
| 250 |
gint value); |
| 251 |
void e_ews_request_add_extended_property_name_double (ESoapRequest *request, |
| 252 |
const gchar *name, |
| 253 |
gdouble value); |
| 254 |
void e_ews_request_add_extended_property_name_string (ESoapRequest *request, |
| 255 |
const gchar *name, |
| 256 |
const gchar *value); |
| 257 |
void e_ews_request_add_extended_property_name_time (ESoapRequest *request, |
| 258 |
const gchar *name, |
| 259 |
time_t value); |
| 260 |
void e_ews_request_add_extended_property_distinguished_name_boolean |
| 261 |
(ESoapRequest *request, |
| 262 |
const gchar *set_id, |
| 263 |
const gchar *name, |
| 264 |
gboolean value); |
| 265 |
void e_ews_request_add_extended_property_distinguished_name_int |
| 266 |
(ESoapRequest *request, |
| 267 |
const gchar *set_id, |
| 268 |
const gchar *name, |
| 269 |
gint value); |
| 270 |
void e_ews_request_add_extended_property_distinguished_name_double |
| 271 |
(ESoapRequest *request, |
| 272 |
const gchar *set_id, |
| 273 |
const gchar *name, |
| 274 |
gdouble value); |
| 275 |
void e_ews_request_add_extended_property_distinguished_name_string |
| 276 |
(ESoapRequest *request, |
| 277 |
const gchar *set_id, |
| 278 |
const gchar *name, |
| 279 |
const gchar *value); |
| 280 |
void e_ews_request_add_extended_property_distinguished_name_time |
| 281 |
(ESoapRequest *request, |
| 282 |
const gchar *set_id, |
| 283 |
const gchar *name, |
| 284 |
time_t value); |
| 285 |
|
| 286 |
G_END_DECLS |
| 287 |
|
| 288 |
#endif |