1/************************************************************************ 2 * This file has been generated automatically from * 3 * * 4 * src/core/qgsowsconnection.h * 5 * * 6 * Do not edit manually ! Edit header and run scripts/sipify.pl again * 7 ************************************************************************/ 8 9 10 11 12 13class QgsOwsConnection : QObject 14{ 15%Docstring 16Connections management 17%End 18 19%TypeHeaderCode 20#include "qgsowsconnection.h" 21%End 22 public: 23 24 QgsOwsConnection( const QString &service, const QString &connName ); 25%Docstring 26Constructor 27 28:param service: service name: WMS,WFS,WCS 29:param connName: connection name 30%End 31 32 QString connectionName() const; 33%Docstring 34Returns the connection name. 35 36.. versionadded:: 3.0 37%End 38 39 QString connectionInfo() const; 40%Docstring 41Returns connection info string. 42 43.. versionadded:: 3.0 44%End 45 46 QString service() const; 47%Docstring 48Returns a string representing the service type, e.g. "WMS". 49 50.. versionadded:: 3.0 51%End 52 53 QgsDataSourceUri uri() const; 54%Docstring 55Returns the connection uri. 56%End 57 58 static QgsDataSourceUri &addWmsWcsConnectionSettings( QgsDataSourceUri &uri, const QString &settingsKey ); 59%Docstring 60Adds uri parameters relating to the settings for a WMS or WCS connection to a :py:class:`QgsDataSourceUri` ``uri``. 61Connection settings are taken from the specified QSettings ``settingsKey``. 62 63.. versionadded:: 3.0 64%End 65 66 static QgsDataSourceUri &addWfsConnectionSettings( QgsDataSourceUri &uri, const QString &settingsKey ); 67%Docstring 68Adds uri parameters relating to the settings for a WFS connection to a :py:class:`QgsDataSourceUri` ``uri``. 69Connection settings are taken from the specified QSettings ``settingsKey``. 70 71.. versionadded:: 3.0 72%End 73 74 static QStringList connectionList( const QString &service ); 75%Docstring 76Returns the list of connections for the specified service 77%End 78 79 static void deleteConnection( const QString &service, const QString &name ); 80%Docstring 81Deletes the connection for the specified service with the specified name 82%End 83 84 static QString selectedConnection( const QString &service ); 85%Docstring 86Retrieves the selected connection for the specified service 87%End 88 static void setSelectedConnection( const QString &service, const QString &name ); 89%Docstring 90Marks the specified connection for the specified service as selected 91%End 92 93 protected: 94 95}; 96 97 98/************************************************************************ 99 * This file has been generated automatically from * 100 * * 101 * src/core/qgsowsconnection.h * 102 * * 103 * Do not edit manually ! Edit header and run scripts/sipify.pl again * 104 ************************************************************************/ 105