QGIS/python/core/qgsowsconnection.sip
Nyall Dawson 9cc9d424ce Add extra check for deprecations to documentation test
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.

It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.

Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00

32 lines
845 B
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();
static QStringList connectionList( const QString & theService );
static void deleteConnection( const QString & theService, const QString & name );
static QString selectedConnection( const QString & theService );
static void setSelectedConnection( const QString & theService, const QString & name );
QString mConnName;
QgsDataSourceURI uri();
QString mConnectionInfo;
//! @deprecated use mConnectionInfo instead
QString connectionInfo() /Deprecated/;
};