18 #ifndef QGSNEWHTTPCONNECTION_H 19 #define QGSNEWHTTPCONNECTION_H 22 #include "ui_qgsnewhttpconnectionbase.h" 45 ConnectionWfs = 1 << 1,
46 ConnectionWms = 1 << 2,
47 ConnectionWcs = 1 << 3,
48 ConnectionOther = 1 << 4,
58 FlagShowTestConnection = 1 << 1,
59 FlagHideAuthenticationGroup = 1 << 2,
60 FlagShowHttpSettings = 1 << 3,
62 Q_DECLARE_FLAGS( Flags,
Flag )
74 QgsNewHttpConnection::ConnectionTypes types = ConnectionWms,
75 const QString &baseKey =
"qgis/connections-wms/",
76 const QString &connectionName = QString(),
77 QgsNewHttpConnection::Flags flags =
nullptr,
78 Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
94 void accept()
override;
98 void nameChanged(
const QString & );
99 void urlChanged(
const QString & );
100 void updateOkButtonState();
101 void wfsVersionCurrentIndexChanged(
int index );
102 void wfsFeaturePagingStateChanged(
int state );
113 WFS_VERSION_API_FEATURES_1_0 = 4,
121 virtual bool validate();
127 QPushButton *testConnectButton();
139 QPushButton *wfsVersionDetectButton()
SIP_SKIP;
145 QComboBox *wfsVersionComboBox() SIP_SKIP;
151 QCheckBox *wfsPagingEnabledCheckBox() SIP_SKIP;
157 QLineEdit *wfsPageSizeLineEdit() SIP_SKIP;
163 QUrl urlTrimmed() const SIP_SKIP;
170 virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
177 virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
184 void updateServiceSpecificSettings();
188 ConnectionTypes mTypes = ConnectionWms;
191 QString mCredentialsBaseKey;
192 QString mOriginalConnName;
202 #endif // QGSNEWHTTPCONNECTION_H
Flag
Flags controlling dialog behavior.
ConnectionType
Available connection types for configuring in the dialog.
WfsVersionIndex
Index of wfsVersionComboBox.
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS...