\sa setPauseMode(), resume()
*/
-QAbstractSocket::PauseMode QAbstractSocket::pauseMode() const
+QAbstractSocket::PauseModes QAbstractSocket::pauseMode() const
{
return d_func()->pauseMode;
}
\sa pauseMode(), resume()
*/
-void QAbstractSocket::setPauseMode(PauseMode pauseMode)
+void QAbstractSocket::setPauseMode(PauseModes pauseMode)
{
d_func()->pauseMode = pauseMode;
}
};
Q_DECLARE_FLAGS(BindMode, BindFlag)
enum PauseMode {
- PauseNever,
- PauseOnNotify
+ PauseNever = 0x0,
+ PauseOnNotify = 0x1
};
+ Q_DECLARE_FLAGS(PauseModes, PauseMode)
QAbstractSocket(SocketType socketType, QObject *parent);
virtual ~QAbstractSocket();
virtual void resume(); // to continue after proxy authentication required, SSL errors etc.
- PauseMode pauseMode() const;
- void setPauseMode(PauseMode pauseMode);
+ PauseModes pauseMode() const;
+ void setPauseMode(PauseModes pauseMode);
bool bind(const QHostAddress &address, quint16 port = 0, BindMode mode = DefaultForPlatform);
bool bind(quint16 port = 0, BindMode mode = DefaultForPlatform);
Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractSocket::BindMode)
+Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractSocket::PauseModes)
#ifndef QT_NO_DEBUG_STREAM
Q_NETWORK_EXPORT QDebug operator<<(QDebug, QAbstractSocket::SocketError);
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::PauseOnNotify) {
pauseSocketNotifiers(q);
paused = true;
} else {