From c4562ac53bba7b587af2fcb5eebd6051b11d1f04 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 29 Jan 2015 13:41:23 +0000 Subject: - two new's replaced with aggregates - member's name unification git-svn-id: http://svn.miranda-ng.org/main/trunk@11948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp index c788fd3124..1f8c46faf2 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp @@ -30,7 +30,7 @@ WALogin::WALogin(WAConnection* connection, const std::string& password) std::vector WALogin::login(const std::vector& authBlob) { - m_pConnection->out->streamStart(m_pConnection->domain, m_pConnection->resource); + m_pConnection->out.streamStart(m_pConnection->domain, m_pConnection->resource); m_pConnection->logData("sent stream start"); @@ -42,7 +42,7 @@ std::vector WALogin::login(const std::vector& auth m_pConnection->logData("send auth, auth blob size %d", authBlob.size()); - m_pConnection->in->streamStart(); + m_pConnection->in.streamStart(); m_pConnection->logData("read stream start"); @@ -52,7 +52,7 @@ std::vector WALogin::login(const std::vector& auth void WALogin::sendResponse(const std::vector& challengeData) { std::vector* authBlob = this->getAuthBlob(challengeData); - m_pConnection->out->write(ProtocolTreeNode("response", authBlob)); + m_pConnection->out.write(ProtocolTreeNode("response", authBlob)); } void WALogin::sendFeatures() @@ -64,7 +64,7 @@ void WALogin::sendFeatures() ProtocolTreeNode* pictureChild = new ProtocolTreeNode("w:profile:picture") << XATTR("type", "all"); children->push_back(pictureChild); - m_pConnection->out->write(ProtocolTreeNode("stream:features", NULL, children), true); + m_pConnection->out.write(ProtocolTreeNode("stream:features", NULL, children), true); } void WALogin::sendAuth(const std::vector& existingChallenge) @@ -73,7 +73,7 @@ void WALogin::sendAuth(const std::vector& existingChallenge) if (!existingChallenge.empty()) data = this->getAuthBlob(existingChallenge); - m_pConnection->out->write(ProtocolTreeNode("auth", data) << + m_pConnection->out.write(ProtocolTreeNode("auth", data) << XATTR("mechanism", "WAUTH-2") << XATTR("user", m_pConnection->user), true); } @@ -98,7 +98,7 @@ std::vector* WALogin::getAuthBlob(const std::vector WALogin::readFeaturesUntilChallengeOrSuccess() { - while (ProtocolTreeNode *root = m_pConnection->in->nextTree()) { + while (ProtocolTreeNode *root = m_pConnection->in.nextTree()) { #ifdef _DEBUG { string tmp = root->toString(); @@ -131,7 +131,7 @@ std::vector WALogin::readFeaturesUntilChallengeOrSuccess() void WALogin::parseSuccessNode(ProtocolTreeNode* node) { - m_pConnection->out->setSecure(); + m_pConnection->out.setSecure(); const string &expiration = node->getAttributeValue("expiration"); if (!expiration.empty()) { @@ -151,7 +151,7 @@ void WALogin::parseSuccessNode(ProtocolTreeNode* node) std::vector WALogin::readSuccess() { - ProtocolTreeNode *node = m_pConnection->in->nextTree(); + ProtocolTreeNode *node = m_pConnection->in.nextTree(); if (ProtocolTreeNode::tagEquals(node, "failure")) { delete node; -- cgit v1.2.3