Update documentation
authorKurt Pattyn <pattyn.kurt@gmail.com>
Mon, 13 Jan 2014 10:28:21 +0000 (11:28 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 13 Jan 2014 11:18:10 +0000 (12:18 +0100)
Change-Id: I98cab390cbb0f19741d6fa4ae5b0ada8d19d1f5f
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/imports/qmlwebsockets/qqmlwebsocket.cpp
src/websockets/qwebsocketprotocol.cpp

index d2f1016..8a87218 100644 (file)
     \ingroup websockets-qml
     \brief QML interface to QWebSocket.
 
-    WebSockets is a web technology providing full-duplex communications channels over a single TCP connection.
-    The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011 (see http://tools.ietf.org/html/rfc6455).
+    WebSockets is a web technology providing full-duplex communications channels over a
+    single TCP connection.
+    The WebSocket protocol was standardized by the IETF as
+    \l {http://tools.ietf.org/html/rfc6455} {RFC 6455} in 2011.
 */
 
 /*!
   \qmlproperty QUrl WebSocket::url
-  Server url to connect to. The url must have one of 2 schemes: {ws://} or {wss://}.
-  When not supplied, then {ws://} is used.
+  Server url to connect to. The url must have one of 2 schemes: \e ws:// or \e wss://.
+  When not supplied, then \e ws:// is used.
   */
 
 /*!
index cd95438..3b5c52d 100644 (file)
@@ -115,6 +115,33 @@ QT_BEGIN_NAMESPACE
 */
 
 /*!
+    \enum QWebSocketProtocol::OpCode
+
+    \inmodule QtWebSockets
+
+    The frame opcodes as defined by the WebSockets standard
+
+    \value OC_CONTINUE      Continuation frame
+    \value OC_TEXT          Text frame
+    \value OC_BINARY        Binary frame
+    \value OC_RESERVED_3    Reserved
+    \value OC_RESERVED_4    Reserved
+    \value OC_RESERVED_5    Reserved
+    \value OC_RESERVED_6    Reserved
+    \value OC_RESERVED_7    Reserved
+    \value OC_CLOSE         Close frame
+    \value OC_PING          Ping frame
+    \value OC_PONG          Pong frame
+    \value OC_RESERVED_B    Reserved
+    \value OC_RESERVED_C    Reserved
+    \value OC_RESERVED_D    Reserved
+    \value OC_RESERVED_E    Reserved
+    \value OC_RESERVED_F    Reserved
+
+    \internal
+*/
+
+/*!
   \fn QWebSocketProtocol::isOpCodeReserved(OpCode code)
   Checks if \a code is a valid OpCode