aboutsummaryrefslogtreecommitdiffstats
path: root/src/websockets/qwebsocket.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-10-31 09:31:25 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-31 11:52:27 +0100
commit3501d4e9c315af97f0d7878d1af7f4300a815ea3 (patch)
treed8ada550d4ef45aad87bc44150b4a36218e06a50 /src/websockets/qwebsocket.h
parent7a156a994dd093de80289574d0b542d59a5dd955 (diff)
Implement of secure web sockets
Change-Id: I1f96d5e4e327eae211fd6b458168e1f7607e2dcf Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket.h')
-rw-r--r--src/websockets/qwebsocket.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/websockets/qwebsocket.h b/src/websockets/qwebsocket.h
index a820dcd..fbc3b36 100644
--- a/src/websockets/qwebsocket.h
+++ b/src/websockets/qwebsocket.h
@@ -24,7 +24,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef QT_NO_NETWORKPROXY
#include <QNetworkProxy>
#endif
-
+#ifndef QT_NO_SSL
+#include <QSslError>
+#include <QSslConfiguration>
+#endif
#include "qwebsockets_global.h"
#include "qwebsocketprotocol.h"
@@ -83,6 +86,12 @@ public:
qint64 write(const QString &message); //send data as text
qint64 write(const QByteArray &data); //send data as binary
+#ifndef QT_NO_SSL
+ void ignoreSslErrors(const QList<QSslError> &errors);
+ void setSslConfiguration(const QSslConfiguration &sslConfiguration);
+ QSslConfiguration sslConfiguration() const;
+#endif
+
public Q_SLOTS:
void close(QWebSocketProtocol::CloseCode closeCode = QWebSocketProtocol::CC_NORMAL, const QString &reason = QString());
void open(const QUrl &url, bool mask = true);
@@ -103,6 +112,7 @@ Q_SIGNALS:
void binaryMessageReceived(QByteArray message);
void error(QAbstractSocket::SocketError error);
void pong(quint64 elapsedTime, QByteArray payload);
+ void bytesWritten(qint64 bytes);
private:
QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QObject *parent = Q_NULLPTR);