QGIS API Documentation 3.41.0-Master (3291e9ff48b)
Loading...
Searching...
No Matches
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.
 

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

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,
Qgis::DataProviderReadFlags  flags 
)

Constructor.

Definition at line 25 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 44 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 35 of file qgsrunnableprovidercreator.cpp.


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