QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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 24 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 43 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 34 of file qgsrunnableprovidercreator.cpp.