QGIS API Documentation
3.6.0-Noosa (5873452)
|
Connections management. More...
#include <qgsowsconnection.h>
Public Member Functions | |
QgsOwsConnection (const QString &service, const QString &connName) | |
Constructor. More... | |
QString | connectionInfo () const |
Returns connection info string. More... | |
QString | connectionName () const |
Returns the connection name. More... | |
QString | service () const |
Returns a string representing the service type, e.g. More... | |
QgsDataSourceUri | uri () const |
Returns the connection uri. More... | |
Static Public Member Functions | |
static QgsDataSourceUri & | addWfsConnectionSettings (QgsDataSourceUri &uri, const QString &settingsKey) |
Adds uri parameters relating to the settings for a WFS connection to a QgsDataSourceUri uri. More... | |
static QgsDataSourceUri & | addWmsWcsConnectionSettings (QgsDataSourceUri &uri, const QString &settingsKey) |
Adds uri parameters relating to the settings for a WMS or WCS connection to a QgsDataSourceUri uri. More... | |
static QStringList | connectionList (const QString &service) |
Returns the list of connections for the specified service. More... | |
static void | deleteConnection (const QString &service, const QString &name) |
Deletes the connection for the specified service with the specified name. More... | |
static QString | selectedConnection (const QString &service) |
Retrieves the selected connection for the specified service. More... | |
static void | setSelectedConnection (const QString &service, const QString &name) |
Marks the specified connection for the specified service as selected. More... | |
Protected Attributes | |
QgsDataSourceUri | mUri |
Connections management.
Definition at line 35 of file qgsowsconnection.h.
QgsOwsConnection::QgsOwsConnection | ( | const QString & | service, |
const QString & | connName | ||
) |
Constructor.
service | service name: WMS,WFS,WCS |
connName | connection name |
Definition at line 37 of file qgsowsconnection.cpp.
|
static |
Adds uri parameters relating to the settings for a WFS connection to a QgsDataSourceUri uri.
Connection settings are taken from the specified QSettings settingsKey.
Definition at line 139 of file qgsowsconnection.cpp.
|
static |
Adds uri parameters relating to the settings for a WMS or WCS connection to a QgsDataSourceUri uri.
Connection settings are taken from the specified QSettings settingsKey.
Definition at line 108 of file qgsowsconnection.cpp.
QString QgsOwsConnection::connectionInfo | ( | ) | const |
|
static |
Returns the list of connections for the specified service.
Definition at line 159 of file qgsowsconnection.cpp.
QString QgsOwsConnection::connectionName | ( | ) | const |
|
static |
Deletes the connection for the specified service with the specified name.
Definition at line 192 of file qgsowsconnection.cpp.
|
static |
Retrieves the selected connection for the specified service.
Definition at line 166 of file qgsowsconnection.cpp.
QString QgsOwsConnection::service | ( | ) | const |
Returns a string representing the service type, e.g.
"WMS".
Definition at line 98 of file qgsowsconnection.cpp.
|
static |
Marks the specified connection for the specified service as selected.
Definition at line 172 of file qgsowsconnection.cpp.
QgsDataSourceUri QgsOwsConnection::uri | ( | ) | const |
Returns the connection uri.
Definition at line 103 of file qgsowsconnection.cpp.
|
protected |
Definition at line 97 of file qgsowsconnection.h.