File indexing completed on 2024-11-10 12:47:53

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_LINEMETADATAWRAPPER_H
0008 #define KPUBLICTRANSPORT_LINEMETADATAWRAPPER_H
0009 
0010 #include <KPublicTransport/Line>
0011 
0012 namespace KPublicTransport {
0013 
0014 /** QML API for looking up line metadata. */
0015 class LineMetaDataWrapper
0016 {
0017     Q_GADGET
0018 public:
0019     /** Lookup line metadata. */
0020     Q_INVOKABLE KPublicTransport::Line lookup(const QString &name, double latitude, double longitude, int mode, bool download);
0021 };
0022 
0023 }
0024 
0025 #endif // KPUBLICTRANSPORT_LINEMETADATAWRAPPER_H