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