summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-03-24 19:38:19 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-03-24 19:38:19 +0000
commit2902d463ea9a35f7dd9b7ee5c887e10ed11f8542 (patch)
treecc526321622b2f397f1521a75195fd46b1fb2fd3 /protocols/SkypeWeb/src/skype_events.cpp
parent2f1b8c756066316c59be907bcd94a73cae5e3a7b (diff)
SkypeWeb: status improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@12493 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_events.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index d7e661bff4..b64618e6cb 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -93,7 +93,7 @@ void CSkypeProto::OnLoginSecond(const NETLIBHTTPREQUEST *response)
PushRequest(new GetProfileRequest(token.c_str()), &CSkypeProto::LoadProfile);
PushRequest(new GetContactListRequest(token.c_str()), &CSkypeProto::LoadContactList);
- ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus = m_iDesiredStatus);
+ //ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus = m_iDesiredStatus);
}
void CSkypeProto::OnGetRegInfo(const NETLIBHTTPREQUEST *response)
@@ -129,7 +129,8 @@ void CSkypeProto::OnGetRegInfo(const NETLIBHTTPREQUEST *response)
CMStringA endpointURL = getStringA("Endpoint");
endpointURL += "/presenceDocs/messagingService";
PushRequest(new GetEndpointRequest(ptrA(getStringA("RegistrationToken")), endpointURL));
- PushRequest(new SetStatusRequest(ptrA(getStringA("RegistrationToken")), true));
+ PushRequest(new SetStatusRequest(ptrA(getStringA("RegistrationToken")), ID_STATUS_ONLINE), &CSkypeProto::OnSetStatus);
+ //SetStatus(ID_STATUS_ONLINE);
}
void CSkypeProto::OnSetStatus(const NETLIBHTTPREQUEST *response)
@@ -149,17 +150,13 @@ void CSkypeProto::OnSetStatus(const NETLIBHTTPREQUEST *response)
int old_status = m_iStatus;
int iNewStatus;
if (mir_strcmp(status, "O")==0)
- {
- iNewStatus = ID_STATUS_ONLINE;
- }
- else if (mir_strcmp(status,"H")==0)
- {
+ iNewStatus = ID_STATUS_ONLINE;
+ else if (mir_strcmp(status, "H") == 0)
iNewStatus = ID_STATUS_INVISIBLE;
- }
+ else if (mir_strcmp(status, "A") == 0)
+ iNewStatus = ID_STATUS_AWAY;
else
- {
iNewStatus = ID_STATUS_ONLINE;
- }
m_iStatus = iNewStatus;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
} \ No newline at end of file