16#ifndef QGSSENSORTHINGSCONNECTION_H
17#define QGSSENSORTHINGSCONNECTION_H
69 void store(
const QString &name )
const final;
70 void remove(
const QString &name )
const final;
@ NamedListSelectedItemSetting
Creates a setting to store which is the current item.
QVariantMap configuration() const
Returns the connection configuration parameters.
QgsAbstractProviderConnection(const QString &name)
Creates a new connection with name by reading its configuration from the settings.
virtual void remove(const QString &name) const =0
Deletes the connection from the settings.
virtual void store(const QString &name) const =0
Stores the connection in the settings.
QString uri() const
Returns the connection data source URI string representation.
static QString selectedConnection()
Returns the name of the last used connection.
static QString encodedUri(const Data &data)
Returns connection data encoded as a string.
static QString encodedLayerUri(const Data &data)
Returns connection data encoded as a string containing a URI for a SensorThings vector data provider.
static void setSelectedConnection(const QString &name)
Stores the name of the last used connection.
static QStringList connectionList()
Returns a list of the stored connection names.
static Data connection(const QString &name)
Returns connection details for the stored connection with the specified name.
PRIVATE QgsSensorThingsProviderConnection(const QString &name)
Constructor for QgsSensorThingsProviderConnection, using the stored settings with the specified conne...
static Data decodedUri(const QString &uri)
Returns a connection uri decoded to a data structure.
static void addConnection(const QString &name, const Data &connection)
Stores a new connection, under the specified connection name.
A boolean settings entry.
A template class for enum and flag settings entry.
An integer settings entry.
A string list settings entry.
A named list tree node for the settings tree to help organizing and introspecting the tree.
static QgsSettingsTreeNode * sTreeConnections
Represents decoded data of a SensorThings connection.
QString password
HTTP Basic password.
QString username
HTTP Basic username.
QgsHttpHeaders httpHeaders
HTTP headers.
QString authCfg
Authentication configuration id.