File indexing completed on 2024-12-01 10:29:54
0001 /* 0002 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef OSM_OVERPASSQUERYMANAGER_H 0008 #define OSM_OVERPASSQUERYMANAGER_H 0009 0010 #include <QObject> 0011 0012 #include <memory> 0013 0014 namespace OSM { 0015 0016 class OverpassQuery; 0017 class OverpassQueryManagerPrivate; 0018 0019 /** Executes OverpassQuery jobs. */ 0020 class OverpassQueryManager : public QObject 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit OverpassQueryManager(QObject *parent = nullptr); 0025 ~OverpassQueryManager() override; 0026 0027 /** Executes @p query. 0028 * Once done, OverpassQuery::finished will be emitted. 0029 */ 0030 void execute(OverpassQuery *query); 0031 0032 private: 0033 std::unique_ptr<OverpassQueryManagerPrivate> d; 0034 }; 0035 0036 } 0037 0038 #endif // OSM_OVERPASSQUERYMANAGER_H