summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-01-12 20:28:07 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-12 20:28:52 +0100
commit98b3f19b107b3b30323caabc94ace06f4a51d38a (patch)
treefcc1c2c84dcda81a59f225aa35636dd0ad72ab3a /src/websockets/qwebsocket.h
parentd32da4165264b9502a636ee5f9e11d80e25f09d2 (diff)
downloadqtwebsockets-98b3f19b107b3b30323caabc94ace06f4a51d38a.tar.gz
Limit line length to 100 characters.
Change-Id: I9da963570b174b9a5a33e65cf144402677b4bab5 Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Diffstat (limited to 'src/websockets/qwebsocket.h')
-rw-r--r--src/websockets/qwebsocket.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/websockets/qwebsocket.h b/src/websockets/qwebsocket.h
index 927350a..dbb13cf 100644
--- a/src/websockets/qwebsocket.h
+++ b/src/websockets/qwebsocket.h
@@ -104,10 +104,10 @@ public:
QWebSocketProtocol::CloseCode closeCode() const;
QString closeReason() const;
- qint64 write(const char *message); //send data as text
- qint64 write(const char *message, qint64 maxSize); //send data as text
- qint64 write(const QString &message); //send data as text
- qint64 write(const QByteArray &data); //send data as binary
+ qint64 write(const char *message) Q_REQUIRED_RESULT;
+ qint64 write(const char *message, qint64 maxSize) Q_REQUIRED_RESULT;
+ qint64 write(const QString &message) Q_REQUIRED_RESULT;
+ qint64 write(const QByteArray &data) Q_REQUIRED_RESULT;
#ifndef QT_NO_SSL
void ignoreSslErrors(const QList<QSslError> &errors);
@@ -116,7 +116,8 @@ public:
#endif
public Q_SLOTS:
- void close(QWebSocketProtocol::CloseCode closeCode = QWebSocketProtocol::CC_NORMAL, const QString &reason = QString());
+ void close(QWebSocketProtocol::CloseCode closeCode = QWebSocketProtocol::CC_NORMAL,
+ const QString &reason = QString());
void open(const QUrl &url, bool mask = true);
void ping(const QByteArray &payload = QByteArray());
#ifndef QT_NO_SSL
@@ -145,7 +146,8 @@ Q_SIGNALS:
#endif
private:
- QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QObject *parent = Q_NULLPTR);
+ QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version,
+ QObject *parent = Q_NULLPTR);
QWebSocketPrivate * const d_ptr;
};