File indexing completed on 2024-05-12 04:42:39
0001 /* 0002 SPDX-FileCopyrightText: 2018-2023 Volker Krause <vkrause@kde.org> 0003 SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef KPUBLICTRANSPORT_NAVITIAPHYSICALMODE_H 0007 #define KPUBLICTRANSPORT_NAVITIAPHYSICALMODE_H 0008 0009 #include <KPublicTransport/Line> 0010 0011 class QStringView; 0012 class QUrlQuery; 0013 0014 namespace KPublicTransport { 0015 0016 /** Navitia physical modes (line modes in our speak) translation functions. */ 0017 namespace NavitiaPhysicalMode 0018 { 0019 /** Convert "physical mode" to Line::Mode */ 0020 Line::Mode parsePhysicalMode(QStringView mode); 0021 0022 /** Convert a set of line modes to a corresponding URL query. */ 0023 void lineModesToQuery(const std::vector<Line::Mode> &lineModes, QUrlQuery &query); 0024 } 0025 0026 } 0027 0028 #endif // KPUBLICTRANSPORT_NAVITIAPHYSICALMODE_H