diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-29 13:41:23 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-29 13:41:23 +0000 |
commit | c4562ac53bba7b587af2fcb5eebd6051b11d1f04 (patch) | |
tree | 0485d1182ebfd7c8d665c8afb9fef02fa3a8cbce /protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | |
parent | e925caad25e01600e61de2e909d63037dd574a6e (diff) |
- 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
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<unsigned char> WALogin::login(const std::vector<unsigned char>& 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<unsigned char> WALogin::login(const std::vector<unsigned char>& 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<unsigned char> WALogin::login(const std::vector<unsigned char>& auth void WALogin::sendResponse(const std::vector<unsigned char>& challengeData)
{
std::vector<unsigned char>* 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<unsigned char>& existingChallenge)
@@ -73,7 +73,7 @@ void WALogin::sendAuth(const std::vector<unsigned char>& 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<unsigned char>* WALogin::getAuthBlob(const std::vector<unsigned char std::vector<unsigned char> 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<unsigned char> 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<unsigned char> WALogin::readSuccess()
{
- ProtocolTreeNode *node = m_pConnection->in->nextTree();
+ ProtocolTreeNode *node = m_pConnection->in.nextTree();
if (ProtocolTreeNode::tagEquals(node, "failure")) {
delete node;
|