Marble

FileLoader.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2008 Patrick Spendrin <ps_ml@gmx.de>
4//
5#ifndef MARBLE_FILELOADER_H
6#define MARBLE_FILELOADER_H
7
8#include "GeoDataDocument.h"
9
10#include <QThread>
11
12class QString;
13
14namespace Marble
15{
16class FileLoaderPrivate;
17class PluginManager;
18class GeoDataStyle;
19
20class FileLoader : public QThread
21{
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
37 void loaderFinished( FileLoader* );
38 void newGeoDataDocumentAdded( GeoDataDocument* );
39
40private:
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
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
QVariant property(const char *name) const const
T qobject_cast(QObject *object)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.