QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
A data item provider for file based data sources. More...
#include <qgsfilebaseddataitemprovider.h>
Public Member Functions | |
int | capabilities () const override |
Returns combination of flags from QgsDataProvider::DataCapabilities. More... | |
QgsDataItem * | createDataItem (const QString &path, QgsDataItem *parentItem) override |
Create a new instance of QgsDataItem (or nullptr ) for given path and parent item. More... | |
bool | handlesDirectoryPath (const QString &path) override |
Returns true if the provider will handle the directory at the specified path. More... | |
QString | name () override |
Human-readable name of the provider name. More... | |
Public Member Functions inherited from QgsDataItemProvider | |
virtual | ~QgsDataItemProvider ()=default |
virtual int | capabilities () const =0 |
Returns combination of flags from QgsDataProvider::DataCapabilities. More... | |
virtual QgsDataItem * | createDataItem (const QString &path, QgsDataItem *parentItem)=0 |
Create a new instance of QgsDataItem (or nullptr ) for given path and parent item. More... | |
virtual QVector< QgsDataItem * > | createDataItems (const QString &path, QgsDataItem *parentItem) |
Create a vector of instances of QgsDataItem (or nullptr ) for given path and parent item. More... | |
virtual QString | dataProviderKey () const |
Returns the data provider key (if the data item provider is associated with a data provider), the default implementation returns an empty string. More... | |
virtual bool | handlesDirectoryPath (const QString &path) |
Returns true if the provider will handle the directory at the specified path. More... | |
virtual QString | name ()=0 |
Human-readable name of the provider name. More... | |
A data item provider for file based data sources.
This is a generic data item provider, which creates data items for file based data sources from registered providers (using the QgsProviderRegistry::querySublayers() API).
Definition at line 154 of file qgsfilebaseddataitemprovider.h.
|
overridevirtual |
Returns combination of flags from QgsDataProvider::DataCapabilities.
Implements QgsDataItemProvider.
Definition at line 415 of file qgsfilebaseddataitemprovider.cpp.
|
overridevirtual |
Create a new instance of QgsDataItem (or nullptr
) for given path and parent item.
Caller takes responsibility of deleting created items.
Implements QgsDataItemProvider.
Definition at line 420 of file qgsfilebaseddataitemprovider.cpp.
|
overridevirtual |
Returns true
if the provider will handle the directory at the specified path.
If the provider indicates that it will handle the directory, the default creation and population of directory items for the path will be avoided and it is left to the provider to correctly populate relevant entries for the path.
The default implementation returns false
for all paths.
Reimplemented from QgsDataItemProvider.
Definition at line 539 of file qgsfilebaseddataitemprovider.cpp.
|
overridevirtual |
Human-readable name of the provider name.
Implements QgsDataItemProvider.
Definition at line 410 of file qgsfilebaseddataitemprovider.cpp.