This enum describes the behavior of when the socket should hold
back with continuing data transfer.
+ The only notification currently supported is QSslSocket::sslErrors().
\value PauseNever Do not pause data transfer on the socket. This is the
default and matches the behaviour of Qt 4.
- \value PauseOnNotify Pause data transfer on the socket upon receiving a
- notification. The only notification currently supported is
- QSslSocket::sslErrors().
+ \value PauseOnSslErrors Pause data transfer on the socket upon receiving an
+ SSL error notification. I.E. QSslSocket::sslErrors().
*/
#include "qabstractsocket.h"
\since 5.0
Controls whether to pause upon receiving a notification. The only notification
- currently supported is QSslSocket::sslErrors(). If set to PauseOnNotify,
+ currently supported is QSslSocket::sslErrors(). If set to PauseOnSslErrors,
data transfer on the socket will be paused and needs to be enabled explicitly
again by calling resume().
By default this option is set to PauseNever.
\since 5.0
Continues data transfer on the socket after it has been paused. If
- "setPauseMode(QAbstractSocket::PauseOnNotify);" has been called on
+ "setPauseMode(QAbstractSocket::PauseOnSslErrors);" has been called on
this socket and a sslErrors() signal is received, calling this method
is necessary for the socket to continue.
bool doEmitSslError = !verifyErrorsHaveBeenIgnored();
// check whether we need to emit an SSL handshake error
if (doVerifyPeer && doEmitSslError) {
- if (q->pauseMode() & QAbstractSocket::PauseOnNotify) {
+ if (q->pauseMode() & QAbstractSocket::PauseOnSslErrors) {
pauseSocketNotifiers(q);
paused = true;
} else {
QFETCH(bool, expectSuccess);
QSslSocket socket;
- socket.setPauseMode(QAbstractSocket::PauseOnNotify);
+ socket.setPauseMode(QAbstractSocket::PauseOnSslErrors);
QSignalSpy sslErrorSpy(&socket, SIGNAL(sslErrors(QList<QSslError>)));
QSignalSpy encryptedSpy(&socket, SIGNAL(encrypted()));