16#ifndef QGSSTACOBJECT_H
17#define QGSSTACOBJECT_H
43 sipType = sipType_QgsStacItem;
47 sipType = sipType_QgsStacCollection;
51 sipType = sipType_QgsStacCatalog;
66 QgsStacObject(
const QString &
id,
const QString &version,
const QVector< QgsStacLink > &
links );
93 void setId(
const QString &
id );
96 QVector< QgsStacLink >
links()
const;
StacObjectType
Available types of stac objects.
@ Unknown
Type is not known.
Stores data associated with a STAC Catalog.
Stores data associated with a STAC Collection.
Stores data associated with a STAC Item.
Abstract base class for storing STAC objects.
QString stacVersion() const
Returns the STAC version the object implements.
QString id() const
Id of the STAC object.
QStringList stacExtensions() const
Returns the list of extensions the STAC object implements.
QString parentUrl() const
Returns the url stored in the object's "parent" link.
QString rootUrl() const
Returns the url stored in the object's "root" link.
virtual QString toHtml() const =0
Returns an HTML representation of the STAC object.
void setStacExtensions(const QStringList &stacExtensions)
Sets the list of stacExtensions the object implements.
QVector< QgsStacLink > mLinks
QgsStacObject()=delete
Default constructor is used for creating invalid objects.
void setId(const QString &id)
Sets the id for the STAC object.
void setStacVersion(const QString &stacVersion)
Sets the STAC version the object implements.
void setLinks(const QVector< QgsStacLink > &links)
Sets the STAC links included in the object.
virtual ~QgsStacObject()=default
Destructor.
Qgis::StacObjectType mType
QString url() const
Returns the url stored in the object's "self" link.
QStringList mStacExtensions
virtual Qgis::StacObjectType type() const =0
Returns the Type of the STAC object.
QVector< QgsStacLink > links() const
Returns the STAC links included in the object.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Q_DECLARE_METATYPE(QgsDatabaseQueryLogEntry)