QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Signals | Public Member Functions | List of all members
QgsRunnableProviderCreator Class Reference

The QgsRunnableProviderCreator class is used when reading a project to create asynchronously provider that support asynchronous creation. More...

#include <qgsrunnableprovidercreator.h>

Inheritance diagram for QgsRunnableProviderCreator:
Inheritance graph
[legend]

Signals

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

Public Member Functions

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

Detailed Description

The QgsRunnableProviderCreator class is used when reading a project to create asynchronously provider that support asynchronous creation.

Since
QGIS 3.32

Definition at line 33 of file qgsrunnableprovidercreator.h.

Constructor & Destructor Documentation

◆ QgsRunnableProviderCreator()

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

Constructor.

Definition at line 24 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 43 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 34 of file qgsrunnableprovidercreator.cpp.


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