QGIS/python/core/qgsowsconnection.sip
2016-06-02 13:36:08 +02:00

37 lines
1.2 KiB
Plaintext

class QgsOWSConnection : QObject
{
%TypeHeaderCode
#include <qgsowsconnection.h>
%End
public:
/**
* Constructor
* @param theService service name: WMS,WFS,WCS
* @param theConnName connection name
*/
QgsOWSConnection( const QString & theService, const QString & theConnName );
//! Destructor
~QgsOWSConnection();
/** Returns the list of connections for the specified service */
static QStringList connectionList( const QString & theService );
/** Deletes the connection for the specified service with the specified name */
static void deleteConnection( const QString & theService, const QString & name );
/** Retreives the selected connection for the specified service */
static QString selectedConnection( const QString & theService );
/** Marks the specified connection for the specified service as selected */
static void setSelectedConnection( const QString & theService, const QString & name );
QString mConnName;
/** Returns the connection uri */
QgsDataSourceURI uri() const;
QString mConnectionInfo;
//! @deprecated use mConnectionInfo instead
QString connectionInfo() /Deprecated/;
};