Debian Codegraph @

src/EWS/common/e-ews-calendar-utils.h

raw
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 E_EWS_CALENDAR_UTILS_H
7 #define E_EWS_CALENDAR_UTILS_H
8
9 #include <time.h>
10 #include <libecal/libecal.h>
11
12 #include "common/e-soap-request.h"
13 #include "common/e-ews-item.h"
14
15 G_BEGIN_DECLS
16
17 /* Custom property, because evolution cannot cope with it,
18 but it shouldn't lost it as well */
19 #define X_EWS_TASK_REGENERATION "X-EWS-TASK-REGENERATION"
20
21 typedef struct _EEWSFreeBusyData {
22 time_t period_start;
23 time_t period_end;
24 GSList *user_mails; /* gchar * */
25 } EEWSFreeBusyData;
26
27 gboolean e_ews_cal_utils_prepare_free_busy_request
28 (ESoapRequest *request,
29 gpointer user_data, /* EEWSFreeBusyData * */
30 GError **error);
31 void e_ews_cal_utils_set_time (ESoapRequest *request,
32 const gchar *name,
33 ICalTime *tt,
34 gboolean with_timezone);
35 gboolean e_ews_cal_utils_set_recurrence (ESoapRequest *request,
36 ICalComponent *comp,
37 gboolean server_satisfies_2013,
38 GError **error);
39 void e_ews_cal_utils_recurrence_to_rrule
40 (EEwsItem *item,
41 ICalComponent *comp);
42
43 G_END_DECLS
44
45 #endif /* E_EWS_CALENDAR_UTILS_H */