mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			152 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			152 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsnewhttpconnection.h                                       *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsNewHttpConnection : QDialog
 | 
						|
{
 | 
						|
%Docstring
 | 
						|
Dialog to allow the user to configure and save connection
 | 
						|
information for an HTTP Server for WMS, etc.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsnewhttpconnection.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    enum ConnectionType
 | 
						|
    {
 | 
						|
      ConnectionWfs,
 | 
						|
      ConnectionWms,
 | 
						|
      ConnectionWcs,
 | 
						|
      ConnectionOther,
 | 
						|
    };
 | 
						|
    typedef QFlags<QgsNewHttpConnection::ConnectionType> ConnectionTypes;
 | 
						|
 | 
						|
 | 
						|
    enum Flag
 | 
						|
    {
 | 
						|
      FlagShowTestConnection,
 | 
						|
      FlagHideAuthenticationGroup,
 | 
						|
      FlagShowHttpSettings,
 | 
						|
    };
 | 
						|
    typedef QFlags<QgsNewHttpConnection::Flag> Flags;
 | 
						|
 | 
						|
 | 
						|
    QgsNewHttpConnection( QWidget *parent /TransferThis/ = 0,
 | 
						|
                          QgsNewHttpConnection::ConnectionTypes types = ConnectionWms,
 | 
						|
                          const QString &baseKey = "qgis/connections-wms/",
 | 
						|
                          const QString &connectionName = QString(),
 | 
						|
                          QgsNewHttpConnection::Flags flags = 0,
 | 
						|
                          Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
 | 
						|
%Docstring
 | 
						|
Constructor for QgsNewHttpConnection.
 | 
						|
 | 
						|
The ``types`` argument dictates which connection type settings should be
 | 
						|
shown in the dialog.
 | 
						|
 | 
						|
The ``flags`` argument allows specifying flags which control the dialog behavior
 | 
						|
and appearance.
 | 
						|
%End
 | 
						|
 | 
						|
    QString name() const;
 | 
						|
%Docstring
 | 
						|
Returns the current connection name.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    QString url() const;
 | 
						|
%Docstring
 | 
						|
Returns the current connection url.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
  public slots:
 | 
						|
 | 
						|
    virtual void accept();
 | 
						|
 | 
						|
 | 
						|
  protected:
 | 
						|
 | 
						|
    enum WfsVersionIndex
 | 
						|
    {
 | 
						|
      WFS_VERSION_MAX,
 | 
						|
      WFS_VERSION_1_0,
 | 
						|
      WFS_VERSION_1_1,
 | 
						|
      WFS_VERSION_2_0,
 | 
						|
      WFS_VERSION_API_FEATURES_1_0,
 | 
						|
    };
 | 
						|
 | 
						|
    virtual bool validate();
 | 
						|
%Docstring
 | 
						|
Returns ``True`` if dialog settings are valid, or ``False`` if current
 | 
						|
settings are not valid and the dialog should not be acceptable.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    QPushButton *testConnectButton();
 | 
						|
%Docstring
 | 
						|
Returns the "test connection" button.
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
    virtual QString wfsSettingsKey( const QString &base, const QString &connectionName ) const;
 | 
						|
%Docstring
 | 
						|
Returns the QSettings key for WFS related settings for the connection.
 | 
						|
 | 
						|
.. seealso:: :py:func:`wmsSettingsKey`
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    virtual QString wmsSettingsKey( const QString &base, const QString &connectionName ) const;
 | 
						|
%Docstring
 | 
						|
Returns the QSettings key for WMS related settings for the connection.
 | 
						|
 | 
						|
.. seealso:: :py:func:`wfsSettingsKey`
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
    void updateServiceSpecificSettings();
 | 
						|
%Docstring
 | 
						|
Triggers a resync of the GUI widgets for the service specific settings (i.e. WFS
 | 
						|
and WMS related settings).
 | 
						|
 | 
						|
.. versionadded:: 3.0
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
QFlags<QgsNewHttpConnection::ConnectionType> operator|(QgsNewHttpConnection::ConnectionType f1, QFlags<QgsNewHttpConnection::ConnectionType> f2);
 | 
						|
 | 
						|
QFlags<QgsNewHttpConnection::Flag> operator|(QgsNewHttpConnection::Flag f1, QFlags<QgsNewHttpConnection::Flag> f2);
 | 
						|
 | 
						|
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsnewhttpconnection.h                                       *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |