summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocketserver_p.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-19 13:58:30 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 22:40:19 +0100
commit281647a7efcc122c87d65518d9d8fbf259a3803a (patch)
treed3b556a2faecea0309a3352a90e310522da306ef /src/websockets/qwebsocketserver_p.h
parentf8b27c6b833ee796193ae115cb87574cb0e4df4c (diff)
downloadqtwebsockets-281647a7efcc122c87d65518d9d8fbf259a3803a.tar.gz
Rename SecureMode to SslMode
Renamed SecureMode to SslMode to be more inline with QSslSocket. Change-Id: Id2f0c5ebc1e06fcd7b0ce5059e88520e5f0e6fe5 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocketserver_p.h')
-rw-r--r--src/websockets/qwebsocketserver_p.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/websockets/qwebsocketserver_p.h b/src/websockets/qwebsocketserver_p.h
index 9a2977e..861b1e7 100644
--- a/src/websockets/qwebsocketserver_p.h
+++ b/src/websockets/qwebsocketserver_p.h
@@ -75,13 +75,13 @@ class QWebSocketServerPrivate : public QObject
Q_DECLARE_PUBLIC(QWebSocketServer)
public:
- enum SecureMode
+ enum SslMode
{
- SecureModeSecure = true,
- SecureModeNonSecure
+ SecureMode = true,
+ NonSecureMode
};
- explicit QWebSocketServerPrivate(const QString &serverName, SecureMode secureMode,
+ explicit QWebSocketServerPrivate(const QString &serverName, SslMode secureMode,
QWebSocketServer * const pWebSocketServer,
QObject *parent = Q_NULLPTR);
virtual ~QWebSocketServerPrivate();
@@ -113,7 +113,7 @@ public:
void setServerName(const QString &serverName);
QString serverName() const;
- SecureMode secureMode() const;
+ SslMode secureMode() const;
#ifndef QT_NO_SSL
void setSslConfiguration(const QSslConfiguration &sslConfiguration);
@@ -132,7 +132,7 @@ private:
QTcpServer *m_pTcpServer;
QString m_serverName;
- SecureMode m_secureMode;
+ SslMode m_secureMode;
QQueue<QWebSocket *> m_pendingConnections;
QWebSocketProtocol::CloseCode m_error;
QString m_errorString;