QGIS/python/gui/auto_generated/auth/qgsauthsslconfigwidget.sip.in

236 lines
6.1 KiB
Plaintext
Raw Normal View History

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