QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
The QgsRunnableProviderCreator class is used when reading a project to create asynchronously provider that support asynchronous creation. More...
#include <qgsrunnableprovidercreator.h>
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. | |
QgsDataProvider * | dataProvider () |
Returns the created data provider. | |
void | run () override |
The QgsRunnableProviderCreator class is used when reading a project to create asynchronously provider that support asynchronous creation.
Definition at line 33 of file qgsrunnableprovidercreator.h.
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.
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.
|
signal |
Emitted when a provider is created with isValid set to True when the provider is valid.
|
override |
Definition at line 35 of file qgsrunnableprovidercreator.cpp.