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{
23public:
25 const PluginManager *pluginManager,
26 bool recenter,
27 const QString &file,
28 const QString &property,
29 const GeoDataStyle::Ptr &style,
30 DocumentRole role,
31 int renderOrder);
32 FileLoader(QObject *parent, const PluginManager *pluginManager, const QString &contents, const QString &name, DocumentRole role);
33 ~FileLoader() override;
34
35 void run() override;
36 bool recenter() const;
37 QString path() const;
38 GeoDataDocument *document();
39 QString error() const;
40
42 void loaderFinished(FileLoader *);
43 void newGeoDataDocumentAdded(GeoDataDocument *);
44
45private:
46 Q_PRIVATE_SLOT(d, void documentParsed(GeoDataDocument *, QString))
47
48 friend class FileLoaderPrivate;
49
50 FileLoaderPrivate *const d;
51};
52
53} // namespace Marble
54
55#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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.