File indexing completed on 2025-01-05 03:59:33
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <nienhueser@kde.org> 0004 // SPDX-FileCopyrightText: 2011 Thibaut Gridel <tgridel@free.fr> 0005 // SPDX-FileCopyrightText: 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de> 0006 0007 #ifndef MARBLE_PARSINGRUNNER_H 0008 #define MARBLE_PARSINGRUNNER_H 0009 0010 #include <QObject> 0011 #include "digikam_export.h" 0012 0013 #include "GeoDataDocument.h" 0014 0015 namespace Marble 0016 { 0017 0018 class DIGIKAM_EXPORT ParsingRunner : public QObject 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit ParsingRunner( QObject *parent = nullptr ); 0024 0025 /** 0026 * Start a file parsing. 0027 * If implemented in a plugin, make sure to include Parsing in the 0028 * plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin 0029 */ 0030 virtual GeoDataDocument* parseFile( const QString &fileName, DocumentRole role, QString& error ) = 0; 0031 }; 0032 0033 } 0034 0035 #endif