KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QSslSocket

Notation used in Ruby API documentation

Module: QtNetwork

Description: Binding of QSslSocket

Class hierarchy: QSslSocket » QTcpSocket » QAbstractSocket » QIODevice » QObject

Sub-classes: PeerVerifyMode, QFlags_PeerVerifyMode, SslMode, QFlags_SslMode

Public constructors

new QSslSocketnew(QObject ptr parent = 0)Constructor QSslSocket::QSslSocket(QObject *parent)

Public methods

[const]QSslSocket ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidabortMethod void QSslSocket::abort()
[signal]voidaboutToCloseSignal declaration for QSslSocket::aboutToClose()
voidaddCaCertificate(const QSslCertificate certificate)Method void QSslSocket::addCaCertificate(const QSslCertificate &certificate)
booladdCaCertificates(string path,
const QSsl_EncodingFormat format = QSsl::Pem,
const QRegExp_PatternSyntax syntax = QRegExp::FixedString)
Method bool QSslSocket::addCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
voidaddCaCertificates(QSslCertificate[] certificates)Method void QSslSocket::addCaCertificates(const QList<QSslCertificate> &certificates)
[const]boolatEndMethod bool QSslSocket::atEnd()
[const]long longbytesAvailableMethod qint64 QSslSocket::bytesAvailable()
[const]long longbytesToWriteMethod qint64 QSslSocket::bytesToWrite()
[signal]voidbytesWritten(long long bytes)Signal declaration for QSslSocket::bytesWritten(qint64 bytes)
[const]QSslCertificate[]caCertificatesMethod QList<QSslCertificate> QSslSocket::caCertificates()
voidcaCertificates=(QSslCertificate[] certificates)Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)
[const]boolcanReadLineMethod bool QSslSocket::canReadLine()
[const]QSslCipher[]ciphersMethod QList<QSslCipher> QSslSocket::ciphers()
voidciphers=(QSslCipher[] ciphers)Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)
voidciphers=(string ciphers)Method void QSslSocket::setCiphers(const QString &ciphers)
voidcloseMethod void QSslSocket::close()
voidconnectToHostEncrypted(string hostName,
unsigned short port,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)
Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)
voidconnectToHostEncrypted(string hostName,
unsigned short port,
string sslPeerName,
QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)
Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, const QString &sslPeerName, QFlags<QIODevice::OpenModeFlag> mode)
[signal]voidconnectedSignal declaration for QSslSocket::connected()
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QSslSocket::destroyed(QObject *)
[signal]voiddisconnectedSignal declaration for QSslSocket::disconnected()
[signal]voidencryptedSignal declaration for QSslSocket::encrypted()
[const]long longencryptedBytesAvailableMethod qint64 QSslSocket::encryptedBytesAvailable()
[const]long longencryptedBytesToWriteMethod qint64 QSslSocket::encryptedBytesToWrite()
[signal]voidencryptedBytesWritten(long long totalBytes)Signal declaration for QSslSocket::encryptedBytesWritten(qint64 totalBytes)
[signal]voiderror_sig(const QAbstractSocket_SocketError arg1)Signal declaration for QSslSocket::error(QAbstractSocket::SocketError)
boolflushMethod bool QSslSocket::flush()
[signal]voidhostFoundSignal declaration for QSslSocket::hostFound()
voidignoreSslErrors(QSslError[] errors)Method void QSslSocket::ignoreSslErrors(const QList<QSslError> &errors)
voidignoreSslErrorsMethod void QSslSocket::ignoreSslErrors()
[const]boolisEncrypted?Method bool QSslSocket::isEncrypted()
[const]QSslCertificatelocalCertificateMethod QSslCertificate QSslSocket::localCertificate()
voidlocalCertificate=(const QSslCertificate certificate)Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)
[const]QSslSocket_SslModemodeMethod QSslSocket::SslMode QSslSocket::mode()
[signal]voidmodeChanged(const QSslSocket_SslMode newMode)Signal declaration for QSslSocket::modeChanged(QSslSocket::SslMode newMode)
[const]QSslCertificatepeerCertificateMethod QSslCertificate QSslSocket::peerCertificate()
[const]QSslCertificate[]peerCertificateChainMethod QList<QSslCertificate> QSslSocket::peerCertificateChain()
[const]intpeerVerifyDepthMethod int QSslSocket::peerVerifyDepth()
voidpeerVerifyDepth=(int depth)Method void QSslSocket::setPeerVerifyDepth(int depth)
[signal]voidpeerVerifyError(const QSslError error)Signal declaration for QSslSocket::peerVerifyError(const QSslError &error)
[const]QSslSocket_PeerVerifyModepeerVerifyModeMethod QSslSocket::PeerVerifyMode QSslSocket::peerVerifyMode()
voidpeerVerifyMode=(const QSslSocket_PeerVerifyMode mode)Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
[const]QSslKeyprivateKeyMethod QSslKey QSslSocket::privateKey()
voidprivateKey=(const QSslKey key)Method void QSslSocket::setPrivateKey(const QSslKey &key)
[const]QSsl_SslProtocolprotocolMethod QSsl::SslProtocol QSslSocket::protocol()
voidprotocol=(const QSsl_SslProtocol protocol)Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)
[signal]voidproxyAuthenticationRequired(const QNetworkProxy proxy,
QAuthenticator ptr authenticator)
Signal declaration for QSslSocket::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)
voidreadBufferSize=(long long size)Method void QSslSocket::setReadBufferSize(qint64 size)
[signal]voidreadChannelFinishedSignal declaration for QSslSocket::readChannelFinished()
[signal]voidreadyReadSignal declaration for QSslSocket::readyRead()
[const]QSslCiphersessionCipherMethod QSslCipher QSslSocket::sessionCipher()
voidsetCaCertificates(QSslCertificate[] certificates)Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)
voidsetCiphers(QSslCipher[] ciphers)Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)
voidsetCiphers(string ciphers)Method void QSslSocket::setCiphers(const QString &ciphers)
voidsetLocalCertificate(const QSslCertificate certificate)Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)
voidsetLocalCertificate(string fileName,
const QSsl_EncodingFormat format = QSsl::Pem)
Method void QSslSocket::setLocalCertificate(const QString &fileName, QSsl::EncodingFormat format)
voidsetPeerVerifyDepth(int depth)Method void QSslSocket::setPeerVerifyDepth(int depth)
voidsetPeerVerifyMode(const QSslSocket_PeerVerifyMode mode)Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
voidsetPrivateKey(const QSslKey key)Method void QSslSocket::setPrivateKey(const QSslKey &key)
voidsetPrivateKey(string fileName,
const QSsl_KeyAlgorithm algorithm = QSsl::Rsa,
const QSsl_EncodingFormat format = QSsl::Pem,
bytes passPhrase = QByteArray())
Method void QSslSocket::setPrivateKey(const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase)
voidsetProtocol(const QSsl_SslProtocol protocol)Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)
voidsetReadBufferSize(long long size)Method void QSslSocket::setReadBufferSize(qint64 size)
boolsetSocketDescriptor(int socketDescriptor,
const QAbstractSocket_SocketState state = QAbstractSocket::ConnectedState,
QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)
Method bool QSslSocket::setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)
voidsetSocketOption(const QAbstractSocket_SocketOption option,
variant value)
Method void QSslSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)
voidsetSslConfiguration(const QSslConfiguration config)Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)
variantsocketOption(const QAbstractSocket_SocketOption option)Method QVariant QSslSocket::socketOption(QAbstractSocket::SocketOption option)
[const]QSslConfigurationsslConfigurationMethod QSslConfiguration QSslSocket::sslConfiguration()
voidsslConfiguration=(const QSslConfiguration config)Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)
[const]QSslError[]sslErrorsMethod QList<QSslError> QSslSocket::sslErrors()
[signal]voidsslErrors_sig(QSslError[] errors)Signal declaration for QSslSocket::sslErrors(const QList<QSslError> &errors)
voidstartClientEncryptionMethod void QSslSocket::startClientEncryption()
voidstartServerEncryptionMethod void QSslSocket::startServerEncryption()
[signal]voidstateChanged(const QAbstractSocket_SocketState arg1)Signal declaration for QSslSocket::stateChanged(QAbstractSocket::SocketState)
boolwaitForBytesWritten(int msecs = 30000)Method bool QSslSocket::waitForBytesWritten(int msecs)
boolwaitForConnected(int msecs = 30000)Method bool QSslSocket::waitForConnected(int msecs)
boolwaitForDisconnected(int msecs = 30000)Method bool QSslSocket::waitForDisconnected(int msecs)
boolwaitForEncrypted(int msecs = 30000)Method bool QSslSocket::waitForEncrypted(int msecs)
boolwaitForReadyRead(int msecs = 30000)Method bool QSslSocket::waitForReadyRead(int msecs)

Public static methods and constants

[static,const]QSslSocket_PeerVerifyModeAutoVerifyPeerEnum constant QSslSocket::AutoVerifyPeer
[static,const]QSslSocket_PeerVerifyModeQueryPeerEnum constant QSslSocket::QueryPeer
[static,const]QSslSocket_SslModeSslClientModeEnum constant QSslSocket::SslClientMode
[static,const]QSslSocket_SslModeSslServerModeEnum constant QSslSocket::SslServerMode
[static,const]QSslSocket_SslModeUnencryptedModeEnum constant QSslSocket::UnencryptedMode
[static,const]QSslSocket_PeerVerifyModeVerifyNoneEnum constant QSslSocket::VerifyNone
[static,const]QSslSocket_PeerVerifyModeVerifyPeerEnum constant QSslSocket::VerifyPeer
voidaddDefaultCaCertificate(const QSslCertificate certificate)Static method void QSslSocket::addDefaultCaCertificate(const QSslCertificate &certificate)
booladdDefaultCaCertificates(string path,
const QSsl_EncodingFormat format = QSsl::Pem,
const QRegExp_PatternSyntax syntax = QRegExp::FixedString)
Static method bool QSslSocket::addDefaultCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)
voidaddDefaultCaCertificates(QSslCertificate[] certificates)Static method void QSslSocket::addDefaultCaCertificates(const QList<QSslCertificate> &certificates)
QSslCertificate[]defaultCaCertificatesStatic method QList<QSslCertificate> QSslSocket::defaultCaCertificates()
voiddefaultCaCertificates=(QSslCertificate[] certificates)Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)
QSslCipher[]defaultCiphersStatic method QList<QSslCipher> QSslSocket::defaultCiphers()
voiddefaultCiphers=(QSslCipher[] ciphers)Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)
voidsetDefaultCaCertificates(QSslCertificate[] certificates)Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)
voidsetDefaultCiphers(QSslCipher[] ciphers)Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
QSslCipher[]supportedCiphersStatic method QList<QSslCipher> QSslSocket::supportedCiphers()
boolsupportsSslStatic method bool QSslSocket::supportsSsl()
QSslCertificate[]systemCaCertificatesStatic method QList<QSslCertificate> QSslSocket::systemCaCertificates()
stringtr(string s,
string c = 0)
Static method QString QSslSocket::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QSslSocket::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QSslSocket::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QSslSocket::trUtf8(const char *s, const char *c, int n)

Detailed description

AutoVerifyPeer

Signature: [static,const] QSslSocket_PeerVerifyMode AutoVerifyPeer

Description: Enum constant QSslSocket::AutoVerifyPeer

Python specific notes:
The object exposes a readable attribute 'AutoVerifyPeer'. This is the getter.

QueryPeer

Signature: [static,const] QSslSocket_PeerVerifyMode QueryPeer

Description: Enum constant QSslSocket::QueryPeer

Python specific notes:
The object exposes a readable attribute 'QueryPeer'. This is the getter.

SslClientMode

Signature: [static,const] QSslSocket_SslMode SslClientMode

Description: Enum constant QSslSocket::SslClientMode

Python specific notes:
The object exposes a readable attribute 'SslClientMode'. This is the getter.

SslServerMode

Signature: [static,const] QSslSocket_SslMode SslServerMode

Description: Enum constant QSslSocket::SslServerMode

Python specific notes:
The object exposes a readable attribute 'SslServerMode'. This is the getter.

UnencryptedMode

Signature: [static,const] QSslSocket_SslMode UnencryptedMode

Description: Enum constant QSslSocket::UnencryptedMode

Python specific notes:
The object exposes a readable attribute 'UnencryptedMode'. This is the getter.

VerifyNone

Signature: [static,const] QSslSocket_PeerVerifyMode VerifyNone

Description: Enum constant QSslSocket::VerifyNone

Python specific notes:
The object exposes a readable attribute 'VerifyNone'. This is the getter.

VerifyPeer

Signature: [static,const] QSslSocket_PeerVerifyMode VerifyPeer

Description: Enum constant QSslSocket::VerifyPeer

Python specific notes:
The object exposes a readable attribute 'VerifyPeer'. This is the getter.

_const_cast

Signature: [const] QSslSocket ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

abort

Signature: void abort

Description: Method void QSslSocket::abort()

aboutToClose

Signature: [signal] void aboutToClose

Description: Signal declaration for QSslSocket::aboutToClose()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'aboutToClose'. This is the getter.
The object exposes a writable attribute 'aboutToClose'. This is the setter.

addCaCertificate

Signature: void addCaCertificate (const QSslCertificate certificate)

Description: Method void QSslSocket::addCaCertificate(const QSslCertificate &certificate)

addCaCertificates

(1) Signature: bool addCaCertificates (string path, const QSsl_EncodingFormat format = QSsl::Pem, const QRegExp_PatternSyntax syntax = QRegExp::FixedString)

Description: Method bool QSslSocket::addCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)

(2) Signature: void addCaCertificates (QSslCertificate[] certificates)

Description: Method void QSslSocket::addCaCertificates(const QList<QSslCertificate> &certificates)

addDefaultCaCertificate

Signature: [static] void addDefaultCaCertificate (const QSslCertificate certificate)

Description: Static method void QSslSocket::addDefaultCaCertificate(const QSslCertificate &certificate)

This method is static and can be called without an instance.

addDefaultCaCertificates

(1) Signature: [static] bool addDefaultCaCertificates (string path, const QSsl_EncodingFormat format = QSsl::Pem, const QRegExp_PatternSyntax syntax = QRegExp::FixedString)

Description: Static method bool QSslSocket::addDefaultCaCertificates(const QString &path, QSsl::EncodingFormat format, QRegExp::PatternSyntax syntax)

This method is static and can be called without an instance.

(2) Signature: [static] void addDefaultCaCertificates (QSslCertificate[] certificates)

Description: Static method void QSslSocket::addDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

atEnd

Signature: [const] bool atEnd

Description: Method bool QSslSocket::atEnd()

This is a reimplementation of QAbstractSocket::atEnd

bytesAvailable

Signature: [const] long long bytesAvailable

Description: Method qint64 QSslSocket::bytesAvailable()

This is a reimplementation of QAbstractSocket::bytesAvailable

bytesToWrite

Signature: [const] long long bytesToWrite

Description: Method qint64 QSslSocket::bytesToWrite()

This is a reimplementation of QAbstractSocket::bytesToWrite

bytesWritten

Signature: [signal] void bytesWritten (long long bytes)

Description: Signal declaration for QSslSocket::bytesWritten(qint64 bytes)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'bytesWritten'. This is the getter.
The object exposes a writable attribute 'bytesWritten'. This is the setter.

caCertificates

Signature: [const] QSslCertificate[] caCertificates

Description: Method QList<QSslCertificate> QSslSocket::caCertificates()

Python specific notes:
The object exposes a readable attribute 'caCertificates'. This is the getter.

caCertificates=

Signature: void caCertificates= (QSslCertificate[] certificates)

Description: Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

canReadLine

Signature: [const] bool canReadLine

Description: Method bool QSslSocket::canReadLine()

This is a reimplementation of QAbstractSocket::canReadLine

ciphers

Signature: [const] QSslCipher[] ciphers

Description: Method QList<QSslCipher> QSslSocket::ciphers()

Python specific notes:
The object exposes a readable attribute 'ciphers'. This is the getter.

ciphers=

(1) Signature: void ciphers= (QSslCipher[] ciphers)

Description: Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

(2) Signature: void ciphers= (string ciphers)

Description: Method void QSslSocket::setCiphers(const QString &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

close

Signature: void close

Description: Method void QSslSocket::close()

This is a reimplementation of QAbstractSocket::close

connectToHostEncrypted

(1) Signature: void connectToHostEncrypted (string hostName, unsigned short port, QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)

Description: Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, QFlags<QIODevice::OpenModeFlag> mode)

(2) Signature: void connectToHostEncrypted (string hostName, unsigned short port, string sslPeerName, QIODevice_QFlags_OpenModeFlag mode = QIODevice::ReadWrite)

Description: Method void QSslSocket::connectToHostEncrypted(const QString &hostName, quint16 port, const QString &sslPeerName, QFlags<QIODevice::OpenModeFlag> mode)

connected

Signature: [signal] void connected

Description: Signal declaration for QSslSocket::connected()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'connected'. This is the getter.
The object exposes a writable attribute 'connected'. This is the setter.

defaultCaCertificates

Signature: [static] QSslCertificate[] defaultCaCertificates

Description: Static method QList<QSslCertificate> QSslSocket::defaultCaCertificates()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'defaultCaCertificates'. This is the getter.

defaultCaCertificates=

Signature: [static] void defaultCaCertificates= (QSslCertificate[] certificates)

Description: Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCaCertificates'. This is the setter.

defaultCiphers

Signature: [static] QSslCipher[] defaultCiphers

Description: Static method QList<QSslCipher> QSslSocket::defaultCiphers()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'defaultCiphers'. This is the getter.

defaultCiphers=

Signature: [static] void defaultCiphers= (QSslCipher[] ciphers)

Description: Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCiphers'. This is the setter.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QSslSocket::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnected

Signature: [signal] void disconnected

Description: Signal declaration for QSslSocket::disconnected()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'disconnected'. This is the getter.
The object exposes a writable attribute 'disconnected'. This is the setter.

encrypted

Signature: [signal] void encrypted

Description: Signal declaration for QSslSocket::encrypted()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'encrypted'. This is the getter.
The object exposes a writable attribute 'encrypted'. This is the setter.

encryptedBytesAvailable

Signature: [const] long long encryptedBytesAvailable

Description: Method qint64 QSslSocket::encryptedBytesAvailable()

encryptedBytesToWrite

Signature: [const] long long encryptedBytesToWrite

Description: Method qint64 QSslSocket::encryptedBytesToWrite()

encryptedBytesWritten

Signature: [signal] void encryptedBytesWritten (long long totalBytes)

Description: Signal declaration for QSslSocket::encryptedBytesWritten(qint64 totalBytes)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'encryptedBytesWritten'. This is the getter.
The object exposes a writable attribute 'encryptedBytesWritten'. This is the setter.

error_sig

Signature: [signal] void error_sig (const QAbstractSocket_SocketError arg1)

Description: Signal declaration for QSslSocket::error(QAbstractSocket::SocketError)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'error_sig'. This is the getter.
The object exposes a writable attribute 'error_sig'. This is the setter.

flush

Signature: bool flush

Description: Method bool QSslSocket::flush()

hostFound

Signature: [signal] void hostFound

Description: Signal declaration for QSslSocket::hostFound()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'hostFound'. This is the getter.
The object exposes a writable attribute 'hostFound'. This is the setter.

ignoreSslErrors

(1) Signature: void ignoreSslErrors (QSslError[] errors)

Description: Method void QSslSocket::ignoreSslErrors(const QList<QSslError> &errors)

(2) Signature: void ignoreSslErrors

Description: Method void QSslSocket::ignoreSslErrors()

isEncrypted?

Signature: [const] bool isEncrypted?

Description: Method bool QSslSocket::isEncrypted()

localCertificate

Signature: [const] QSslCertificate localCertificate

Description: Method QSslCertificate QSslSocket::localCertificate()

Python specific notes:
The object exposes a readable attribute 'localCertificate'. This is the getter.

localCertificate=

Signature: void localCertificate= (const QSslCertificate certificate)

Description: Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

mode

Signature: [const] QSslSocket_SslMode mode

Description: Method QSslSocket::SslMode QSslSocket::mode()

modeChanged

Signature: [signal] void modeChanged (const QSslSocket_SslMode newMode)

Description: Signal declaration for QSslSocket::modeChanged(QSslSocket::SslMode newMode)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'modeChanged'. This is the getter.
The object exposes a writable attribute 'modeChanged'. This is the setter.

new

Signature: [static] new QSslSocket new (QObject ptr parent = 0)

Description: Constructor QSslSocket::QSslSocket(QObject *parent)

This method creates an object of class QSslSocket.

Python specific notes:
This method is the default initializer of the object.

peerCertificate

Signature: [const] QSslCertificate peerCertificate

Description: Method QSslCertificate QSslSocket::peerCertificate()

peerCertificateChain

Signature: [const] QSslCertificate[] peerCertificateChain

Description: Method QList<QSslCertificate> QSslSocket::peerCertificateChain()

peerVerifyDepth

Signature: [const] int peerVerifyDepth

Description: Method int QSslSocket::peerVerifyDepth()

Python specific notes:
The object exposes a readable attribute 'peerVerifyDepth'. This is the getter.

peerVerifyDepth=

Signature: void peerVerifyDepth= (int depth)

Description: Method void QSslSocket::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

peerVerifyError

Signature: [signal] void peerVerifyError (const QSslError error)

Description: Signal declaration for QSslSocket::peerVerifyError(const QSslError &error)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'peerVerifyError'. This is the getter.
The object exposes a writable attribute 'peerVerifyError'. This is the setter.

peerVerifyMode

Signature: [const] QSslSocket_PeerVerifyMode peerVerifyMode

Description: Method QSslSocket::PeerVerifyMode QSslSocket::peerVerifyMode()

Python specific notes:
The object exposes a readable attribute 'peerVerifyMode'. This is the getter.

peerVerifyMode=

Signature: void peerVerifyMode= (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

privateKey

Signature: [const] QSslKey privateKey

Description: Method QSslKey QSslSocket::privateKey()

Python specific notes:
The object exposes a readable attribute 'privateKey'. This is the getter.

privateKey=

Signature: void privateKey= (const QSslKey key)

Description: Method void QSslSocket::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

protocol

Signature: [const] QSsl_SslProtocol protocol

Description: Method QSsl::SslProtocol QSslSocket::protocol()

Python specific notes:
The object exposes a readable attribute 'protocol'. This is the getter.

protocol=

Signature: void protocol= (const QSsl_SslProtocol protocol)

Description: Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.

proxyAuthenticationRequired

Signature: [signal] void proxyAuthenticationRequired (const QNetworkProxy proxy, QAuthenticator ptr authenticator)

Description: Signal declaration for QSslSocket::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'proxyAuthenticationRequired'. This is the getter.
The object exposes a writable attribute 'proxyAuthenticationRequired'. This is the setter.

readBufferSize=

Signature: void readBufferSize= (long long size)

Description: Method void QSslSocket::setReadBufferSize(qint64 size)

Python specific notes:
The object exposes a writable attribute 'readBufferSize'. This is the setter.

readChannelFinished

Signature: [signal] void readChannelFinished

Description: Signal declaration for QSslSocket::readChannelFinished()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'readChannelFinished'. This is the getter.
The object exposes a writable attribute 'readChannelFinished'. This is the setter.

readyRead

Signature: [signal] void readyRead

Description: Signal declaration for QSslSocket::readyRead()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'readyRead'. This is the getter.
The object exposes a writable attribute 'readyRead'. This is the setter.

sessionCipher

Signature: [const] QSslCipher sessionCipher

Description: Method QSslCipher QSslSocket::sessionCipher()

setCaCertificates

Signature: void setCaCertificates (QSslCertificate[] certificates)

Description: Method void QSslSocket::setCaCertificates(const QList<QSslCertificate> &certificates)

Python specific notes:
The object exposes a writable attribute 'caCertificates'. This is the setter.

setCiphers

(1) Signature: void setCiphers (QSslCipher[] ciphers)

Description: Method void QSslSocket::setCiphers(const QList<QSslCipher> &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

(2) Signature: void setCiphers (string ciphers)

Description: Method void QSslSocket::setCiphers(const QString &ciphers)

Python specific notes:
The object exposes a writable attribute 'ciphers'. This is the setter.

setDefaultCaCertificates

Signature: [static] void setDefaultCaCertificates (QSslCertificate[] certificates)

Description: Static method void QSslSocket::setDefaultCaCertificates(const QList<QSslCertificate> &certificates)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCaCertificates'. This is the setter.

setDefaultCiphers

Signature: [static] void setDefaultCiphers (QSslCipher[] ciphers)

Description: Static method void QSslSocket::setDefaultCiphers(const QList<QSslCipher> &ciphers)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'defaultCiphers'. This is the setter.

setLocalCertificate

(1) Signature: void setLocalCertificate (const QSslCertificate certificate)

Description: Method void QSslSocket::setLocalCertificate(const QSslCertificate &certificate)

Python specific notes:
The object exposes a writable attribute 'localCertificate'. This is the setter.

(2) Signature: void setLocalCertificate (string fileName, const QSsl_EncodingFormat format = QSsl::Pem)

Description: Method void QSslSocket::setLocalCertificate(const QString &fileName, QSsl::EncodingFormat format)

setPeerVerifyDepth

Signature: void setPeerVerifyDepth (int depth)

Description: Method void QSslSocket::setPeerVerifyDepth(int depth)

Python specific notes:
The object exposes a writable attribute 'peerVerifyDepth'. This is the setter.

setPeerVerifyMode

Signature: void setPeerVerifyMode (const QSslSocket_PeerVerifyMode mode)

Description: Method void QSslSocket::setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)

Python specific notes:
The object exposes a writable attribute 'peerVerifyMode'. This is the setter.

setPrivateKey

(1) Signature: void setPrivateKey (const QSslKey key)

Description: Method void QSslSocket::setPrivateKey(const QSslKey &key)

Python specific notes:
The object exposes a writable attribute 'privateKey'. This is the setter.

(2) Signature: void setPrivateKey (string fileName, const QSsl_KeyAlgorithm algorithm = QSsl::Rsa, const QSsl_EncodingFormat format = QSsl::Pem, bytes passPhrase = QByteArray())

Description: Method void QSslSocket::setPrivateKey(const QString &fileName, QSsl::KeyAlgorithm algorithm, QSsl::EncodingFormat format, const QByteArray &passPhrase)

setProtocol

Signature: void setProtocol (const QSsl_SslProtocol protocol)

Description: Method void QSslSocket::setProtocol(QSsl::SslProtocol protocol)

Python specific notes:
The object exposes a writable attribute 'protocol'. This is the setter.

setReadBufferSize

Signature: void setReadBufferSize (long long size)

Description: Method void QSslSocket::setReadBufferSize(qint64 size)

Python specific notes:
The object exposes a writable attribute 'readBufferSize'. This is the setter.

setSocketDescriptor

Signature: bool setSocketDescriptor (int socketDescriptor, const QAbstractSocket_SocketState state = QAbstractSocket::ConnectedState, QIODevice_QFlags_OpenModeFlag openMode = QIODevice::ReadWrite)

Description: Method bool QSslSocket::setSocketDescriptor(int socketDescriptor, QAbstractSocket::SocketState state, QFlags<QIODevice::OpenModeFlag> openMode)

setSocketOption

Signature: void setSocketOption (const QAbstractSocket_SocketOption option, variant value)

Description: Method void QSslSocket::setSocketOption(QAbstractSocket::SocketOption option, const QVariant &value)

setSslConfiguration

Signature: void setSslConfiguration (const QSslConfiguration config)

Description: Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

socketOption

Signature: variant socketOption (const QAbstractSocket_SocketOption option)

Description: Method QVariant QSslSocket::socketOption(QAbstractSocket::SocketOption option)

sslConfiguration

Signature: [const] QSslConfiguration sslConfiguration

Description: Method QSslConfiguration QSslSocket::sslConfiguration()

Python specific notes:
The object exposes a readable attribute 'sslConfiguration'. This is the getter.

sslConfiguration=

Signature: void sslConfiguration= (const QSslConfiguration config)

Description: Method void QSslSocket::setSslConfiguration(const QSslConfiguration &config)

Python specific notes:
The object exposes a writable attribute 'sslConfiguration'. This is the setter.

sslErrors

Signature: [const] QSslError[] sslErrors

Description: Method QList<QSslError> QSslSocket::sslErrors()

sslErrors_sig

Signature: [signal] void sslErrors_sig (QSslError[] errors)

Description: Signal declaration for QSslSocket::sslErrors(const QList<QSslError> &errors)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'sslErrors_sig'. This is the getter.
The object exposes a writable attribute 'sslErrors_sig'. This is the setter.

startClientEncryption

Signature: void startClientEncryption

Description: Method void QSslSocket::startClientEncryption()

startServerEncryption

Signature: void startServerEncryption

Description: Method void QSslSocket::startServerEncryption()

stateChanged

Signature: [signal] void stateChanged (const QAbstractSocket_SocketState arg1)

Description: Signal declaration for QSslSocket::stateChanged(QAbstractSocket::SocketState)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'stateChanged'. This is the getter.
The object exposes a writable attribute 'stateChanged'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

supportedCiphers

Signature: [static] QSslCipher[] supportedCiphers

Description: Static method QList<QSslCipher> QSslSocket::supportedCiphers()

This method is static and can be called without an instance.

supportsSsl

Signature: [static] bool supportsSsl

Description: Static method bool QSslSocket::supportsSsl()

This method is static and can be called without an instance.

systemCaCertificates

Signature: [static] QSslCertificate[] systemCaCertificates

Description: Static method QList<QSslCertificate> QSslSocket::systemCaCertificates()

This method is static and can be called without an instance.

tr

(1) Signature: [static] string tr (string s, string c = 0)

Description: Static method QString QSslSocket::tr(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string tr (string s, string c, int n)

Description: Static method QString QSslSocket::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

(1) Signature: [static] string trUtf8 (string s, string c = 0)

Description: Static method QString QSslSocket::trUtf8(const char *s, const char *c)

This method is static and can be called without an instance.

(2) Signature: [static] string trUtf8 (string s, string c, int n)

Description: Static method QString QSslSocket::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

waitForBytesWritten

Signature: bool waitForBytesWritten (int msecs = 30000)

Description: Method bool QSslSocket::waitForBytesWritten(int msecs)

This is a reimplementation of QAbstractSocket::waitForBytesWritten

waitForConnected

Signature: bool waitForConnected (int msecs = 30000)

Description: Method bool QSslSocket::waitForConnected(int msecs)

waitForDisconnected

Signature: bool waitForDisconnected (int msecs = 30000)

Description: Method bool QSslSocket::waitForDisconnected(int msecs)

waitForEncrypted

Signature: bool waitForEncrypted (int msecs = 30000)

Description: Method bool QSslSocket::waitForEncrypted(int msecs)

waitForReadyRead

Signature: bool waitForReadyRead (int msecs = 30000)

Description: Method bool QSslSocket::waitForReadyRead(int msecs)

This is a reimplementation of QAbstractSocket::waitForReadyRead