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,
50 Q_DECLARE_FLAGS( ConnectionTypes, ConnectionType )
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 = QgsNewHttpConnection::Flags(),
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 QCheckBox *wfsUseGml2EncodingForTransactions()
SIP_SKIP;
163 QLineEdit *wfsPageSizeLineEdit()
SIP_SKIP;
176 virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
183 virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
190 void updateServiceSpecificSettings();
194 ConnectionTypes mTypes = ConnectionWms;
197 QString mCredentialsBaseKey;
198 QString mOriginalConnName;
Dialog to allow the user to configure and save connection information for an HTTP Server for WMS,...
Flag
Flags controlling dialog behavior.
WfsVersionIndex
Index of wfsVersionComboBox.
ConnectionType
Available connection types for configuring in the dialog.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.