KPublicTransport

vehiclelayoutreply.h
1 /*
2  SPDX-FileCopyrightText: 2019 Volker Krause <[email protected]>
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 
12 namespace KPublicTransport {
13 
14 class AbstractBackend;
15 class Platform;
16 class Stopover;
17 class Vehicle;
18 class VehicleLayoutRequest;
19 class VehicleLayoutReplyPrivate;
20 
21 /** Reply to a vehicle layout query. */
22 class KPUBLICTRANSPORT_EXPORT VehicleLayoutReply : public Reply
23 {
24  Q_OBJECT
25 public:
27 
28  /** The request this is the reply for. */
29  VehicleLayoutRequest request() const;
30 
31  /** The requested Stopover information, including the vehicle and platform layout. */
32  Stopover stopover() const;
33 
34 private:
35  friend class Manager;
36  friend class ManagerPrivate;
37  explicit VehicleLayoutReply(const VehicleLayoutRequest &req, QObject *parent = nullptr);
38 
39  friend class AbstractBackend;
40  Q_DECL_HIDDEN void addResult(const Stopover &stopover);
41  using Reply::addError;
42  Q_DECL_HIDDEN void addError(const AbstractBackend *backend, Reply::Error error, const QString &errorMsg);
43 
44  Q_DECLARE_PRIVATE(VehicleLayoutReply)
45 };
46 
47 }
48 
49 #endif // KPUBLICTRANSPORT_VEHICLELAYOUTREPLY_H
Query operations and data types for accessing realtime public transport information from online servi...
Definition: attribution.cpp:16
Describes a query for vehicle layout information.
Error
Error types.
Definition: reply.h:31
Information about an arrival and/or departure of a vehicle at a stop area.
Definition: stopover.h:25
Reply to a vehicle layout query.
Entry point for starting public transport queries.
Definition: manager.h:41
Query response base class.
Definition: reply.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 23 2021 23:05:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.