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
|
|
|
|
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
|
|
|
|
Constructor
|
|
|
|
\param service service name: WMS,WFS,WCS
|
|
|
|
\param connName connection name
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
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
|
|
|
|
:rtype: list of str
|
|
|
|
%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
|
|
|
|
:rtype: str
|
|
|
|
%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
|
|
|
|
|
|
|
QString mConnName;
|
2016-08-04 09:10:08 +02:00
|
|
|
QgsDataSourceUri uri() const;
|
2017-05-14 09:48:41 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the connection uri
|
|
|
|
:rtype: QgsDataSourceUri
|
|
|
|
%End
|
2014-10-21 23:01:20 +02:00
|
|
|
QString mConnectionInfo;
|
|
|
|
|
2017-05-14 09:48:41 +02:00
|
|
|
protected:
|
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 *
|
|
|
|
************************************************************************/
|