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;
17class VehicleLayoutRequest;
18class VehicleLayoutReplyPrivate;
19
20/** Reply to a vehicle layout query. */
21class KPUBLICTRANSPORT_EXPORT VehicleLayoutReply : public Reply
22{
23 Q_OBJECT
24public:
25 ~VehicleLayoutReply() override;
26
27 /** The request this is the reply for. */
28 VehicleLayoutRequest request() const;
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
Entry point for starting public transport queries.
Definition manager.h:42
Query response base class.
Definition reply.h:25
Error
Error types.
Definition reply.h:31
Information about an arrival and/or departure of a vehicle at a stop area.
Definition stopover.h:26
Reply to a vehicle layout query.
Describes a query for vehicle layout information.
Query operations and data types for accessing realtime public transport information from online servi...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.