• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
FileLoader.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2008 Patrick Spendrin <ps_ml@gmx.de>
9 //
10 #ifndef MARBLE_FILELOADER_H
11 #define MARBLE_FILELOADER_H
12 
13 #include "GeoDataDocument.h"
14 #include "GeoDataStyle.h"
15 
16 #include <QThread>
17 #include <QString>
18 
19 namespace Marble
20 {
21 class GeoDataContainer;
22 class FileLoaderPrivate;
23 class MarbleModel;
24 
25 class FileLoader : public QThread
26 {
27  Q_OBJECT
28  public:
29  FileLoader( QObject* parent, MarbleModel *model, bool recenter,
30  const QString& file, const QString& property, const GeoDataStyle* style, DocumentRole role );
31  FileLoader( QObject* parent, MarbleModel *model,
32  const QString& contents, const QString& name, DocumentRole role );
33  virtual ~FileLoader();
34 
35  void run();
36  bool recenter() const;
37  QString path() const;
38  GeoDataDocument *document();
39  QString error() const;
40 
41  Q_SIGNALS:
42  void loaderFinished( FileLoader* );
43  void newGeoDataDocumentAdded( GeoDataDocument* );
44 
45 private:
46  Q_PRIVATE_SLOT ( d, void documentParsed( GeoDataDocument *, QString) )
47 
48  friend class FileLoaderPrivate;
49 
50  FileLoaderPrivate *d;
51 
52 };
53 
54 } // namespace Marble
55 
56 #endif
GeoDataDocument.h
Marble::FileLoader::path
QString path() const
Definition: FileLoader.cpp:123
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Marble::FileLoader::FileLoaderPrivate
friend class FileLoaderPrivate
Definition: FileLoader.h:48
Marble::FileLoader::newGeoDataDocumentAdded
void newGeoDataDocumentAdded(GeoDataDocument *)
Marble::FileLoader::document
GeoDataDocument * document()
Definition: FileLoader.cpp:128
GeoDataStyle.h
Marble::FileLoader
Definition: FileLoader.h:25
Marble::FileLoader::error
QString error() const
Definition: FileLoader.cpp:133
QObject::name
const char * name() const
Marble::GeoDataStyle
an addressable style group
Definition: GeoDataStyle.h:55
QObject::property
QVariant property(const char *name) const
QObject
Marble::FileLoader::loaderFinished
void loaderFinished(FileLoader *)
Marble::FileLoader::FileLoader
FileLoader(QObject *parent, MarbleModel *model, bool recenter, const QString &file, const QString &property, const GeoDataStyle *style, DocumentRole role)
Definition: FileLoader.cpp:104
QString
Marble::FileLoader::recenter
bool recenter() const
Definition: FileLoader.cpp:214
Marble::FileLoader::~FileLoader
virtual ~FileLoader()
Definition: FileLoader.cpp:118
Marble::FileLoader::run
void run()
Definition: FileLoader.cpp:138
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QThread
QObject::parent
QObject * parent() const
Marble::DocumentRole
DocumentRole
Definition: GeoDataDocument.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal