diff options
author | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-08-25 15:15:45 +0200 |
---|---|---|
committer | Kurt Pattyn <pattyn.kurt@gmail.com> | 2013-08-25 15:15:45 +0200 |
commit | 3a24ef03a45f4b8e81129cbe5a531e5581030228 (patch) | |
tree | 05e0c7ae6795253c01420bf7716961a2e3ed6238 /src/handshakerequest_p.cpp | |
parent | 6afa40e8b150884ce7875ae8c3545e730775a626 (diff) | |
download | qtwebsockets-3a24ef03a45f4b8e81129cbe5a531e5581030228.tar.gz |
Added QT_BEGIN_NAMESPACE and QT_END_NAMESPACE to files
Documented internal classes and methods as \private
Diffstat (limited to 'src/handshakerequest_p.cpp')
-rw-r--r-- | src/handshakerequest_p.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/handshakerequest_p.cpp b/src/handshakerequest_p.cpp index c2b2403..7f02fde 100644 --- a/src/handshakerequest_p.cpp +++ b/src/handshakerequest_p.cpp @@ -7,6 +7,11 @@ #include <QStringList> #include "qwebsocketprotocol.h" +QT_BEGIN_NAMESPACE + +/*! + \internal + */ HandshakeRequest::HandshakeRequest(int port, bool isSecure) : m_port(port), m_isSecure(isSecure), @@ -21,10 +26,16 @@ HandshakeRequest::HandshakeRequest(int port, bool isSecure) : { } +/*! + \internal + */ HandshakeRequest::~HandshakeRequest() { } +/*! + \internal + */ void HandshakeRequest::clear() { m_port = -1; @@ -39,66 +50,105 @@ void HandshakeRequest::clear() m_requestUrl.clear(); } +/*! + \internal + */ int HandshakeRequest::getPort() const { return m_requestUrl.port(m_port); } +/*! + \internal + */ bool HandshakeRequest::isSecure() const { return m_isSecure; } +/*! + \internal + */ bool HandshakeRequest::isValid() const { return m_isValid; } +/*! + \internal + */ QMap<QString, QString> HandshakeRequest::getHeaders() const { return m_headers; } +/*! + \internal + */ QList<QWebSocketProtocol::Version> HandshakeRequest::getVersions() const { return m_versions; } +/*! + \internal + */ QString HandshakeRequest::getResourceName() const { return m_requestUrl.path(); } +/*! + \internal + */ QString HandshakeRequest::getKey() const { return m_key; } +/*! + \internal + */ QString HandshakeRequest::getHost() const { return m_requestUrl.host(); } +/*! + \internal + */ QString HandshakeRequest::getOrigin() const { return m_origin; } +/*! + \internal + */ QList<QString> HandshakeRequest::getProtocols() const { return m_protocols; } +/*! + \internal + */ QList<QString> HandshakeRequest::getExtensions() const { return m_extensions; } +/*! + \internal + */ QUrl HandshakeRequest::getRequestUrl() const { return m_requestUrl; } +/*! + \internal + */ QTextStream &HandshakeRequest::readFromStream(QTextStream &textStream) { m_isValid = false; @@ -189,7 +239,12 @@ QTextStream &HandshakeRequest::readFromStream(QTextStream &textStream) return textStream; } +/*! + \internal + */ QTextStream &operator >>(QTextStream &stream, HandshakeRequest &request) { return request.readFromStream(stream); } + +QT_END_NAMESPACE |