Marble

FileLoader.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2008 Patrick Spendrin <[email protected]>
4 //
5 #ifndef MARBLE_FILELOADER_H
6 #define MARBLE_FILELOADER_H
7 
8 #include "GeoDataDocument.h"
9 
10 #include <QThread>
11 
12 class QString;
13 
14 namespace Marble
15 {
16 class FileLoaderPrivate;
17 class PluginManager;
18 class GeoDataStyle;
19 
20 class FileLoader : public QThread
21 {
22  Q_OBJECT
23  public:
24  FileLoader(QObject* parent, const PluginManager *pluginManager, bool recenter, const QString& file,
25  const QString& property, const GeoDataStyle::Ptr &style, DocumentRole role, int renderOrder );
26  FileLoader( QObject* parent, const PluginManager *pluginManager,
27  const QString& contents, const QString& name, DocumentRole role );
28  ~FileLoader() override;
29 
30  void run() override;
31  bool recenter() const;
32  QString path() const;
33  GeoDataDocument *document();
34  QString error() const;
35 
36  Q_SIGNALS:
37  void loaderFinished( FileLoader* );
38  void newGeoDataDocumentAdded( GeoDataDocument* );
39 
40 private:
41  Q_PRIVATE_SLOT ( d, void documentParsed( GeoDataDocument *, QString) )
42 
43  friend class FileLoaderPrivate;
44 
45  FileLoaderPrivate *d;
46 
47 };
48 
49 } // namespace Marble
50 
51 #endif
Q_OBJECTQ_OBJECT
Binds a QML item to a specific geodetic location in screen coordinates.
KIOWIDGETS_EXPORT bool run(const QUrl &_url, bool _is_local)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
Q_SIGNALSQ_SIGNALS
QString path(const QString &relativePath)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.