diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-27 16:11:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-27 16:11:15 +0300 |
commit | 49e856bee9b637156e659dcf0e65180dd5a4e077 (patch) | |
tree | 7c753bc2bdeda08956101d1b4604ec063989c2a8 /protocols/SkypeWeb/src/skype_polling.cpp | |
parent | 59bcd6091e2332308e4aac5a05d3b719f15aa031 (diff) |
SkypeWeb:
- massive code cleanup, old http junk wiped out & replaced with standard MHttpRequest class
- old MS login code removed;
- basic url replaced with modern one;
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index c86f90dcd1..a9e4c0c737 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
-void CSkypeProto::PollingThread(void*)
+void CSkypeProto::PollingThread(void *)
{
debugLogA(__FUNCTION__ ": entering");
@@ -31,7 +31,7 @@ void CSkypeProto::PollingThread(void*) while ((nErrors < POLLING_ERRORS_LIMIT) && m_iStatus != ID_STATUS_OFFLINE) {
std::unique_ptr<PollRequest> request(new PollRequest(this));
- NLHR_PTR response(request->Send(m_hNetlibUser));
+ NLHR_PTR response(DoSend(request.get()));
if (response == nullptr) {
nErrors++;
continue;
@@ -100,7 +100,7 @@ void CSkypeProto::ParsePollData(const char *szData) void CSkypeProto::ProcessEndpointPresence(const JSONNode &node)
{
- debugLogA("CSkypeProto::ProcessEndpointPresenceRes");
+ debugLogA(__FUNCTION__);
std::string selfLink = node["selfLink"].as_string();
CMStringA skypename(UrlToSkypename(selfLink.c_str()));
@@ -163,7 +163,7 @@ void CSkypeProto::ProcessEndpointPresence(const JSONNode &node) void CSkypeProto::ProcessUserPresence(const JSONNode &node)
{
- debugLogA("CSkypeProto::ProcessUserPresenceRes");
+ debugLogA(__FUNCTION__);
std::string selfLink = node["selfLink"].as_string();
std::string status = node["status"].as_string();
@@ -199,5 +199,5 @@ void CSkypeProto::ProcessNewMessage(const JSONNode &node) OnChatEvent(node);
}
-void CSkypeProto::ProcessConversationUpdate(const JSONNode&) {}
-void CSkypeProto::ProcessThreadUpdate(const JSONNode&) {}
\ No newline at end of file +void CSkypeProto::ProcessConversationUpdate(const JSONNode &) {}
+void CSkypeProto::ProcessThreadUpdate(const JSONNode &) {}
|