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

0001 /*
0002     SPDX-FileCopyrightText: 2021-2023 Volker Krause <vkrause@kde.org>
0003     SPDX-License-Identifier: LGPL-2.0-or-later
0004 */
0005 
0006 #ifndef KPUBLICTRANSPORT_IVVASSPRODUCTMAP_H
0007 #define KPUBLICTRANSPORT_IVVASSPRODUCTMAP_H
0008 
0009 #include <KPublicTransport/Line>
0010 
0011 class QUrlQuery;
0012 
0013 namespace KPublicTransport {
0014 
0015 /** Product type mappings for IVV ASS. */
0016 namespace IvvAssProductMap
0017 {
0018     /** Convert "physical mode" to Line::Mode */
0019     Line::Mode parseProduct(QStringView mode);
0020 
0021     /** Convert a set of line modes to a corresponding URL query. */
0022     void lineModesToQuery(const std::vector<Line::Mode> &lineModes, QUrlQuery &query);
0023 }
0024 
0025 }
0026 
0027 #endif // KPUBLICTRANSPORT_IVVASSPRODUCTMAP_H