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,
61 Q_DECLARE_FLAGS( Flags,
Flag )
73 QgsNewHttpConnection::ConnectionTypes types = ConnectionWms,
74 const QString &baseKey =
"qgis/connections-wms/",
75 const QString &connectionName = QString(),
76 QgsNewHttpConnection::Flags flags =
nullptr,
77 Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
93 void accept()
override;
97 void nameChanged(
const QString & );
98 void urlChanged(
const QString & );
99 void updateOkButtonState();
108 virtual bool validate();
114 QPushButton *testConnectButton();
121 virtual QString wfsSettingsKey(
const QString &base,
const QString &connectionName )
const;
128 virtual QString wmsSettingsKey(
const QString &base,
const QString &connectionName )
const;
135 void updateServiceSpecificSettings();
139 ConnectionTypes mTypes = ConnectionWms;
142 QString mCredentialsBaseKey;
143 QString mOriginalConnName;
148 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsNewHttpConnection::ConnectionTypes )
149 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsNewHttpConnection::Flags )
153 #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...