File indexing completed on 2024-11-24 04:44:12
0001 /* 0002 * SPDX-FileCopyrightText: 2012 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 #include <KCalendarCore/Event> 0011 #include <kolabevent.h> 0012 #include <kolabfreebusy.h> 0013 0014 namespace Kolab 0015 { 0016 namespace FreebusyUtils 0017 { 0018 KOLAB_EXPORT Freebusy generateFreeBusy(const QList<KCalendarCore::Event::Ptr> &events, 0019 const QDateTime &startDate, 0020 const QDateTime &endDate, 0021 const KCalendarCore::Person &organizer, 0022 bool allDay); 0023 KOLAB_EXPORT std::string toIFB(const Kolab::Freebusy &); 0024 0025 Kolab::Freebusy generateFreeBusy(const std::vector<Kolab::Event> &events, const Kolab::cDateTime &startDate, const Kolab::cDateTime &endDate); 0026 KOLAB_EXPORT Kolab::Freebusy 0027 aggregateFreeBusy(const std::vector<Kolab::Freebusy> &fbs, const std::string &organizerEmail, const std::string &organizerName, bool simple = true); 0028 } 0029 }