16#ifndef QGSFILEBASEDDATAITEMPROVIDER_H
17#define QGSFILEBASEDDATAITEMPROVIDER_H
107 QList< QgsProviderSublayerDetails > mSublayers;
153 bool canAddVectorLayers()
const;
164 QgsAbstractDatabaseProviderConnection::Capabilities databaseConnectionCapabilities()
const;
172 Qgis::DatabaseProviderConnectionCapabilities2 databaseConnectionCapabilities2()
const;
176 QList< QgsProviderSublayerDetails> mSublayers;
177 mutable bool mHasCachedCapabilities =
false;
178 mutable QgsAbstractDatabaseProviderConnection::Capabilities mCachedCapabilities;
179 mutable Qgis::DatabaseProviderConnectionCapabilities2 mCachedCapabilities2;
180 mutable bool mHasCachedDropSupport =
false;
181 mutable bool mCachedSupportsDrop =
false;
198 QString
name()
override;
199 int capabilities()
const override;
201 bool handlesDirectoryPath(
const QString &path )
override;
BrowserLayerType
Browser item layer types.
The QgsAbstractDatabaseProviderConnection class provides common functionality for DB based connection...
A Collection: logical collection of layers or subcollections, e.g.
This is the interface for those who want to add custom data items to the browser tree.
Base class for all items in the model.
virtual QVector< QgsDataItem * > createChildren()
Create children.
QString name() const
Returns the name of the item (the displayed text for the item).
A data item provider for file based data sources.
A data collection item for grouping of the content in file based data collections (e....
A data collection item for file based data collections (e.g.
Item that represents a layer that can be opened with one of the providers.
QgsAbstractDatabaseProviderConnection * databaseConnection() const override
For data items that represent a DB connection or one of its children, this method returns a connectio...
bool hasDragEnabled() const override
Returns true if the item may be dragged.
QgsMimeDataUtils::UriList mimeUris() const override
Returns mime URIs for the data item, most data providers will only return a single URI but some data ...
virtual QString layerName() const
QList< QgsMimeDataUtils::Uri > UriList
Contains details about a sub layer available from a dataset.
A generic data item for file based layers.