15#ifndef QGSSENSORTHINGSDATAITEMS_H
16#define QGSSENSORTHINGSDATAITEMS_H
30 QgsSensorThingsRootItem(
QgsDataItem *parent, QString name, QString path );
34 QVariant
sortKey()
const override {
return 8; }
43 QgsSensorThingsConnectionItem(
QgsDataItem *parent,
const QString &name,
const QString &path );
55 QgsSensorThingsEntityContainerItem(
QgsDataItem *parent,
const QString &name,
const QString &path,
const QString &entityUri );
63class CORE_EXPORT QgsSensorThingsLayerEntityItem :
public QgsLayerItem
67 QgsSensorThingsLayerEntityItem(
QgsDataItem *parent, QString name, QString path,
const QString &encodedUri,
const QString &provider,
Qgis::BrowserLayerType type );
75 QString
name()
override;
77 Qgis::DataItemProviderCapabilities
capabilities()
const override;
BrowserLayerType
Browser item layer types.
A Collection that represents a root group of connections from a single data provider.
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.
virtual QString dataProviderKey() const
Returns the data provider key (if the data item provider is associated with a data provider),...
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.
virtual QVariant sortKey() const
Returns the sorting key for the item.
virtual QVector< QgsDataItem * > createChildren()
Create children.
virtual bool equal(const QgsDataItem *other)
Returns true if this item is equal to another item (by testing item type and path).
Item that represents a layer that can be opened with one of the providers.