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();
123 QPushButton *wfsVersionDetectButton()
SIP_SKIP;
129 QComboBox *wfsVersionComboBox()
SIP_SKIP;
135 QCheckBox *wfsPagingEnabledCheckBox() SIP_SKIP;
141 QLineEdit *wfsPageSizeLineEdit() SIP_SKIP;
147 QUrl urlTrimmed() const SIP_SKIP;
154 virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
161 virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
168 void updateServiceSpecificSettings();
172 ConnectionTypes mTypes = ConnectionWms;
175 QString mCredentialsBaseKey;
176 QString mOriginalConnName;
186 #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...