QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
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 &service, const QString &connName) |
Adds uri parameters relating to the settings for a WFS connection to a QgsDataSourceUri uri. More... | |
static Q_DECL_DEPRECATED 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 &service, const QString &connName) |
Adds uri parameters relating to the settings for a WMS or WCS connection to a QgsDataSourceUri uri. More... | |
static Q_DECL_DEPRECATED 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... | |
Static Public Attributes | |
static const QgsSettingsEntryString * | settingsAuthCfg = new QgsSettingsEntryString( QStringLiteral( "authcfg" ), sTreeOwsConnections ) |
static const QgsSettingsEntryEnumFlag< Qgis::DpiMode > * | settingsDpiMode = new QgsSettingsEntryEnumFlag<Qgis::DpiMode>( QStringLiteral( "dpi-mode" ), sTreeOwsConnections, Qgis::DpiMode::All, QString(), Qgis::SettingsOption::SaveEnumFlagAsInt ) |
static const QgsSettingsEntryVariantMap * | settingsHeaders = new QgsSettingsEntryVariantMap( QStringLiteral( "http-header" ), sTreeOwsConnections ) |
static const QgsSettingsEntryBool * | settingsIgnoreAxisOrientation = new QgsSettingsEntryBool( QStringLiteral( "ignore-axis-orientation" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryBool * | settingsIgnoreGetFeatureInfoURI = new QgsSettingsEntryBool( QStringLiteral( "ignore-get-feature-info-uri" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryBool * | settingsIgnoreGetMapURI = new QgsSettingsEntryBool( QStringLiteral( "ignore-get-map-uri" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryBool * | settingsInvertAxisOrientation = new QgsSettingsEntryBool( QStringLiteral( "invert-axis-orientation" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryString * | settingsMaxNumFeatures = new QgsSettingsEntryString( QStringLiteral( "max-num-features" ), sTreeOwsConnections ) |
static const QgsSettingsEntryString * | settingsPagesize = new QgsSettingsEntryString( QStringLiteral( "page-size" ), sTreeOwsConnections ) |
static const QgsSettingsEntryBool * | settingsPagingEnabled = new QgsSettingsEntryBool( QStringLiteral( "paging-enabled" ), sTreeOwsConnections, true ) |
static const QgsSettingsEntryString * | settingsPassword = new QgsSettingsEntryString( QStringLiteral( "password" ), sTreeOwsConnections ) |
static const QgsSettingsEntryBool * | settingsPreferCoordinatesForWfsT11 = new QgsSettingsEntryBool( QStringLiteral( "prefer-coordinates-for-wfs-T11" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryBool * | settingsReportedLayerExtents = new QgsSettingsEntryBool( QStringLiteral( "reported-layer-extents" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryBool * | settingsSmoothPixmapTransform = new QgsSettingsEntryBool( QStringLiteral( "smooth-pixmap-transform" ), sTreeOwsConnections, false ) |
static const QgsSettingsEntryEnumFlag< Qgis::TilePixelRatio > * | settingsTilePixelRatio = new QgsSettingsEntryEnumFlag<Qgis::TilePixelRatio>( QStringLiteral( "tile-pixel-ratio" ), sTreeOwsConnections, Qgis::TilePixelRatio::Undefined, QString(), Qgis::SettingsOption::SaveEnumFlagAsInt ) |
static const QgsSettingsEntryString * | settingsUrl = new QgsSettingsEntryString( QStringLiteral( "url" ), sTreeOwsConnections, QString() ) |
static const QgsSettingsEntryString * | settingsUsername = new QgsSettingsEntryString( QStringLiteral( "username" ), sTreeOwsConnections ) |
static const QgsSettingsEntryString * | settingsVersion = new QgsSettingsEntryString( QStringLiteral( "version" ), sTreeOwsConnections, QString() ) |
static QgsSettingsTreeNamedListNode * | sTreeOwsConnections = sTtreeOwsServices->createNamedListNode( QStringLiteral( "connections" ), Qgis::SettingsTreeNodeOption::NamedListSelectedItemSetting ) |
static QgsSettingsTreeNamedListNode * | sTtreeOwsServices = QgsSettingsTree::sTreeConnections->createNamedListNode( QStringLiteral( "ows" ) ) |
Protected Attributes | |
QgsDataSourceUri | mUri |
Connections management.
Definition at line 89 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 77 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 servcie and connName
Definition at line 240 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 218 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 servcie and connName
Definition at line 184 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 145 of file qgsowsconnection.cpp.
QString QgsOwsConnection::connectionInfo | ( | ) | const |
|
static |
Returns the list of connections for the specified service.
Definition at line 259 of file qgsowsconnection.cpp.
QString QgsOwsConnection::connectionName | ( | ) | const |
|
static |
Deletes the connection for the specified service with the specified name.
Definition at line 301 of file qgsowsconnection.cpp.
|
static |
Retrieves the selected connection for the specified service.
Definition at line 264 of file qgsowsconnection.cpp.
QString QgsOwsConnection::service | ( | ) | const |
Returns a string representing the service type, e.g.
"WMS".
Definition at line 135 of file qgsowsconnection.cpp.
|
static |
Marks the specified connection for the specified service as selected.
Definition at line 269 of file qgsowsconnection.cpp.
QgsDataSourceUri QgsOwsConnection::uri | ( | ) | const |
Returns the connection uri.
Definition at line 140 of file qgsowsconnection.cpp.
|
protected |
Definition at line 192 of file qgsowsconnection.h.
|
static |
Definition at line 116 of file qgsowsconnection.h.
|
static |
Definition at line 106 of file qgsowsconnection.h.
|
static |
Definition at line 100 of file qgsowsconnection.h.
|
static |
Definition at line 112 of file qgsowsconnection.h.
|
static |
Definition at line 103 of file qgsowsconnection.h.
|
static |
Definition at line 102 of file qgsowsconnection.h.
|
static |
Definition at line 113 of file qgsowsconnection.h.
|
static |
Definition at line 108 of file qgsowsconnection.h.
|
static |
Definition at line 109 of file qgsowsconnection.h.
|
static |
Definition at line 110 of file qgsowsconnection.h.
|
static |
Definition at line 115 of file qgsowsconnection.h.
|
static |
Definition at line 111 of file qgsowsconnection.h.
|
static |
Definition at line 105 of file qgsowsconnection.h.
|
static |
Definition at line 104 of file qgsowsconnection.h.
|
static |
Definition at line 107 of file qgsowsconnection.h.
|
static |
Definition at line 99 of file qgsowsconnection.h.
|
static |
Definition at line 114 of file qgsowsconnection.h.
|
static |
Definition at line 101 of file qgsowsconnection.h.
|
inlinestatic |
Definition at line 97 of file qgsowsconnection.h.
|
inlinestatic |
Definition at line 96 of file qgsowsconnection.h.