File indexing completed on 2024-11-24 04:44:12
0001 /* 0002 * SPDX-FileCopyrightText: 2011 Christian Mollekopf <mollekopf@kolabsys.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kolab_export.h" 0010 0011 #include <KCalendarCore/Event> 0012 #include <KCalendarCore/Journal> 0013 #include <KCalendarCore/Todo> 0014 #include <kolabevent.h> 0015 #include <kolabjournal.h> 0016 #include <kolabtodo.h> 0017 0018 namespace Kolab 0019 { 0020 /** 0021 * Conversion of Kolab-Containers to/from KCalendarCore Containers. 0022 * 0023 */ 0024 namespace Conversion 0025 { 0026 KOLAB_EXPORT KCalendarCore::Event::Ptr toKCalendarCore(const Kolab::Event &); 0027 KOLAB_EXPORT Kolab::Event fromKCalendarCore(const KCalendarCore::Event &); 0028 0029 KOLAB_EXPORT KCalendarCore::Todo::Ptr toKCalendarCore(const Kolab::Todo &); 0030 KOLAB_EXPORT Kolab::Todo fromKCalendarCore(const KCalendarCore::Todo &); 0031 0032 KOLAB_EXPORT KCalendarCore::Journal::Ptr toKCalendarCore(const Kolab::Journal &); 0033 KOLAB_EXPORT Kolab::Journal fromKCalendarCore(const KCalendarCore::Journal &); 0034 } 0035 }