KPublicTransport

platformlayout.h
1/*
2 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KPUBLICTRANSPORT_PLATFORMLAYOUT_H
7#define KPUBLICTRANSPORT_PLATFORMLAYOUT_H
8
9#include "kpublictransport_export.h"
10
11#include <KPublicTransport/Vehicle>
12
13namespace KPublicTransport {
14
15class Stopover;
16
17/** Methods for determining positions on a platform.
18 *
19 * The sectionsFor* method return a platform section range expression consumable by
20 * e.g. KOSMIndoorMaps.
21 */
22class KPUBLICTRANSPORT_EXPORT PlatformLayout
23{
24public:
25 /** Returns all platform sections the given vehicle has coaches stopping at.
26 * This excludes powercars and engines.
27 */
28 static QString sectionsForVehicle(const Stopover &stopover);
29
30 /** Returns all platform sections the given vehicle has coaches of class @cls at. */
31 static QString sectionsForClass(const Stopover &stopover, VehicleSection::Class cls);
32
33 /** Returns all platform sections the coach @p coachName stops at. */
34 static QString sectionsForVehicleSection(const Stopover &stopover, const QString &coachName);
35};
36
37}
38
39#endif // KPUBLICTRANSPORT_PLATFORMLAYOUT_H
Methods for determining positions on a platform.
Information about an arrival and/or departure of a vehicle at a stop area.
Definition stopover.h:26
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 Fri May 10 2024 11:47:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.