2016-07-19 11:45:47 +10:00
|
|
|
class QgsOwsConnection : QObject
|
2012-09-24 02:28:15 +02:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsowsconnection.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* Constructor
|
2017-02-21 18:14:58 +01:00
|
|
|
* @param service service name: WMS,WFS,WCS
|
|
|
|
* @param connName connection name
|
2012-09-24 02:28:15 +02:00
|
|
|
*/
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsOwsConnection( const QString &service, const QString &connName );
|
2014-10-21 23:01:20 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
//! Destructor
|
2016-07-19 11:45:47 +10:00
|
|
|
~QgsOwsConnection();
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Returns the list of connections for the specified service */
|
2017-05-03 07:45:22 +02:00
|
|
|
static QStringList connectionList( const QString &service );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Deletes the connection for the specified service with the specified name */
|
2017-05-03 07:45:22 +02:00
|
|
|
static void deleteConnection( const QString &service, const QString &name );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-01-16 15:13:30 +01:00
|
|
|
/** Retrieves the selected connection for the specified service */
|
2017-05-03 07:45:22 +02:00
|
|
|
static QString selectedConnection( const QString &service );
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Marks the specified connection for the specified service as selected */
|
2017-05-03 07:45:22 +02:00
|
|
|
static void setSelectedConnection( const QString &service, const QString &name );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
|
|
|
QString mConnName;
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Returns the connection uri */
|
2016-08-04 09:10:08 +02:00
|
|
|
QgsDataSourceUri uri() const;
|
2014-10-21 23:01:20 +02:00
|
|
|
QString mConnectionInfo;
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|