summaryrefslogtreecommitdiff
path: root/src/websockets
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-18 22:14:39 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 09:38:18 +0100
commitab0704e1559c316e65b4bce4e1ab913cdee4dfa2 (patch)
tree7c8bae49cd0e7554a348919dae5eb0a3b3a6e779 /src/websockets
parent367a9ffcc20fd79ee1ea83e4fd5c6b6ae16c5729 (diff)
downloadqtwebsockets-ab0704e1559c316e65b4bce4e1ab913cdee4dfa2.tar.gz
Move currentVersion method to private namespace
Change-Id: I49c952e8c71018fab2e48ade27f1f9c19279acb5 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets')
-rw-r--r--src/websockets/qwebsockethandshakeresponse.cpp1
-rw-r--r--src/websockets/qwebsocketprotocol.h2
-rw-r--r--src/websockets/qwebsocketprotocol_p.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/websockets/qwebsockethandshakeresponse.cpp b/src/websockets/qwebsockethandshakeresponse.cpp
index 3700b21..cc1844d 100644
--- a/src/websockets/qwebsockethandshakeresponse.cpp
+++ b/src/websockets/qwebsockethandshakeresponse.cpp
@@ -42,6 +42,7 @@
#include "qwebsockethandshakeresponse_p.h"
#include "qwebsockethandshakerequest_p.h"
#include "qwebsocketprotocol.h"
+#include "qwebsocketprotocol_p.h"
#include <QtCore/QString>
#include <QtCore/QTextStream>
diff --git a/src/websockets/qwebsocketprotocol.h b/src/websockets/qwebsocketprotocol.h
index c058937..1affc76 100644
--- a/src/websockets/qwebsocketprotocol.h
+++ b/src/websockets/qwebsocketprotocol.h
@@ -84,8 +84,6 @@ enum CloseCode
CloseCodeTlsHandshakeFailed = 1015
};
-inline Version currentVersion() { return VersionLatest; }
-
} //end namespace QWebSocketProtocol
QT_END_NAMESPACE
diff --git a/src/websockets/qwebsocketprotocol_p.h b/src/websockets/qwebsocketprotocol_p.h
index e2c883a..4ce51b5 100644
--- a/src/websockets/qwebsocketprotocol_p.h
+++ b/src/websockets/qwebsocketprotocol_p.h
@@ -86,6 +86,8 @@ inline bool isCloseCodeValid(int closeCode)
((closeCode >= 3000) || (closeCode < 1012));
}
+inline Version currentVersion() { return VersionLatest; }
+
void Q_AUTOTEST_EXPORT mask(QByteArray *payload, quint32 maskingKey);
void Q_AUTOTEST_EXPORT mask(char *payload, quint64 size, quint32 maskingKey);
} //end namespace QWebSocketProtocol