File indexing completed on 2024-05-12 04:42:42

0001 /*
0002     SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef KPUBLICTRANSPORT_DISRUPTION_H
0008 #define KPUBLICTRANSPORT_DISRUPTION_H
0009 
0010 #include "kpublictransport_export.h"
0011 
0012 #include <QMetaType>
0013 
0014 namespace KPublicTransport {
0015 
0016 /** Disruption information for a Departure or a JourneySection.
0017  *  This follows how Navitia models disruptions which follows how GTFS-rt models disruptions.
0018  *  @see https://developers.google.com/transit/gtfs-realtime/reference/#message-alert
0019  */
0020 namespace Disruption
0021 {
0022     KPUBLICTRANSPORT_EXPORT Q_NAMESPACE
0023 
0024     /** Disruption effects, numerical sorted so that higher values imply more severe disruptions. */
0025     enum Effect {
0026         NormalService = 0,
0027         NoService = 1024
0028     };
0029 
0030     Q_ENUM_NS(Effect)
0031 }
0032 
0033 }
0034 
0035 #endif // KPUBLICTRANSPORT_DISRUPTION_H