File indexing completed on 2024-12-29 04:49:57
0001 /* 0002 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "event.h" 0008 #include "datatypes_p.h" 0009 0010 #include <QDateTime> 0011 #include <QUrl> 0012 0013 using namespace KItinerary; 0014 0015 namespace KItinerary { 0016 0017 class EventPrivate: public QSharedData { 0018 0019 public: 0020 QString name; 0021 QString description; 0022 QUrl image; 0023 QUrl url; 0024 QDateTime startDate; 0025 QDateTime endDate; 0026 QDateTime doorTime; 0027 QVariant location; 0028 QVariantList potentialAction; 0029 }; 0030 0031 KITINERARY_MAKE_CLASS(Event) 0032 KITINERARY_MAKE_PROPERTY(Event, QString, name, setName) 0033 KITINERARY_MAKE_PROPERTY(Event, QString, description, setDescription) 0034 KITINERARY_MAKE_PROPERTY(Event, QUrl, image, setImage) 0035 KITINERARY_MAKE_PROPERTY(Event, QUrl, url, setUrl) 0036 KITINERARY_MAKE_PROPERTY(Event, QDateTime, startDate, setStartDate) 0037 KITINERARY_MAKE_PROPERTY(Event, QDateTime, endDate, setEndDate) 0038 KITINERARY_MAKE_PROPERTY(Event, QDateTime, doorTime, setDoorTime) 0039 KITINERARY_MAKE_PROPERTY(Event, QVariant, location, setLocation) 0040 KITINERARY_MAKE_PROPERTY(Event, QVariantList, potentialAction, setPotentialAction) 0041 KITINERARY_MAKE_OPERATOR(Event) 0042 0043 } 0044 0045 #include "moc_event.cpp"