contrib/qtwebsockets.git
11 years agoAdded payload to ping() method and pong() signal
Kurt Pattyn [Sat, 31 Aug 2013 18:57:26 +0000 (20:57 +0200)]
Added payload to ping() method and pong() signal

11 years agoChanged the way origins are checked. Instead of a virtual method, we now use a QCorsA...
Kurt Pattyn [Sat, 31 Aug 2013 18:43:37 +0000 (20:43 +0200)]
Changed the way origins are checked. Instead of a virtual method, we now use a QCorsAuthenticator object and the signal originAuthenticationRequired(). This is modelled after the way QNetworkAccessManager handles authentication.
By using a signal iso of virtual method, applications must not subclass QWebSocketServer anymore to add origin checks.

11 years agoAdded \internal to documentation of new methods
Kurt Pattyn [Sat, 31 Aug 2013 17:13:36 +0000 (19:13 +0200)]
Added \internal to documentation of new methods

11 years agoMoved registerMetaType calls to init() method
Kurt Pattyn [Sat, 31 Aug 2013 17:09:01 +0000 (19:09 +0200)]
Moved registerMetaType calls to init() method

11 years agoMoved processing of control frame from QWebSocketPrivate to DataProcessor.
Kurt Pattyn [Sat, 31 Aug 2013 17:07:32 +0000 (19:07 +0200)]
Moved processing of control frame from QWebSocketPrivate to DataProcessor.
Added closeReceived(), pingReceived() and pongReceived() signals.
Added processClose(), processPing() and processPong() slot to QWebSocketPrivate

11 years agoAdded documentation for internally used classes
Kurt Pattyn [Sat, 31 Aug 2013 17:04:14 +0000 (19:04 +0200)]
Added documentation for internally used classes

11 years agoAdded ordered flag to build in declared order
Kurt Pattyn [Sat, 31 Aug 2013 16:47:24 +0000 (18:47 +0200)]
Added ordered flag to build in declared order

11 years agoAdded -Wextra compiler check
Kurt Pattyn [Fri, 30 Aug 2013 12:05:28 +0000 (14:05 +0200)]
Added -Wextra compiler check

11 years agoAdded -Wall and -Werror flags when building on mac (is in fact dependent on the compi...
Kurt Pattyn [Fri, 30 Aug 2013 11:58:40 +0000 (13:58 +0200)]
Added -Wall and -Werror flags when building on mac (is in fact dependent on the compiler that is used; currently don't know how to check that)

11 years agoAdded extra unit tests
Kurt Pattyn [Thu, 29 Aug 2013 19:05:43 +0000 (21:05 +0200)]
Added extra unit tests

11 years agoAdded a bunch of tests (still not complete; listed tests still to be done in TO DO...
Kurt Pattyn [Wed, 28 Aug 2013 22:19:02 +0000 (00:19 +0200)]
Added a bunch of tests (still not complete; listed tests still to be done in TO DO items)

11 years agoAdded TO DO's for tests still to be implemented
Kurt Pattyn [Wed, 28 Aug 2013 22:18:05 +0000 (00:18 +0200)]
Added TO DO's for tests still to be implemented

11 years agoChanged error string
Kurt Pattyn [Wed, 28 Aug 2013 22:17:27 +0000 (00:17 +0200)]
Changed error string

11 years agoSolved comparison bug (detected through unit tests :-) )
Kurt Pattyn [Wed, 28 Aug 2013 22:16:55 +0000 (00:16 +0200)]
Solved comparison bug (detected through unit tests :-) )

11 years agoAdded unit tests for:
Kurt Pattyn [Tue, 27 Aug 2013 22:01:22 +0000 (00:01 +0200)]
Added unit tests for:
- incomplete headers
- invalid headers
- invalid payloads

11 years agoHeaders are ok
Kurt Pattyn [Tue, 27 Aug 2013 21:59:53 +0000 (23:59 +0200)]
Headers are ok

11 years agoAdded extra error checks on network reads
Kurt Pattyn [Tue, 27 Aug 2013 21:59:32 +0000 (23:59 +0200)]
Added extra error checks on network reads

11 years agoRedirect errors to DISPATCH_RESULT state, instead of directly setting isDone=true...
Kurt Pattyn [Tue, 27 Aug 2013 21:03:18 +0000 (23:03 +0200)]
Redirect errors to DISPATCH_RESULT state, instead of directly setting isDone=true (makes the code cleaner, but a bit slower on errors)

11 years agoAdded extra checks:
Kurt Pattyn [Tue, 27 Aug 2013 21:01:19 +0000 (23:01 +0200)]
Added extra checks:
- check on minimum representation of frame length (according RFC 6455 para 5.2)
- extra checks on network read errors

11 years agoAdded dataprocessor test
Kurt Pattyn [Mon, 26 Aug 2013 20:43:28 +0000 (22:43 +0200)]
Added dataprocessor test

11 years agoCorrected type in reserved opcode names
Kurt Pattyn [Mon, 26 Aug 2013 20:42:26 +0000 (22:42 +0200)]
Corrected type in reserved opcode names

11 years agoReplaced QTcpSocket * with a QIODevice * to make network independent unit tests possible.
Kurt Pattyn [Mon, 26 Aug 2013 17:04:27 +0000 (19:04 +0200)]
Replaced QTcpSocket * with a QIODevice * to make network independent unit tests possible.

11 years agoAdded accessor and setter for the server name
Kurt Pattyn [Mon, 26 Aug 2013 15:39:38 +0000 (17:39 +0200)]
Added accessor and setter for the server name

11 years agoReplace QWebSocket:: scope with QObject:: in calls to tr()
Kurt Pattyn [Mon, 26 Aug 2013 15:26:39 +0000 (17:26 +0200)]
Replace QWebSocket:: scope with QObject:: in calls to tr()

11 years agoRemoved scope (i.e. QWebSocket) from tr() callls
Kurt Pattyn [Mon, 26 Aug 2013 15:26:10 +0000 (17:26 +0200)]
Removed scope (i.e. QWebSocket) from tr() callls

11 years agoImplemented Q_D and Q_Q paradigm
Kurt Pattyn [Mon, 26 Aug 2013 13:07:08 +0000 (15:07 +0200)]
Implemented Q_D and Q_Q paradigm

11 years agoMade parameters const references
Kurt Pattyn [Mon, 26 Aug 2013 13:06:28 +0000 (15:06 +0200)]
Made parameters const references

11 years agoRemoved friend class declaration as it is already contained in the Q_DECLARE_PRIVATE...
Kurt Pattyn [Mon, 26 Aug 2013 13:04:52 +0000 (15:04 +0200)]
Removed friend class declaration as it is already contained in the Q_DECLARE_PRIVATE macro

11 years agoReplaced use of d_ptr and q_ptr with usage of Q_D and Q_Q
Kurt Pattyn [Mon, 26 Aug 2013 12:15:47 +0000 (14:15 +0200)]
Replaced use of d_ptr and q_ptr with usage of Q_D and Q_Q

11 years agoReplace QT_BUILD_SERIALPORT_LIB with QT_BUILD_WEBSOCKETS_LIB
Kurt Pattyn [Mon, 26 Aug 2013 11:03:44 +0000 (13:03 +0200)]
Replace QT_BUILD_SERIALPORT_LIB with QT_BUILD_WEBSOCKETS_LIB

11 years agoAdapted documentation to qDoc style
Kurt Pattyn [Mon, 26 Aug 2013 11:03:15 +0000 (13:03 +0200)]
Adapted documentation to qDoc style

11 years agoDisconnect previously connected signal (was forgotten)
Kurt Pattyn [Mon, 26 Aug 2013 11:02:48 +0000 (13:02 +0200)]
Disconnect previously connected signal (was forgotten)

11 years agoRemoved default values from methods in private class
Kurt Pattyn [Mon, 26 Aug 2013 11:02:24 +0000 (13:02 +0200)]
Removed default values from methods in private class

11 years agoRemoved virtual from open and close methods
Kurt Pattyn [Mon, 26 Aug 2013 11:01:49 +0000 (13:01 +0200)]
Removed virtual from open and close methods

11 years agoMade accessor methods const; made serverName parameter const in QWebSocket
Kurt Pattyn [Mon, 26 Aug 2013 11:01:22 +0000 (13:01 +0200)]
Made accessor methods const; made serverName parameter const in QWebSocket

11 years agoAdded optimised string concatenation (replaced '+' with '%')
Kurt Pattyn [Mon, 26 Aug 2013 10:59:26 +0000 (12:59 +0200)]
Added optimised string concatenation (replaced '+' with '%')

11 years agoAdd tr() to translatable strings
Kurt Pattyn [Mon, 26 Aug 2013 10:58:04 +0000 (12:58 +0200)]
Add tr() to translatable strings

11 years agoReplaced tabs by spaces
Kurt Pattyn [Sun, 25 Aug 2013 20:35:13 +0000 (22:35 +0200)]
Replaced tabs by spaces

11 years agoAdded sync.profile based on that of QtSerialPort
Kurt Pattyn [Sun, 25 Aug 2013 19:45:41 +0000 (21:45 +0200)]
Added sync.profile based on that of QtSerialPort

11 years agoChanged license to LGPL 2.1 (comes from LGPL 3.0)
Kurt Pattyn [Sun, 25 Aug 2013 18:44:09 +0000 (20:44 +0200)]
Changed license to LGPL 2.1 (comes from LGPL 3.0)

11 years agoAdded required structure and .pro files to the project
Kurt Pattyn [Sun, 25 Aug 2013 18:39:13 +0000 (20:39 +0200)]
Added required structure and .pro files to the project

11 years agoAdded dev specific files to ignore list
Kurt Pattyn [Sun, 25 Aug 2013 18:38:48 +0000 (20:38 +0200)]
Added dev specific files to ignore list

11 years agoCleaned up a bit
Kurt Pattyn [Sun, 25 Aug 2013 17:59:22 +0000 (19:59 +0200)]
Cleaned up a bit
Made it analog to serialport qdocconfig

11 years agoRenamed qwebsocket.pri to qwebsockets.pri
Kurt Pattyn [Sun, 25 Aug 2013 17:58:21 +0000 (19:58 +0200)]
Renamed qwebsocket.pri to qwebsockets.pri

11 years agoIgnore generated documentation
Kurt Pattyn [Sun, 25 Aug 2013 17:28:49 +0000 (19:28 +0200)]
Ignore generated documentation

11 years agoAdapted copyright disclaimer to be a pure C++ comment
Kurt Pattyn [Sun, 25 Aug 2013 17:28:20 +0000 (19:28 +0200)]
Adapted copyright disclaimer to be a pure C++ comment

11 years agoMoved doc directory to src as required by Qt
Kurt Pattyn [Sun, 25 Aug 2013 17:27:33 +0000 (19:27 +0200)]
Moved doc directory to src as required by Qt

11 years agoAdded copyright disclaimer to all files
Kurt Pattyn [Sun, 25 Aug 2013 17:14:09 +0000 (19:14 +0200)]
Added copyright disclaimer to all files

11 years agoMade documentation qdoc compatible
Kurt Pattyn [Sun, 25 Aug 2013 16:54:06 +0000 (18:54 +0200)]
Made documentation qdoc compatible

11 years agoAdded QWebSockets module documentation
Kurt Pattyn [Sun, 25 Aug 2013 16:53:43 +0000 (18:53 +0200)]
Added QWebSockets module documentation

11 years agoAdded qdoc configuration file
Kurt Pattyn [Sun, 25 Aug 2013 16:53:28 +0000 (18:53 +0200)]
Added qdoc configuration file

11 years agoRemoved doxygen configuration files
Kurt Pattyn [Sun, 25 Aug 2013 16:52:51 +0000 (18:52 +0200)]
Removed doxygen configuration files

11 years agoCleaned up the project files
Kurt Pattyn [Sun, 25 Aug 2013 13:36:43 +0000 (15:36 +0200)]
Cleaned up the project files

11 years agoReordered the lines a bit
Kurt Pattyn [Sun, 25 Aug 2013 13:23:30 +0000 (15:23 +0200)]
Reordered the lines a bit

11 years agoAdded extra signal reemission
Kurt Pattyn [Sun, 25 Aug 2013 13:22:54 +0000 (15:22 +0200)]
Added extra signal reemission
Cleaned up unused signals

11 years agoAdded missing functionality after a comparison between QWebSocket and QTcpSocket...
Kurt Pattyn [Sun, 25 Aug 2013 13:22:23 +0000 (15:22 +0200)]
Added missing functionality after a comparison between QWebSocket and QTcpSocket and between QWebSocketServer and QTcpServer

11 years agoAdded check on QT_NO_NETWORKPROXY to include proxy functionality only when required
Kurt Pattyn [Sun, 25 Aug 2013 13:20:05 +0000 (15:20 +0200)]
Added check on QT_NO_NETWORKPROXY to include proxy functionality only when required

11 years agoAdded QT_BEGIN_NAMESPACE and QT_END_NAMESPACE to files
Kurt Pattyn [Sun, 25 Aug 2013 13:15:45 +0000 (15:15 +0200)]
Added QT_BEGIN_NAMESPACE and QT_END_NAMESPACE to files
Documented internal classes and methods as \private

11 years agoReplaced write() methods with send() methods to comply with the QAbstractSocket API
Kurt Pattyn [Sun, 25 Aug 2013 13:09:02 +0000 (15:09 +0200)]
Replaced write() methods with send() methods to comply with the QAbstractSocket API

11 years agoRenamed websocket.pri to qwebsocket.pri
Kurt Pattyn [Sun, 25 Aug 2013 11:48:10 +0000 (13:48 +0200)]
Renamed websocket.pri to qwebsocket.pri

11 years agoAdded warning comment to private header files
Kurt Pattyn [Sat, 24 Aug 2013 23:04:23 +0000 (01:04 +0200)]
Added warning comment to private header files

11 years agoRenamed test directory to tests (to be inline with Qt)
Kurt Pattyn [Sat, 24 Aug 2013 22:52:43 +0000 (00:52 +0200)]
Renamed test directory to tests (to be inline with Qt)

11 years agoRenamed source directory to src (to be in line with Qt)
Kurt Pattyn [Sat, 24 Aug 2013 22:50:59 +0000 (00:50 +0200)]
Renamed source directory to src (to be in line with Qt)

11 years agoRemoved unnecessary includes
Kurt Pattyn [Sat, 24 Aug 2013 21:54:01 +0000 (23:54 +0200)]
Removed unnecessary includes

11 years agoAdded cache() command at start of .pro file to avoid qmake warnings in OS X
Kurt Pattyn [Sat, 24 Aug 2013 21:52:04 +0000 (23:52 +0200)]
Added cache() command at start of .pro file to avoid qmake warnings in OS X

11 years agoAdded d-pointer paradigm to QWebSocket implementation
Kurt Pattyn [Sat, 24 Aug 2013 21:51:30 +0000 (23:51 +0200)]
Added d-pointer paradigm to QWebSocket implementation

11 years agoAdded d-pointer paradigm to QWebSocketServer implementation
Kurt Pattyn [Sat, 24 Aug 2013 20:35:42 +0000 (22:35 +0200)]
Added d-pointer paradigm to QWebSocketServer implementation

11 years agoAdded export statements to public classes
Kurt Pattyn [Sat, 24 Aug 2013 19:21:06 +0000 (21:21 +0200)]
Added export statements to public classes

11 years agoRenamed WebSocket to QWebSocket
Kurt Pattyn [Sat, 24 Aug 2013 19:16:50 +0000 (21:16 +0200)]
Renamed WebSocket to QWebSocket
Renamed WebSocketProtocol to QWebSocketProtocol
Renamed WebSocketServer to QWebSocketServer
Adapted source files to include renamed headers
Added qwebsocketsglobal.h file

11 years agoAdded server name field to constructor
Kurt Pattyn [Thu, 22 Aug 2013 21:50:58 +0000 (23:50 +0200)]
Added server name field to constructor

11 years agoAdded serverName parameter to WebSocketServer constructor
Kurt Pattyn [Thu, 22 Aug 2013 21:46:17 +0000 (23:46 +0200)]
Added serverName parameter to WebSocketServer constructor
Added isOriginAllowed() virtual method to WebSocketServer that can be overridden by subclasses
Added serverName and originAllowed parameters to handshake response constructor to avoid hardcoded values

11 years agoRetrieve HTTP version iso assuming that it is 1.1
Kurt Pattyn [Thu, 22 Aug 2013 19:49:58 +0000 (21:49 +0200)]
Retrieve HTTP version iso assuming that it is 1.1
According RFC 6455, the version must be bigger than or equal to 1.1, so we solved an incompatibility as well

11 years agoRemoved commented out code
Kurt Pattyn [Thu, 22 Aug 2013 19:27:00 +0000 (21:27 +0200)]
Removed commented out code

11 years agoCommented out currently unused variables
Kurt Pattyn [Thu, 22 Aug 2013 19:23:53 +0000 (21:23 +0200)]
Commented out currently unused variables

11 years agoMinor adjustments to comments
Kurt Pattyn [Thu, 22 Aug 2013 19:23:18 +0000 (21:23 +0200)]
Minor adjustments to comments

11 years agoRetrieve HTTP version iso assuming that it is 1.1
Kurt Pattyn [Thu, 22 Aug 2013 19:22:40 +0000 (21:22 +0200)]
Retrieve HTTP version iso assuming that it is 1.1
According RFC 6455, the version must be bigger than or equal to 1.1, so we solved an incompatibility as well

11 years agoAdded build specific files to ignore list
Kurt Pattyn [Thu, 22 Aug 2013 18:55:13 +0000 (20:55 +0200)]
Added build specific files to ignore list

11 years agoRemoved the starting default comment
Kurt Pattyn [Thu, 22 Aug 2013 18:54:27 +0000 (20:54 +0200)]
Removed the starting default comment

11 years agoAppended _p to the names of internal files
Kurt Pattyn [Thu, 22 Aug 2013 18:53:58 +0000 (20:53 +0200)]
Appended _p to the names of internal files

11 years agoRenamed WebSocketProtocol::getCurrentVersion() with currentVersion()
Kurt Pattyn [Thu, 22 Aug 2013 18:42:53 +0000 (20:42 +0200)]
Renamed WebSocketProtocol::getCurrentVersion() with currentVersion()

11 years agoRemoved unnecessary forward declaration
Kurt Pattyn [Thu, 22 Aug 2013 18:40:27 +0000 (20:40 +0200)]
Removed unnecessary forward declaration

11 years agoRemoved the verb 'get' from the name of public getters
Kurt Pattyn [Thu, 22 Aug 2013 18:40:07 +0000 (20:40 +0200)]
Removed the verb 'get' from the name of public getters

11 years agoRemoved the verb 'get' from the name of public getters
Kurt Pattyn [Thu, 22 Aug 2013 18:37:30 +0000 (20:37 +0200)]
Removed the verb 'get' from the name of public getters

11 years agoReplaced QRegExp with QRegularExpression as suggested by Shane
Kurt Pattyn [Thu, 22 Aug 2013 18:26:39 +0000 (20:26 +0200)]
Replaced QRegExp with QRegularExpression as suggested by Shane

11 years agoMerge branch 'master' of https://github.com/KurtPattyn/QWebSockets
Kurt Pattyn [Thu, 22 Aug 2013 18:25:26 +0000 (20:25 +0200)]
Merge branch 'master' of https://github.com/KurtPattyn/QWebSockets

11 years agoDeleted unnecessary file
Kurt Pattyn [Thu, 22 Aug 2013 18:24:21 +0000 (20:24 +0200)]
Deleted unnecessary file

11 years agoAdd usage paragraph
Kurt Pattyn [Mon, 19 Aug 2013 21:34:08 +0000 (23:34 +0200)]
Add usage paragraph

11 years agoAdded TODO line indicating removal of fixed values
Kurt Pattyn [Thu, 15 Aug 2013 12:41:48 +0000 (14:41 +0200)]
Added TODO line indicating removal of fixed values

11 years agoRemoved the fixed version from the response
Kurt Pattyn [Thu, 15 Aug 2013 12:41:14 +0000 (14:41 +0200)]
Removed the fixed version from the response

11 years agoAdded comment to fixed string indicating it is a constant coming from the RFC
Kurt Pattyn [Thu, 15 Aug 2013 12:40:42 +0000 (14:40 +0200)]
Added comment to fixed string indicating it is a constant coming from the RFC

11 years agoAdded setErrorString v0.9.0
Kurt Pattyn [Tue, 13 Aug 2013 14:42:48 +0000 (16:42 +0200)]
Added setErrorString

11 years agoSplit frameReceived into textFrameReceived, binaryFrameReceived and controlFrameReceived
Kurt Pattyn [Tue, 13 Aug 2013 14:42:28 +0000 (16:42 +0200)]
Split frameReceived into textFrameReceived, binaryFrameReceived and controlFrameReceived

11 years agoAdded doxygen snippet tags
Kurt Pattyn [Tue, 13 Aug 2013 12:49:28 +0000 (14:49 +0200)]
Added doxygen snippet tags

11 years agoFinished doxygen documentation
Kurt Pattyn [Tue, 13 Aug 2013 12:49:13 +0000 (14:49 +0200)]
Finished doxygen documentation

11 years agoMade setSocketState private
Kurt Pattyn [Tue, 13 Aug 2013 12:36:32 +0000 (14:36 +0200)]
Made setSocketState private

11 years agoChanged configuration to:
Kurt Pattyn [Tue, 13 Aug 2013 12:36:10 +0000 (14:36 +0200)]
Changed configuration to:
- include examples
- exclude friend classes
- use C++ output

11 years agoAdded doxygen documentation
Kurt Pattyn [Tue, 13 Aug 2013 12:35:27 +0000 (14:35 +0200)]
Added doxygen documentation

11 years agoAdded doxygen snippet tags
Kurt Pattyn [Tue, 13 Aug 2013 12:33:59 +0000 (14:33 +0200)]
Added doxygen snippet tags

11 years agoRenamed WebWocketClient to EchoClient to be consistent with the EchoServer example
Kurt Pattyn [Tue, 13 Aug 2013 12:33:31 +0000 (14:33 +0200)]
Renamed WebWocketClient to EchoClient to be consistent with the EchoServer example
Added QUrl parameter to constructor

11 years agoRenamed WebWocketClient to EchoClient to be consistent with the EchoServer example
Kurt Pattyn [Tue, 13 Aug 2013 12:32:03 +0000 (14:32 +0200)]
Renamed WebWocketClient to EchoClient to be consistent with the EchoServer example