KItinerary

calendarhandler.h
1 /*
2  Copyright (c) 2017 Volker Krause <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef CALENDARHANDLER_H
21 #define CALENDARHANDLER_H
22 
23 #include "kitinerary_export.h"
24 
25 #include <QSharedPointer>
26 template <typename T> class QVector;
27 
28 class QDateTime;
29 class QVariant;
30 
31 namespace KCalendarCore {
32 class Calendar;
33 class Event;
34 }
35 
36 namespace KItinerary {
37 
39 namespace CalendarHandler
40 {
48 
52  KITINERARY_DEPRECATED_EXPORT QSharedPointer<KCalendarCore::Event> findEvent(const QSharedPointer<KCalendarCore::Calendar> &calendar, const QVariant &reservation);
53 
58 
60  KITINERARY_EXPORT bool canCreateEvent(const QVariant &reservation);
61 
68  KITINERARY_EXPORT void fillEvent(const QVector<QVariant> &reservations, const QSharedPointer<KCalendarCore::Event> &event);
69 }
70 
71 }
72 
73 #endif // CALENDARHANDLER_H
Classes for reservation/travel data models, data extraction and data augmentation.
KITINERARY_DEPRECATED_EXPORT QSharedPointer< KCalendarCore::Event > findEvent(const QSharedPointer< KCalendarCore::Calendar > &calendar, const QVariant &reservation)
Attempts to find an event in calendar for reservation.
QVector< QVariant > reservationsForEvent(const QSharedPointer< KCalendarCore::Event > &event)
Returns the reservations for this event.
void fillEvent(const QVector< QVariant > &reservations, const QSharedPointer< KCalendarCore::Event > &event)
Fills event with details of reservations.
QVector< QSharedPointer< KCalendarCore::Event > > findEvents(const QSharedPointer< KCalendarCore::Calendar > &calendar, const QVariant &reservation)
Attempts to find calendar events in calendar for reservation.
bool canCreateEvent(const QVariant &reservation)
Checks if the given reservation contains enough information to create an iCal event from it...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed May 27 2020 22:39:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.