marble
ParsingRunnerManager.cpp
Go to the documentation of this file.
48 ParsingRunnerManager::Private::Private( ParsingRunnerManager *parent, const PluginManager *pluginManager ) :
61 void ParsingRunnerManager::Private::addParsingResult( GeoDataDocument *document, const QString &error )
81 ParsingRunnerManager::ParsingRunnerManager( const PluginManager *pluginManager, QObject *parent ) :
104 if ( extensions.isEmpty() || extensions.contains( suffix ) || extensions.contains( completeSuffix ) ) {
121 GeoDataDocument *ParsingRunnerManager::openFile( const QString &fileName, DocumentRole role, int timeout ) {
QString completeSuffix() const
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
QThreadPool * globalInstance()
bool contains(const QString &str, Qt::CaseSensitivity cs) const
~ParsingRunnerManager()
Definition: ParsingRunnerManager.cpp:90
void setMaxThreadCount(int maxThreadCount)
int exec(QFlags< QEventLoop::ProcessEventsFlag > flags)
GeoDataDocument * openFile(const QString &fileName, DocumentRole role=UserDocument, int timeout=30000)
Definition: ParsingRunnerManager.cpp:121
bool isEmpty() const
bool isEmpty() const
virtual QStringList fileExtensions() const =0
Returns the file extensions associated with the file format.
virtual QString nameId() const =0
Returns the unique name of the plugin.
QString toLower() const
A plugin for Marble to execute a parsing task.
Definition: ParseRunnerPlugin.h:27
ParsingRunnerManager(const PluginManager *pluginManager, QObject *parent=0)
Constructor.
Definition: ParsingRunnerManager.cpp:81
QString suffix() const
void start(int msec)
void parseFile(const QString &fileName, DocumentRole role=UserDocument)
Parse the file using the runners for various formats.
Definition: ParsingRunnerManager.cpp:95
void start(QRunnable *runnable, int priority)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void parsingFinished()
Emitted whenever all runners are finished for the query.
virtual ParsingRunner * newRunner() const =0
Plugin factory method to create a new runner instance.
void setSingleShot(bool singleShot)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.