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 QVariantMap &entityUriParts,
60 QVariantMap mEntityUriParts;
62 QString mConnectionName;
66class CORE_EXPORT QgsSensorThingsLayerEntityItem :
public QgsLayerItem
70 QgsSensorThingsLayerEntityItem(
QgsDataItem *parent,
const QString &name,
const QString &path,
73 QString layerName() const final;
75 QVariantMap mUriParts;
76 Qgis::SensorThingsEntity mEntityType =
Qgis::SensorThingsEntity::Invalid;
77 QString mConnectionName;
84 QString
name()
override;
85 QString dataProviderKey()
const override;
The Qgis class provides global constants for use throughout the application.
QFlags< DataItemProviderCapability > DataItemProviderCapabilities
Capabilities for data item providers.
SensorThingsEntity
OGC SensorThings API entity types.
@ Invalid
An invalid/unknown entity.
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.
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.
QString name() const
Returns the name of the item (the displayed text for the item).
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.