diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-06 09:47:24 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-06 09:47:24 +0000 |
commit | 445550db9d2753087d883379771e597c8a1ae881 (patch) | |
tree | f0288f61dd1ddf6846ee282f02623753b99c6908 /protocols | |
parent | a3942d55f0c93f32807ae2301def181fa2e75a0d (diff) |
Vkontakte: ProtoAck's on file uploading
git-svn-id: http://svn.miranda-ng.org/main/trunk@15283 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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();
|