QGIS/python/gui/auto_generated/qgsnewhttpconnection.sip.in

136 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewhttpconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsNewHttpConnection : QDialog
{
2017-06-07 16:16:21 +02:00
%Docstring
Dialog to allow the user to configure and save connection
2017-12-15 10:36:55 -04:00
information for an HTTP Server for WMS, etc.
%End
2017-06-07 16:16:21 +02:00
%TypeHeaderCode
#include "qgsnewhttpconnection.h"
%End
public:
enum ConnectionType
{
ConnectionWfs,
ConnectionWms,
ConnectionWcs,
ConnectionOther,
};
typedef QFlags<QgsNewHttpConnection::ConnectionType> ConnectionTypes;
enum Flag
{
FlagShowTestConnection,
FlagHideAuthenticationGroup,
};
typedef QFlags<QgsNewHttpConnection::Flag> Flags;
QgsNewHttpConnection( QWidget *parent /TransferThis/ = 0,
QgsNewHttpConnection::ConnectionTypes types = ConnectionWms,
const QString &baseKey = "qgis/connections-wms/",
const QString &connectionName = QString(),
QgsNewHttpConnection::Flags flags = 0,
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
2017-06-07 16:16:21 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsNewHttpConnection.
2017-12-15 10:36:55 -04:00
The ``types`` argument dictates which connection type settings should be
shown in the dialog.
2017-12-15 10:36:55 -04:00
The ``flags`` argument allows specifying flags which control the dialog behavior
and appearance.
2017-06-07 16:16:21 +02:00
%End
QString name() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current connection name.
.. versionadded:: 3.0
%End
QString url() const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the current connection url.
.. versionadded:: 3.0
%End
public slots:
2017-06-07 16:16:21 +02:00
virtual void accept();
2014-01-26 18:35:21 +01:00
protected:
virtual bool validate();
%Docstring
2017-12-15 10:36:55 -04:00
Returns true if dialog settings are valid, or false if current
settings are not valid and the dialog should not be acceptable.
.. versionadded:: 3.0
%End
QPushButton *testConnectButton();
%Docstring
2017-12-15 10:36:55 -04:00
Returns the "test connection" button.
.. versionadded:: 3.0
%End
virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the QSettings key for WFS related settings for the connection.
.. seealso:: :py:func:`wmsSettingsKey`
2017-12-15 10:36:55 -04:00
.. versionadded:: 3.0
%End
virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
%Docstring
2017-12-15 10:36:55 -04:00
Returns the QSettings key for WMS related settings for the connection.
.. seealso:: :py:func:`wfsSettingsKey`
2017-12-15 10:36:55 -04:00
.. versionadded:: 3.0
%End
void updateServiceSpecificSettings();
%Docstring
2017-12-15 10:36:55 -04:00
Triggers a resync of the GUI widgets for the service specific settings (i.e. WFS
and WMS related settings).
.. versionadded:: 3.0
%End
};
2017-06-07 16:16:21 +02:00
QFlags<QgsNewHttpConnection::ConnectionType> operator|(QgsNewHttpConnection::ConnectionType f1, QFlags<QgsNewHttpConnection::ConnectionType> f2);
QFlags<QgsNewHttpConnection::Flag> operator|(QgsNewHttpConnection::Flag f1, QFlags<QgsNewHttpConnection::Flag> f2);
2017-09-25 14:20:39 +10:00
2017-06-07 16:16:21 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsnewhttpconnection.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/