| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: (C) 2020 Red Hat (www.redhat.com) |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef E_CAL_BACKEND_M365_UTILS_H |
| 7 |
#define E_CAL_BACKEND_M365_UTILS_H |
| 8 |
|
| 9 |
#include <glib.h> |
| 10 |
#include <gio/gio.h> |
| 11 |
#include <libecal/libecal.h> |
| 12 |
|
| 13 |
#include "common/e-m365-connection.h" |
| 14 |
|
| 15 |
G_BEGIN_DECLS |
| 16 |
|
| 17 |
ICalComponent * |
| 18 |
e_cal_backend_m365_utils_json_to_ical (EM365Connection *cnc, |
| 19 |
const gchar *group_id, |
| 20 |
const gchar *folder_id, |
| 21 |
const gchar *attachments_dir, |
| 22 |
ETimezoneCache *timezone_cache, |
| 23 |
ICalComponentKind kind, |
| 24 |
JsonObject *m365_object, |
| 25 |
GCancellable *cancellable, |
| 26 |
GError **error); |
| 27 |
JsonBuilder * |
| 28 |
e_cal_backend_m365_utils_ical_to_json (EM365Connection *cnc, |
| 29 |
const gchar *group_id, |
| 30 |
const gchar *folder_id, |
| 31 |
ETimezoneCache *timezone_cache, |
| 32 |
ICalComponentKind kind, |
| 33 |
ICalComponent *new_comp, |
| 34 |
ICalComponent *old_comp, /* nullable */ |
| 35 |
GCancellable *cancellable, |
| 36 |
GError **error); |
| 37 |
gboolean |
| 38 |
e_cal_backend_m365_utils_ical_to_json_2nd_go |
| 39 |
(EM365Connection *cnc, |
| 40 |
const gchar *group_id, |
| 41 |
const gchar *folder_id, |
| 42 |
ETimezoneCache *timezone_cache, |
| 43 |
ICalComponentKind kind, |
| 44 |
ICalComponent *new_comp, |
| 45 |
ICalComponent *old_comp, /* nullable */ |
| 46 |
const gchar *m365_id, |
| 47 |
GCancellable *cancellable, |
| 48 |
GError **error); |
| 49 |
|
| 50 |
G_END_DECLS |
| 51 |
|
| 52 |
#endif /* E_CAL_BACKEND_M365_UTILS_H */ |