KItinerary

reservationconverter.h
1/*
2 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KITINERARY_RESERVATIONCONVERTER_H
7#define KITINERARY_RESERVATIONCONVERTER_H
8
9class QJsonObject;
10
11namespace KItinerary {
12
13/** Convert between different types of reservations, to the extend possible. */
14namespace ReservationConverter
15{
16 /** Convert a train reservation to a bus reservation. */
17 [[nodiscard]] QJsonObject trainToBus(const QJsonObject &trainRes);
18 /** Convert a bus reservation to a train reservation. */
19 [[nodiscard]] QJsonObject busToTrain(const QJsonObject &busRes);
20 /** Convert a flight reservation to a train reservation. */
21 [[nodiscard]] QJsonObject flightToTrain(const QJsonObject&flightRes);
22
23}
24
25}
26
27#endif
QJsonObject trainToBus(const QJsonObject &trainRes)
Convert a train reservation to a bus reservation.
QJsonObject flightToTrain(const QJsonObject &flightRes)
Convert a flight reservation to a train reservation.
QJsonObject busToTrain(const QJsonObject &busRes)
Convert a bus reservation to a train reservation.
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 Fri Oct 4 2024 12:00:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.