summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocketframe_p.h
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2013-10-13 13:01:40 +0200
committerKurt Pattyn <pattyn.kurt@gmail.com>2013-10-13 16:57:49 +0200
commit5afb5326cb0392ad9537e1086b4699f6f6f09bf6 (patch)
treebcc081f8cc4f3b9ce5158a54c8191e6367e3f1da /src/websockets/qwebsocketframe_p.h
parent363914a13099b410efece8cfd9556f770ed97906 (diff)
downloadqtwebsockets-5afb5326cb0392ad9537e1086b4699f6f6f09bf6.tar.gz
Renamed getter methods to be Qt compliant
Renamed all getXXX() methods in QWebSocketFrame to XXX() methods to be Qt compliant. Change-Id: Iea47bcf1772a755f303065ff12d07b0ba99d4aac Reviewed-by: Steven Ceuppens <steven.ceuppens@icloud.com>
Diffstat (limited to 'src/websockets/qwebsocketframe_p.h')
-rw-r--r--src/websockets/qwebsocketframe_p.h25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/websockets/qwebsocketframe_p.h b/src/websockets/qwebsocketframe_p.h
index 5dc0957..e1c9e3e 100644
--- a/src/websockets/qwebsocketframe_p.h
+++ b/src/websockets/qwebsocketframe_p.h
@@ -20,12 +20,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef QWEBSOCKETFRAME_P_H
#define QWEBSOCKETFRAME_P_H
-#include "qwebsocketprotocol.h"
+#include <QString>
+#include <QByteArray>
+#include <limits.h>
-#include <QIODevice>
+#include "qwebsocketprotocol.h"
+#include "qwebsockets_global.h"
QT_BEGIN_NAMESPACE
+class QIODevice;
+
const quint64 MAX_FRAME_SIZE_IN_BYTES = INT_MAX - 1;
const quint64 MAX_MESSAGE_SIZE_IN_BYTES = INT_MAX - 1;
@@ -37,19 +42,19 @@ public:
const QWebSocketFrame &operator =(const QWebSocketFrame &other);
- QWebSocketProtocol::CloseCode getCloseCode() const;
- QString getCloseReason() const;
+ QWebSocketProtocol::CloseCode closeCode() const;
+ QString closeReason() const;
bool isFinalFrame() const;
bool isControlFrame() const;
bool isDataFrame() const;
bool isContinuationFrame() const;
bool hasMask() const;
- quint32 getMask() const; //returns 0 if no mask
- int getRsv1() const;
- int getRsv2() const;
- int getRsv3() const;
- QWebSocketProtocol::OpCode getOpCode() const;
- QByteArray getPayload() const;
+ quint32 mask() const; //returns 0 if no mask
+ int rsv1() const;
+ int rsv2() const;
+ int rsv3() const;
+ QWebSocketProtocol::OpCode opCode() const;
+ QByteArray payload() const;
void clear(); //resets all member variables, and invalidates the object