2017-05-14 09:48:41 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsowsconnection.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-19 11:45:47 +10:00
|
|
|
class QgsOwsConnection : QObject
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
Connections management
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsowsconnection.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2014-10-21 23:01:20 +02:00
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
QgsOwsConnection( const QString &service, const QString &connName );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param service: service name: WMS,WFS,WCS
|
|
|
|
:param connName: connection name
|
2017-05-14 09:48:41 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-09-12 13:08:51 +10:00
|
|
|
QString connectionName() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the connection name.
|
|
|
|
|
2017-09-12 13:08:51 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString connectionInfo() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns connection info string.
|
|
|
|
|
2017-09-12 13:08:51 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
QString service() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a string representing the service type, e.g. "WMS".
|
|
|
|
|
2017-09-12 13:08:51 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsDataSourceUri uri() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the connection uri.
|
2017-09-12 13:08:51 +10:00
|
|
|
%End
|
|
|
|
|
2017-09-12 13:47:46 +10:00
|
|
|
static QgsDataSourceUri &addWmsWcsConnectionSettings( QgsDataSourceUri &uri, const QString &settingsKey );
|
|
|
|
%Docstring
|
2017-12-19 11:43:52 -04:00
|
|
|
Adds uri parameters relating to the settings for a WMS or WCS connection to a :py:class:`QgsDataSourceUri` ``uri``.
|
2017-12-15 10:36:55 -04:00
|
|
|
Connection settings are taken from the specified QSettings ``settingsKey``.
|
|
|
|
|
2017-09-12 13:47:46 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
static QgsDataSourceUri &addWfsConnectionSettings( QgsDataSourceUri &uri, const QString &settingsKey );
|
|
|
|
%Docstring
|
2017-12-19 11:43:52 -04:00
|
|
|
Adds uri parameters relating to the settings for a WFS connection to a :py:class:`QgsDataSourceUri` ``uri``.
|
2017-12-15 10:36:55 -04:00
|
|
|
Connection settings are taken from the specified QSettings ``settingsKey``.
|
|
|
|
|
2017-09-12 13:47:46 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
static QStringList connectionList( const QString &service );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the list of connections for the specified service
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
static void deleteConnection( const QString &service, const QString &name );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Deletes the connection for the specified service with the specified name
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-03 07:45:22 +02:00
|
|
|
static QString selectedConnection( const QString &service );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Retrieves the selected connection for the specified service
|
|
|
|
%End
|
2017-05-03 07:45:22 +02:00
|
|
|
static void setSelectedConnection( const QString &service, const QString &name );
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Marks the specified connection for the specified service as selected
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
protected:
|
2017-09-12 13:08:51 +10:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-05-14 09:48:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsowsconnection.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|