QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSFILEBASEDDATAITEMPROVIDER_H
17 #define QGSFILEBASEDDATAITEMPROVIDER_H
19 #include "qgis_core.h"
100 QList< QgsProviderSublayerDetails> mSublayers;
117 QString
name()
override;
123 #endif // QGSFILEBASEDDATAITEMPROVIDER_H
virtual int capabilities() const =0
Returns combination of flags from QgsDataProvider::DataCapabilities.
A Collection: logical collection of layers or subcollections, e.g. GRASS location/mapset,...
virtual bool handlesDirectoryPath(const QString &path)
Returns true if the provider will handle the directory at the specified path.
A generic data item for file based layers.
virtual QgsDataItem * createDataItem(const QString &path, QgsDataItem *parentItem)=0
Create a new instance of QgsDataItem (or nullptr) for given path and parent item.
QList< QgsMimeDataUtils::Uri > UriList
BrowserLayerType
Browser item layer types.
virtual QString name()=0
Human-readable name of the provider name.
A data collection item for file based data collections (e.g. NetCDF files).
QgsAbstractDatabaseProviderConnection * databaseConnection() const override
For data items that represent a DB connection or one of its children, this method returns a connectio...
This is the interface for those who want to add custom data items to the browser tree.
Contains details about a sub layer available from a dataset.
virtual bool hasDragEnabled() const
Returns true if the item may be dragged.
A data item provider for file based data sources.
Item that represents a layer that can be opened with one of the providers.
virtual QgsMimeDataUtils::UriList mimeUris() const
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
virtual QString layerName() const
Base class for all items in the model.
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
virtual QVector< QgsDataItem * > createChildren()
Create children.