Move OpCode out of public API
authorKurt Pattyn <pattyn.kurt@gmail.com>
Mon, 13 Jan 2014 10:23:56 +0000 (11:23 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 13 Jan 2014 15:14:28 +0000 (16:14 +0100)
Change-Id: Ic0b34b684d6f9ca98789304ead1cf8b993422d02
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocketdataprocessor_p.h
src/websockets/qwebsocketframe_p.h
src/websockets/qwebsocketprotocol.h
src/websockets/qwebsocketprotocol_p.h
tests/auto/handshakerequest/tst_handshakerequest.cpp
tests/auto/websocketcorsauthenticator/tst_websocketcorsauthenticator.cpp

index e4252a7..256bcf4 100644 (file)
@@ -58,6 +58,7 @@
 #include <QtCore/QString>
 #include <QtCore/QTextCodec>
 #include "qwebsocketprotocol.h"
+#include "qwebsocketprotocol_p.h"
 
 QT_BEGIN_NAMESPACE
 
index bf7e1d5..74597a2 100644 (file)
@@ -46,8 +46,9 @@
 #include <QtCore/QByteArray>
 #include <limits.h>
 
-#include "qwebsocketprotocol.h"
 #include "qwebsockets_global.h"
+#include "qwebsocketprotocol.h"
+#include "qwebsocketprotocol_p.h"
 
 QT_BEGIN_NAMESPACE
 
index 89dbed4..de62d75 100644 (file)
@@ -84,26 +84,6 @@ enum CloseCode
     CC_TLS_HANDSHAKE_FAILED            = 1015
 };
 
-enum OpCode
-{
-    OC_CONTINUE                = 0x0,
-    OC_TEXT                    = 0x1,
-    OC_BINARY          = 0x2,
-    OC_RESERVED_3      = 0x3,
-    OC_RESERVED_4      = 0x4,
-    OC_RESERVED_5      = 0x5,
-    OC_RESERVED_6      = 0x6,
-    OC_RESERVED_7      = 0x7,
-    OC_CLOSE           = 0x8,
-    OC_PING                    = 0x9,
-    OC_PONG                    = 0xA,
-    OC_RESERVED_B      = 0xB,
-    OC_RESERVED_C      = 0xC,
-    OC_RESERVED_D      = 0xD,
-    OC_RESERVED_E      = 0xE,
-    OC_RESERVED_F      = 0xF
-};
-
 inline Version currentVersion() { return V_LATEST; }
 
 }      //end namespace QWebSocketProtocol
index 2f29e14..2fcbb4d 100644 (file)
@@ -52,6 +52,26 @@ class QByteArray;
 
 namespace QWebSocketProtocol
 {
+enum OpCode
+{
+    OC_CONTINUE     = 0x0,
+    OC_TEXT         = 0x1,
+    OC_BINARY       = 0x2,
+    OC_RESERVED_3   = 0x3,
+    OC_RESERVED_4   = 0x4,
+    OC_RESERVED_5   = 0x5,
+    OC_RESERVED_6   = 0x6,
+    OC_RESERVED_7   = 0x7,
+    OC_CLOSE        = 0x8,
+    OC_PING         = 0x9,
+    OC_PONG         = 0xA,
+    OC_RESERVED_B   = 0xB,
+    OC_RESERVED_C   = 0xC,
+    OC_RESERVED_D   = 0xD,
+    OC_RESERVED_E   = 0xE,
+    OC_RESERVED_F   = 0xF
+};
+
 inline bool isOpCodeReserved(OpCode code)
 {
     return ((code > OC_BINARY) && (code < OC_CLOSE)) || (code > OC_PONG);
index 8b9133c..ca36ff2 100644 (file)
@@ -45,6 +45,7 @@
 #include <QtCore/QtEndian>
 
 #include "private/qwebsockethandshakerequest_p.h"
+#include "private/qwebsocketprotocol_p.h"
 #include "QtWebSockets/qwebsocketprotocol.h"
 
 QT_USE_NAMESPACE
index 80e7b39..6d44241 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "QtWebSockets/qwebsocketcorsauthenticator.h"
 #include "QtWebSockets/qwebsocketprotocol.h"
+#include "private/qwebsocketprotocol_p.h"
 
 QT_USE_NAMESPACE