File indexing completed on 2024-05-12 04:42:46
0001 /* 0002 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KPUBLICTRANSPORT_GBFS_H 0008 #define KPUBLICTRANSPORT_GBFS_H 0009 0010 class QStringView; 0011 0012 namespace KPublicTransport { 0013 0014 /** General GBFS utilities. */ 0015 namespace GBFS 0016 { 0017 /** Types of GBFS files. 0018 * @see https://github.com/NABSA/gbfs/blob/master/gbfs.md#files 0019 */ 0020 enum FileType { 0021 Discovery, 0022 SystemInformation, 0023 StationInformation, 0024 StationStatus, 0025 FreeBikeStatus, 0026 Versions, 0027 VehicleTypes, 0028 GeofencingZones, 0029 SystemHours, 0030 SystemCalendar, 0031 SystemRegions, 0032 SystemPricingPlans, 0033 SystemAlerts, 0034 Unknown, // keep last 0035 }; 0036 0037 const char* keyNameForType(FileType type); 0038 FileType typeForKeyName(QStringView v); 0039 } 0040 0041 } 0042 0043 #endif // KPUBLICTRANSPORT_GBFS_H