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
|
|
|
|
* @param theService service name: WMS,WFS,WCS
|
|
|
|
* @param theConnName connection name
|
|
|
|
*/
|
2016-07-19 11:45:47 +10:00
|
|
|
QgsOwsConnection( const QString & theService, const QString & theConnName );
|
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 */
|
2012-09-24 02:28:15 +02:00
|
|
|
static QStringList connectionList( const QString & theService );
|
|
|
|
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Deletes the connection for the specified service with the specified name */
|
2012-09-24 02:28:15 +02:00
|
|
|
static void deleteConnection( const QString & theService, const QString & name );
|
|
|
|
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Retreives the selected connection for the specified service */
|
2012-09-24 02:28:15 +02:00
|
|
|
static QString selectedConnection( const QString & theService );
|
2016-05-30 19:35:23 +02:00
|
|
|
/** Marks the specified connection for the specified service as selected */
|
2012-09-24 02:28:15 +02:00
|
|
|
static void setSelectedConnection( const QString & theService, const QString & name );
|
|
|
|
|
|
|
|
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
|
|
|
};
|