KItinerary

event.cpp
1/*
2 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "event.h"
8#include "datatypes_p.h"
9
10#include <QDateTime>
11#include <QUrl>
12
13using namespace KItinerary;
14
15namespace KItinerary {
16
17class EventPrivate: public QSharedData {
18
19public:
20 QString name;
21 QString description;
22 QUrl image;
23 QUrl url;
24 QDateTime startDate;
25 QDateTime endDate;
26 QDateTime doorTime;
27 QVariant location;
28 QVariantList potentialAction;
29};
30
31KITINERARY_MAKE_CLASS(Event)
32KITINERARY_MAKE_PROPERTY(Event, QString, name, setName)
33KITINERARY_MAKE_PROPERTY(Event, QString, description, setDescription)
34KITINERARY_MAKE_PROPERTY(Event, QUrl, image, setImage)
35KITINERARY_MAKE_PROPERTY(Event, QUrl, url, setUrl)
36KITINERARY_MAKE_PROPERTY(Event, QDateTime, startDate, setStartDate)
37KITINERARY_MAKE_PROPERTY(Event, QDateTime, endDate, setEndDate)
38KITINERARY_MAKE_PROPERTY(Event, QDateTime, doorTime, setDoorTime)
39KITINERARY_MAKE_PROPERTY(Event, QVariant, location, setLocation)
40KITINERARY_MAKE_PROPERTY(Event, QVariantList, potentialAction, setPotentialAction)
41KITINERARY_MAKE_OPERATOR(Event)
42
43}
44
45#include "moc_event.cpp"
An event.
Definition event.h:21
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.