16#ifndef QGSDATAITEMPROVIDER_H
17#define QGSDATAITEMPROVIDER_H
50 virtual QString
name() = 0;
73 virtual QVector<QgsDataItem *> createDataItems(
const QString &path,
QgsDataItem *parentItem );
85 virtual bool handlesDirectoryPath(
const QString &path );
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
This is the interface for those who want to add custom data items to the browser tree.
virtual QString dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
virtual ~QgsDataItemProvider()=default
virtual QString name()=0
Human-readable name of the provider name.
virtual QgsDataItem * createDataItem(const QString &path, QgsDataItem *parentItem)=0
Create a new instance of QgsDataItem (or nullptr) for given path and parent item.
virtual Qgis::DataItemProviderCapabilities capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
Base class for all items in the model.
bool handlesDirectoryPath_t(const QString &path)
handlesDirectoryPath function