QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Represents connections to tiled scene data sources. More...
#include <qgstiledsceneconnection.h>
Classes | |
struct | Data |
Represents decoded data of a tiled scene connection. More... | |
Public Member Functions | |
PRIVATE | QgsTiledSceneProviderConnection (const QString &name) |
Constructor for QgsTiledSceneProviderConnection, using the stored settings with the specified connection name. | |
QgsTiledSceneProviderConnection (const QString &uri, const QString &provider, const QVariantMap &configuration) | |
Constructor for QgsTiledSceneProviderConnection, using the a specific connection uri, provider name and configuration. | |
QString | providerKey () const |
Returns the data provider associated with the connection. | |
virtual void | remove (const QString &name) const override |
Deletes the connection from the settings. | |
virtual void | store (const QString &name) const override |
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 QgsTiledSceneLayer. | |
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 tiled scene data sources.
Definition at line 42 of file qgstiledsceneconnection.h.
QgsTiledSceneProviderConnection::QgsTiledSceneProviderConnection | ( | const QString & | name | ) |
Constructor for QgsTiledSceneProviderConnection, using the stored settings with the specified connection name.
Definition at line 130 of file qgstiledsceneconnection.cpp.
QgsTiledSceneProviderConnection::QgsTiledSceneProviderConnection | ( | const QString & | uri, |
const QString & | provider, | ||
const QVariantMap & | configuration | ||
) |
Constructor for QgsTiledSceneProviderConnection, using the a specific connection uri, provider name and configuration.
Definition at line 138 of file qgstiledsceneconnection.cpp.
|
static |
Stores a new connection, under the specified connection name.
Definition at line 110 of file qgstiledsceneconnection.cpp.
|
static |
Returns connection details for the stored connection with the specified name.
Definition at line 92 of file qgstiledsceneconnection.cpp.
|
static |
Returns a list of the stored connection names.
Definition at line 87 of file qgstiledsceneconnection.cpp.
|
static |
Returns a connection uri decoded to a data structure.
Definition at line 55 of file qgstiledsceneconnection.cpp.
|
static |
Returns connection data encoded as a string containing a URI for a QgsTiledSceneLayer.
Definition at line 70 of file qgstiledsceneconnection.cpp.
|
static |
Returns connection data encoded as a string.
Definition at line 37 of file qgstiledsceneconnection.cpp.
|
inline |
Returns the data provider associated with the connection.
Definition at line 78 of file qgstiledsceneconnection.h.
|
overridevirtual |
Deletes the connection from the settings.
Implements QgsAbstractProviderConnection.
Definition at line 151 of file qgstiledsceneconnection.cpp.
|
static |
Returns the name of the last used connection.
Definition at line 120 of file qgstiledsceneconnection.cpp.
|
static |
Stores the name of the last used connection.
Definition at line 125 of file qgstiledsceneconnection.cpp.
|
overridevirtual |
Stores the connection in the settings.
name | the name under which the connection will be stored |
Implements QgsAbstractProviderConnection.
Definition at line 144 of file qgstiledsceneconnection.cpp.