16#ifndef QGSSTACCONNECTION_H
17#define QGSSTACCONNECTION_H
29using namespace Qt::StringLiterals;
68 void store(
const QString &name )
const override;
69 void remove(
const QString &name )
const override;
@ 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.
QString uri() const
Returns the connection data source URI string representation.
A string list settings entry.
A named list tree node for the settings tree to help organizing and introspecting the tree.
static QgsSettingsTreeNode * sTreeConnections
static void setSelectedConnection(const QString &connName)
Saves name of the last used connection.
static QString selectedConnection()
Returns last used connection.
static Data decodedUri(const QString &uri)
Decodes connection string to a data structure.
PRIVATE QgsStacConnection(const QString &name)
Constructor for QgsStacConnection, using the stored settings with the specified connection name.
void remove(const QString &name) const override
Deletes the connection from the settings.
QgsStacConnection(const QString &uri, const QVariantMap &configuration)
Constructor for QgsStacConnection, using the a specific connection details.
static void addConnection(const QString &name, const Data &conn)
Adds a new connection to the list.
void store(const QString &name) const override
Stores the connection in the settings.
static QStringList connectionList()
Returns list of existing connections, unless the hidden ones.
static Data connection(const QString &name)
Returns connection details.
static QString encodedUri(const Data &conn)
Returns connection data encoded as a string.
static void deleteConnection(const QString &name)
Removes a connection from the list.
Represents decoded data of a connection.
QgsHttpHeaders httpHeaders
HTTP headers.
QString username
HTTP Basic username.
QString authCfg
Authentication configuration id.
QString password
HTTP Basic password.