Marble

ParsingRunner.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2010 Dennis Nienhüser <[email protected]>
4 // SPDX-FileCopyrightText: 2011 Thibaut Gridel <[email protected]>
5 // SPDX-FileCopyrightText: 2012 Bernhard Beschow <[email protected]>
6 
7 #ifndef MARBLE_PARSINGRUNNER_H
8 #define MARBLE_PARSINGRUNNER_H
9 
10 #include <QObject>
11 #include "marble_export.h"
12 
13 #include "GeoDataDocument.h"
14 
15 namespace Marble
16 {
17 
18 class MARBLE_EXPORT ParsingRunner : public QObject
19 {
20  Q_OBJECT
21 
22 public:
23  explicit ParsingRunner( QObject *parent = nullptr );
24 
25  /**
26  * Start a file parsing.
27  * If implemented in a plugin, make sure to include Parsing in the
28  * plugin capabilities, otherwise MarbleRunnerManager will ignore the plugin
29  */
30  virtual GeoDataDocument* parseFile( const QString &fileName, DocumentRole role, QString& error ) = 0;
31 };
32 
33 }
34 
35 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.