QGIS/python/core/qgsowsconnection.sip

35 lines
1.0 KiB
Plaintext
Raw Normal View History

class QgsOwsConnection : QObject
{
%TypeHeaderCode
#include <qgsowsconnection.h>
%End
public:
/**
* Constructor
* @param service service name: WMS,WFS,WCS
* @param connName connection name
*/
QgsOwsConnection( const QString &service, const QString &connName );
//! Destructor
~QgsOwsConnection();
2016-05-30 19:35:23 +02:00
/** Returns the list of connections for the specified service */
static QStringList connectionList( const QString &service );
2016-05-30 19:35:23 +02:00
/** Deletes the connection for the specified service with the specified name */
static void deleteConnection( const QString &service, const QString &name );
/** Retrieves the selected connection for the specified service */
static QString selectedConnection( const QString &service );
2016-05-30 19:35:23 +02:00
/** Marks the specified connection for the specified service as selected */
static void setSelectedConnection( const QString &service, const QString &name );
QString mConnName;
2016-05-30 19:35:23 +02:00
/** Returns the connection uri */
QgsDataSourceUri uri() const;
QString mConnectionInfo;
};