mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
236 lines
6.1 KiB
Plaintext
236 lines
6.1 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/auth/qgsauthsslconfigwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsAuthSslConfigWidget : QWidget
|
|
{
|
|
%Docstring
|
|
Widget for editing an SSL server configuration
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsauthsslconfigwidget.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsAuthSslConfigWidget( QWidget *parent /TransferThis/ = 0,
|
|
const QSslCertificate &cert = QSslCertificate(),
|
|
const QString &hostport = QString(),
|
|
const QList<QSslCertificate> &connectionCAs = QList<QSslCertificate>() );
|
|
%Docstring
|
|
Construct a widget for editing an SSL server certificate configuration
|
|
|
|
:param parent: Parent widget
|
|
:param cert: SSL server certificate object
|
|
:param hostport: Unique host:port to associate with the server certificate
|
|
:param connectionCAs: List of trusted Certificate Authorities objects
|
|
%End
|
|
|
|
QGroupBox *certificateGroupBox();
|
|
%Docstring
|
|
Access to the certificate's group box widget
|
|
%End
|
|
QGroupBox *sslConfigGroupBox();
|
|
%Docstring
|
|
Access to the SSL configuration's group box widget
|
|
%End
|
|
|
|
const QgsAuthConfigSslServer sslCustomConfig();
|
|
%Docstring
|
|
Gets the SSL configuration
|
|
%End
|
|
|
|
const QSslCertificate sslCertificate();
|
|
%Docstring
|
|
Gets the SSL server certificate
|
|
%End
|
|
|
|
const QString sslHost();
|
|
%Docstring
|
|
Gets the host:port to associate with the server certificate
|
|
%End
|
|
|
|
QSsl::SslProtocol sslProtocol();
|
|
%Docstring
|
|
Gets the SSL protocol used for connections
|
|
%End
|
|
|
|
const QList<QSslError::SslError> sslIgnoreErrorEnums();
|
|
%Docstring
|
|
Gets list of the SSL errors (as enums) to be ignored for connections
|
|
%End
|
|
|
|
QSslSocket::PeerVerifyMode sslPeerVerifyMode();
|
|
%Docstring
|
|
Gets the client's peer verify mode for connections
|
|
%End
|
|
|
|
int sslPeerVerifyDepth();
|
|
%Docstring
|
|
Gets the client's peer verify depth for connections
|
|
|
|
.. note::
|
|
|
|
Value of 0 = unlimited
|
|
%End
|
|
|
|
public slots:
|
|
void enableSslCustomOptions( bool enable );
|
|
%Docstring
|
|
Enable or disable the custom options widget
|
|
%End
|
|
|
|
void setSslCertificate( const QSslCertificate &cert, const QString &hostport = QString() );
|
|
%Docstring
|
|
Sets SSl certificate and any associated host:port
|
|
%End
|
|
|
|
void loadSslCustomConfig( const QgsAuthConfigSslServer &config = QgsAuthConfigSslServer() );
|
|
%Docstring
|
|
Load an existing SSL server configuration
|
|
%End
|
|
|
|
void saveSslCertConfig();
|
|
%Docstring
|
|
Save the current SSL server configuration to the authentication database
|
|
%End
|
|
|
|
void resetSslCertConfig();
|
|
%Docstring
|
|
Clear the current SSL server configuration and disabled it
|
|
%End
|
|
|
|
void setSslProtocol( QSsl::SslProtocol protocol );
|
|
%Docstring
|
|
Sets the SSL protocol to use in connections
|
|
%End
|
|
|
|
void resetSslProtocol();
|
|
%Docstring
|
|
Reset the SSL protocol to use in connections to the default
|
|
%End
|
|
|
|
void appendSslIgnoreErrors( const QList<QSslError> &errors );
|
|
%Docstring
|
|
Add to SSL errors to ignore for the connection
|
|
%End
|
|
|
|
void setSslIgnoreErrorEnums( const QList<QSslError::SslError> &errorenums );
|
|
%Docstring
|
|
Sets the SSL errors (as enums) to ignore for the connection
|
|
%End
|
|
|
|
void setSslIgnoreErrors( const QList<QSslError> &errors );
|
|
%Docstring
|
|
Sets the SSL errors to ignore for the connection
|
|
%End
|
|
|
|
void resetSslIgnoreErrors();
|
|
%Docstring
|
|
Clear the SSL errors to ignore for the connection
|
|
%End
|
|
|
|
void setSslPeerVerify( QSslSocket::PeerVerifyMode mode, int modedepth );
|
|
%Docstring
|
|
Sets the client's peer verify mode for connections
|
|
%End
|
|
|
|
void resetSslPeerVerify();
|
|
%Docstring
|
|
Reset the client's peer verify mode for connections to default
|
|
%End
|
|
|
|
void setSslHost( const QString &host );
|
|
%Docstring
|
|
Sets the host of the server
|
|
%End
|
|
|
|
void setConfigCheckable( bool checkable );
|
|
%Docstring
|
|
Sets whether the config group box is checkable
|
|
%End
|
|
|
|
void validateHostPortText( const QString &txt );
|
|
%Docstring
|
|
Parse string for host:port
|
|
%End
|
|
|
|
bool readyToSave();
|
|
%Docstring
|
|
Verify if the configuration if ready to save
|
|
%End
|
|
|
|
signals:
|
|
void configEnabledChanged( bool enabled );
|
|
%Docstring
|
|
Emitted when the enabled state of the configuration changes
|
|
%End
|
|
|
|
void certFoundInAuthDatabase( bool found );
|
|
%Docstring
|
|
Emitted when an certificate of same SHA hash is found in authentication database
|
|
%End
|
|
|
|
void hostPortValidityChanged( bool valid );
|
|
%Docstring
|
|
Emitted when the validity of the host:port changes
|
|
%End
|
|
|
|
void readyToSaveChanged( bool cansave );
|
|
%Docstring
|
|
Emitted when the configuration can be saved changes
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
class QgsAuthSslConfigDialog : QDialog
|
|
{
|
|
%Docstring
|
|
Dialog wrapper of widget for editing an SSL server configuration
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsauthsslconfigwidget.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsAuthSslConfigDialog( QWidget *parent = 0,
|
|
const QSslCertificate &cert = QSslCertificate(),
|
|
const QString &hostport = QString() );
|
|
%Docstring
|
|
Construct wrapper dialog for the SSL config widget
|
|
|
|
:param parent: Parent widget
|
|
:param cert: SSL server certificate object
|
|
:param hostport: Unique host:port to associate with the server certificate
|
|
%End
|
|
|
|
QgsAuthSslConfigWidget *sslCustomConfigWidget();
|
|
%Docstring
|
|
Access the embedded SSL server configuration widget
|
|
%End
|
|
|
|
public slots:
|
|
virtual void accept();
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/auth/qgsauthsslconfigwidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|