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 );
111 virtual bool validate();
117 QPushButton *testConnectButton();
129 QPushButton *wfsVersionDetectButton()
SIP_SKIP;
135 QComboBox *wfsVersionComboBox() SIP_SKIP;
141 QCheckBox *wfsPagingEnabledCheckBox() SIP_SKIP;
147 QLineEdit *wfsPageSizeLineEdit() SIP_SKIP;
153 QUrl urlTrimmed() const SIP_SKIP;
160 virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
167 virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
174 void updateServiceSpecificSettings();
178 ConnectionTypes mTypes = ConnectionWms;
181 QString mCredentialsBaseKey;
182 QString mOriginalConnName;
192 #endif // QGSNEWHTTPCONNECTION_H
Flag
Flags controlling dialog behavior.
ConnectionType
Available connection types for configuring in the dialog.
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS...