KItinerary

action.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 "action.h"
8#include "datatypes_p.h"
9
10#include <QUrl>
11
12using namespace KItinerary;
13
14namespace KItinerary {
15
16class ActionPrivate : public QSharedData
17{
18 KITINERARY_PRIVATE_BASE_GADGET(Action)
19public:
20 QUrl target;
21 QVariant result;
22};
23
24KITINERARY_MAKE_CLASS(Action)
25KITINERARY_MAKE_PROPERTY(Action, QUrl, target, setTarget)
26KITINERARY_MAKE_PROPERTY(Action, QVariant, result, setResult)
27KITINERARY_MAKE_OPERATOR(Action)
28
29class CancelActionPrivate : public ActionPrivate
30{
31 KITINERARY_PRIVATE_GADGET(CancelAction)
32};
33KITINERARY_MAKE_DERIVED_CLASS(CancelAction, Action)
34KITINERARY_MAKE_OPERATOR(CancelAction)
35
36class CheckInActionPrivate : public ActionPrivate
37{
38 KITINERARY_PRIVATE_GADGET(CheckInAction)
39};
40KITINERARY_MAKE_DERIVED_CLASS(CheckInAction, Action)
41KITINERARY_MAKE_OPERATOR(CheckInAction)
42
43class DownloadActionPrivate : public ActionPrivate
44{
45 KITINERARY_PRIVATE_GADGET(DownloadAction)
46};
47KITINERARY_MAKE_DERIVED_CLASS(DownloadAction, Action)
48KITINERARY_MAKE_OPERATOR(DownloadAction)
49
50class JoinActionPrivate : public ActionPrivate
51{
52 KITINERARY_PRIVATE_GADGET(JoinAction)
53};
54KITINERARY_MAKE_DERIVED_CLASS(JoinAction, Action)
55KITINERARY_MAKE_OPERATOR(JoinAction)
56
57class ReserveActionPrivate : public ActionPrivate
58{
59 KITINERARY_PRIVATE_GADGET(ReserveAction)
60};
61KITINERARY_MAKE_DERIVED_CLASS(ReserveAction, Action)
62KITINERARY_MAKE_OPERATOR(ReserveAction)
63
64class UpdateActionPrivate : public ActionPrivate
65{
66 KITINERARY_PRIVATE_GADGET(UpdateAction)
67};
68KITINERARY_MAKE_DERIVED_CLASS(UpdateAction, Action)
69KITINERARY_MAKE_OPERATOR(UpdateAction)
70
71class ViewActionPrivate : public ActionPrivate
72{
73 KITINERARY_PRIVATE_GADGET(ViewAction)
74};
75KITINERARY_MAKE_DERIVED_CLASS(ViewAction, Action)
76KITINERARY_MAKE_OPERATOR(ViewAction)
77
78}
79
80template <>
82{
83 return d->clone();
84}
85
86#include "moc_action.cpp"
Cancel action.
Definition action.h:38
Check-in action.
Definition action.h:48
Action to join an event.
Definition action.h:68
Reserve action.
Definition action.h:78
Edit/update action.
Definition action.h:88
View action.
Definition action.h:98
void setTarget(const SkyPoint &targetCoord)
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 4 2024 16:28:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.