KPublicTransport

vehiclelayoutreply.h
1/*
2 SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KPUBLICTRANSPORT_VEHICLELAYOUTREPLY_H
8#define KPUBLICTRANSPORT_VEHICLELAYOUTREPLY_H
9
10#include "reply.h"
11
12namespace KPublicTransport {
13
14class AbstractBackend;
15class Stopover;
16class Vehicle;
18class VehicleLayoutReplyPrivate;
19
20/** Reply to a vehicle layout query. */
21class KPUBLICTRANSPORT_EXPORT VehicleLayoutReply : public Reply
22{
24public:
25 ~VehicleLayoutReply() override;
26
27 /** The request this is the reply for. */
29
30 /** The requested Stopover information, including the vehicle and platform layout. */
31 Stopover stopover() const;
32
33private:
34 friend class Manager;
35 friend class ManagerPrivate;
36 explicit VehicleLayoutReply(const VehicleLayoutRequest &req, QObject *parent = nullptr);
37
38 friend class AbstractBackend;
39 Q_DECL_HIDDEN void addResult(const Stopover &stopover);
40 using Reply::addError;
41 Q_DECL_HIDDEN void addError(const AbstractBackend *backend, Reply::Error error, const QString &errorMsg);
42
43 Q_DECLARE_PRIVATE(VehicleLayoutReply)
44};
45
46}
47
48#endif // KPUBLICTRANSPORT_VEHICLELAYOUTREPLY_H
Query response base class.
Definition reply.h:25
Error
Error types.
Definition reply.h:33
Information about an arrival and/or departure of a vehicle at a stop area.
Definition stopover.h:26
VehicleLayoutRequest request() const
The request this is the reply for.
Stopover stopover() const
The requested Stopover information, including the vehicle and platform layout.
Describes a query for vehicle layout information.
Information about the vehicle used on a journey.
Definition vehicle.h:159
Query operations and data types for accessing realtime public transport information from online servi...
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:52:19 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.