diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-10-07 04:47:23 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-10-07 04:47:23 +0000 |
commit | 00714f1a92044866135cd75e599ff3fac75fe33f (patch) | |
tree | da70b71498faa719e6a0f9650d8114e9e117e7e8 /protocols/VKontakte/src/vk_proto.h | |
parent | 251e7759f31dbf3c8a199766b5d341342af77992 (diff) |
VKontakte:
rename FileUploadParam => CVkFileUploadParam
add processing file upload errors
git-svn-id: http://svn.miranda-ng.org/main/trunk@10722 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 0298598752..84796e4188 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -131,7 +131,7 @@ struct CVkChatInfo : public MZeroedObject CVkChatUser* GetUserById(LPCTSTR);
};
-struct FileUploadParam {
+struct CVkFileUploadParam {
enum VKFileType {typeInvalid, typeImg, typeAudio, typeDoc, typeNotSupported};
TCHAR* FileName;
TCHAR* Desc;
@@ -139,13 +139,14 @@ struct FileUploadParam { char* fname;
MCONTACT hContact;
VKFileType filetype;
+ int iErrorCode;
- FileUploadParam(MCONTACT _hContact, const PROTOCHAR* _desc, PROTOCHAR** _files);
- ~FileUploadParam();
+ CVkFileUploadParam(MCONTACT _hContact, const PROTOCHAR* _desc, PROTOCHAR** _files);
+ ~CVkFileUploadParam();
VKFileType GetType();
- __forceinline bool FileUploadParam::IsAccess() {return ::_taccess(FileName, 0)==0; }
- __forceinline char* FileUploadParam::atrName() { return atr; }
- __forceinline char* FileUploadParam::fileName() { return fname; }
+ __forceinline bool IsAccess() { return ::_taccess(FileName, 0) == 0; }
+ __forceinline char* atrName() { return atr; }
+ __forceinline char* fileName() { return fname; }
};
struct CVkProto : public PROTO<CVkProto>
@@ -246,7 +247,7 @@ struct CVkProto : public PROTO<CVkProto> //==== Files Upload ==================================================================
void __cdecl SendFileThread(void *p);
- void SendFileFiled(FileUploadParam *fup, TCHAR* reason=NULL);
+ void SendFileFiled(CVkFileUploadParam *fup, TCHAR* reason = NULL);
void OnReciveUploadServer(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReciveUpload(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
void OnReciveUploadFile(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
|