aboutsummaryrefslogtreecommitdiffstats
path: root/src/websockets/qwebsocket.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-02-12 15:17:58 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-15 14:40:02 +0100
commit45eadd663ff22df46fadf03c45db7e058e71e476 (patch)
tree896959f43e107cd446b3e948a295e0a7661d4f47 /src/websockets/qwebsocket.h
parentabb6912c11dc322718724eb11e70617d8428b6f5 (diff)
Add user configurable mask generation
Created a QMaskGenerator abstract base class to serve as a basis for user specific mask generators. Added the possibility to override the default mask generation in QWebSocket. Change-Id: Iaa02b44193f854d103b5f352617789175fe61f89 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket.h')
-rw-r--r--src/websockets/qwebsocket.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket.h b/src/websockets/qwebsocket.h
index 660b3a3..bb9f2db 100644
--- a/src/websockets/qwebsocket.h
+++ b/src/websockets/qwebsocket.h
@@ -57,6 +57,7 @@ QT_BEGIN_NAMESPACE
class QTcpSocket;
class QWebSocketPrivate;
+class QMaskGenerator;
class Q_WEBSOCKETS_EXPORT QWebSocket : public QObject
{
@@ -85,6 +86,8 @@ public:
QNetworkProxy proxy() const;
void setProxy(const QNetworkProxy &networkProxy);
#endif
+ void setMaskGenerator(const QMaskGenerator *maskGenerator);
+ const QMaskGenerator *maskGenerator() const;
qint64 readBufferSize() const;
void setReadBufferSize(qint64 size);