QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Represents connections to SensorThings data sources. More...
#include <qgssensorthingsconnection.h>
Classes | |
struct | Data |
Represents decoded data of a SensorThings connection. More... | |
Public Member Functions | |
PRIVATE | QgsSensorThingsProviderConnection (const QString &name) |
Constructor for QgsSensorThingsProviderConnection, using the stored settings with the specified connection name. | |
QgsSensorThingsProviderConnection (const QString &uri, const QVariantMap &configuration) | |
Constructor for QgsSensorThingsProviderConnection, using the a specific connection uri and configuration. | |
void | remove (const QString &name) const final |
Deletes the connection from the settings. | |
void | store (const QString &name) const final |
Stores the connection in the settings. | |
Public Member Functions inherited from QgsAbstractProviderConnection | |
QgsAbstractProviderConnection (const QString &name) | |
Creates a new connection with name by reading its configuration from the settings. | |
QgsAbstractProviderConnection (const QString &uri, const QVariantMap &configuration) | |
Creates a new connection from the given uri and configuration. | |
virtual | ~QgsAbstractProviderConnection ()=default |
QVariantMap | configuration () const |
Returns the connection configuration parameters. | |
virtual QIcon | icon () const |
Returns an icon representing the connection. | |
void | setConfiguration (const QVariantMap &configuration) |
Sets the connection configuration. | |
void | setUri (const QString &uri) |
Sets the connection data source URI to uri. | |
QString | uri () const |
Returns the connection data source URI string representation. | |
Static Public Member Functions | |
static void | addConnection (const QString &name, const Data &connection) |
Stores a new connection, under the specified connection name. | |
static Data | connection (const QString &name) |
Returns connection details for the stored connection with the specified name. | |
static QStringList | connectionList () |
Returns a list of the stored connection names. | |
static Data | decodedUri (const QString &uri) |
Returns a connection uri decoded to a data structure. | |
static QString | encodedLayerUri (const Data &data) |
Returns connection data encoded as a string containing a URI for a SensorThings vector data provider. | |
static QString | encodedUri (const Data &data) |
Returns connection data encoded as a string. | |
static QString | selectedConnection () |
Returns the name of the last used connection. | |
static void | setSelectedConnection (const QString &name) |
Stores the name of the last used connection. | |
Represents connections to SensorThings data sources.
Definition at line 42 of file qgssensorthingsconnection.h.
QgsSensorThingsProviderConnection::QgsSensorThingsProviderConnection | ( | const QString & | name | ) |
Constructor for QgsSensorThingsProviderConnection, using the stored settings with the specified connection name.
Definition at line 33 of file qgssensorthingsconnection.cpp.
QgsSensorThingsProviderConnection::QgsSensorThingsProviderConnection | ( | const QString & | uri, |
const QVariantMap & | configuration | ||
) |
Constructor for QgsSensorThingsProviderConnection, using the a specific connection uri and configuration.
Definition at line 40 of file qgssensorthingsconnection.cpp.
|
static |
Stores a new connection, under the specified connection name.
Definition at line 66 of file qgssensorthingsconnection.cpp.
|
static |
Returns connection details for the stored connection with the specified name.
Definition at line 75 of file qgssensorthingsconnection.cpp.
|
static |
Returns a list of the stored connection names.
Definition at line 92 of file qgssensorthingsconnection.cpp.
|
static |
Returns a connection uri decoded to a data structure.
Definition at line 113 of file qgssensorthingsconnection.cpp.
|
static |
Returns connection data encoded as a string containing a URI for a SensorThings vector data provider.
Definition at line 128 of file qgssensorthingsconnection.cpp.
|
static |
Returns connection data encoded as a string.
Definition at line 97 of file qgssensorthingsconnection.cpp.
|
finalvirtual |
Deletes the connection from the settings.
Implements QgsAbstractProviderConnection.
Definition at line 51 of file qgssensorthingsconnection.cpp.
|
static |
Returns the name of the last used connection.
Definition at line 56 of file qgssensorthingsconnection.cpp.
|
static |
Stores the name of the last used connection.
Definition at line 61 of file qgssensorthingsconnection.cpp.
|
finalvirtual |
Stores the connection in the settings.
name | the name under which the connection will be stored |
Implements QgsAbstractProviderConnection.
Definition at line 45 of file qgssensorthingsconnection.cpp.