16 #ifndef QGSDATAITEMPROVIDER_H 17 #define QGSDATAITEMPROVIDER_H 19 #include "qgis_core.h" 50 virtual QString name() = 0;
53 virtual int capabilities() = 0;
65 virtual QVector<QgsDataItem *>
createDataItems(
const QString &path,
QgsDataItem *parentItem ) { Q_UNUSED( path ) Q_UNUSED( parentItem );
return QVector<QgsDataItem *>(); }
78 virtual bool handlesDirectoryPath(
const QString &path );
81 #endif // QGSDATAITEMPROVIDER_H
virtual QVector< QgsDataItem * > createDataItems(const QString &path, QgsDataItem *parentItem)
Create a vector of instances of QgsDataItem (or nullptr) for given path and parent item...
bool handlesDirectoryPath_t(const QString &path)
handlesDirectoryPath function
Base class for all items in the model.
This is the interface for those who want to add custom data items to the browser tree.