diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-11 23:54:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-11 23:54:14 +0300 |
commit | ed99a12b8304dc9396072c98004d694ab19f05d1 (patch) | |
tree | f34cf9f57af7c5744b358323f36ead39cb9a3da0 | |
parent | 37009be2fd13cefd62d08ba271636ddc5859d447 (diff) | |
parent | 0d98bb5b0fafa594800048d76e37d37165818b05 (diff) |
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 1 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 2213a6ff6c..2a2ca47667 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -292,6 +292,7 @@ private: void OnReceiveStatus(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReceiveStatusMsg(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
MCONTACT SetContactInfo(const JSONNode &jnItem, bool flag = false, bool self = false);
+ void TrackVisitor();
void RetrieveMyInfo(void);
void OnReceiveMyInfo(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void RetrieveUserInfo(LONG userId);
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 719f6b287a..5eac85f764 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -227,6 +227,12 @@ void CVkProto::OnOAuthAuthorize(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq /////////////////////////////////////////////////////////////////////////////////////////
+void CVkProto::TrackVisitor()
+{
+ debugLogA("CVkProto::TrackVisitor");
+ Push(new AsyncHttpRequest(this, REQUEST_GET, "/method/stats.trackVisitor.json", true, &CVkProto::OnReceiveSmth, AsyncHttpRequest::rpLow));
+}
+
void CVkProto::RetrieveMyInfo()
{
debugLogA("CVkProto::RetrieveMyInfo");
@@ -253,6 +259,7 @@ void CVkProto::OnReceiveMyInfo(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) OnLoggedIn();
RetrieveUserInfo(m_myUserId);
+ TrackVisitor();
RetrieveUnreadMessages();
RetrieveFriends();
RetrievePollingInfo();
|