QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
27 , mIncludeSystemTables( includeSystemTables )
41 mFeedback = std::make_unique< QgsFeedback >();
44 if ( mIncludeSystemTables )
bool run() override
Performs the task's operation.
QList< QgsProviderSublayerDetails > querySublayers(const QString &uri, Qgis::SublayerQueryFlags flags=Qgis::SublayerQueryFlags(), QgsFeedback *feedback=nullptr) const
Queries the specified uri and returns a list of any valid sublayers found in the dataset which can be...
~QgsProviderSublayerTask() override
QgsProviderSublayerTask(const QString &uri, bool includeSystemTables=false)
Constructor for QgsProviderSublayerTask, which retrieves sublayer details for the specified uri.
The QgsReadWriteLocker class is a convenience class that simplifies locking and unlocking QReadWriteL...
void cancel() override
Notifies the task that it should terminate.
virtual void cancel()
Notifies the task that it should terminate.
@ CountFeatures
Count features in vector sublayers.
QList< QgsProviderSublayerDetails > results() const
Returns the sublayer details as calculated by the task.
@ ResolveGeometryType
Attempt to resolve the geometry type for vector sublayers.
Flags flags() const
Returns the flags associated with the task.
static QgsProviderRegistry * instance(const QString &pluginPath=QString())
Means of accessing canonical single instance.
@ IncludeSystemTables
Include system or internal tables (these are not included by default)
Abstract base class for long running background tasks. Tasks can be controlled directly,...