KPublicTransport

disruption.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_DISRUPTION_H
8 #define KPUBLICTRANSPORT_DISRUPTION_H
9 
10 #include "kpublictransport_export.h"
11 
12 #include <QMetaType>
13 
14 namespace KPublicTransport {
15 
16 /** Disruption information for a Departure or a JourneySection.
17  * This follows how Navitia models disruptions which follows how GTFS-rt models disruptions.
18  * @see https://developers.google.com/transit/gtfs-realtime/reference/#message-alert
19  */
20 namespace Disruption
21 {
22  KPUBLICTRANSPORT_EXPORT Q_NAMESPACE
23 
24  /** Disruption effects, numerical sorted so that higher values imply more severe disruptions. */
25  enum Effect {
26  NormalService = 0,
27  NoService = 1024
28  };
29 
30  Q_ENUM_NS(Effect)
31 }
32 
33 }
34 
35 #endif // KPUBLICTRANSPORT_DISRUPTION_H
Query operations and data types for accessing realtime public transport information from online servi...
Definition: attribution.cpp:16
Effect
Disruption effects, numerical sorted so that higher values imply more severe disruptions.
Definition: disruption.h:25
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.