QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsRunnableProviderCreator Class Reference

Used when reading a project to asynchronously create data providers that support asynchronous creation. More...

#include <qgsrunnableprovidercreator.h>

Inheritance diagram for QgsRunnableProviderCreator:

Signals

void providerCreated (bool isValid, const QString &layerId)
 Emitted when a provider is created with isValid set to True when the provider is valid.

Public Member Functions

 QgsRunnableProviderCreator (const QString &layerId, QString const &providerKey, QString const &dataSource, const QgsDataProvider::ProviderOptions &options, Qgis::DataProviderReadFlags flags)
 Constructor.
QgsDataProviderdataProvider ()
 Returns the created data provider.
void run () override

Detailed Description

Used when reading a project to asynchronously create data providers that support asynchronous creation.

Since
QGIS 3.32

Definition at line 32 of file qgsrunnableprovidercreator.h.

Constructor & Destructor Documentation

◆ QgsRunnableProviderCreator()

QgsRunnableProviderCreator::QgsRunnableProviderCreator ( const QString & layerId,
QString const & providerKey,
QString const & dataSource,
const QgsDataProvider::ProviderOptions & options,
Qgis::DataProviderReadFlags flags )

Constructor.

Definition at line 26 of file qgsrunnableprovidercreator.cpp.

Member Function Documentation

◆ dataProvider()

QgsDataProvider * QgsRunnableProviderCreator::dataProvider ( )

Returns the created data provider.

Caller takes ownership and as the dataprovider object was moved to the thread where the QgsRunnableProviderCreator was created, the caller has to be in this thread.

Definition at line 45 of file qgsrunnableprovidercreator.cpp.

◆ providerCreated

void QgsRunnableProviderCreator::providerCreated ( bool isValid,
const QString & layerId )
signal

Emitted when a provider is created with isValid set to True when the provider is valid.

◆ run()

void QgsRunnableProviderCreator::run ( )
override

Definition at line 36 of file qgsrunnableprovidercreator.cpp.


The documentation for this class was generated from the following files: