From 445550db9d2753087d883379771e597c8a1ae881 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 6 Sep 2015 09:47:24 +0000 Subject: Vkontakte: ProtoAck's on file uploading git-svn-id: http://svn.miranda-ng.org/main/trunk@15283 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_files.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols/VKontakte') diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index a64c8680df..59c5f92039 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -129,6 +129,8 @@ void CVkProto::SendFileThread(void *p) return; } + ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_INITIALISING, (HANDLE)fup); + AsyncHttpRequest *pReq; switch (fup->GetType()) { case CVkFileUploadParam::typeImg: @@ -193,6 +195,8 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * } fseek(pFile, 0, SEEK_SET); + ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_CONNECTING, (HANDLE)fup); + AsyncHttpRequest *pUploadReq = new AsyncHttpRequest(this, REQUEST_POST, uri, false, &CVkProto::OnReciveUpload); pUploadReq->m_bApiReq = false; pUploadReq->m_szParam = ""; @@ -270,6 +274,8 @@ void CVkProto::OnReciveUpload(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) AsyncHttpRequest *pUploadReq; + ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_CONNECTED, (HANDLE)fup); + switch (fup->GetType()) { case CVkFileUploadParam::typeImg: upload = jnRoot["photo"].as_mstring(); -- cgit v1.2.3