diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-10 20:11:11 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-10 20:11:15 +0300 |
commit | d9cdbf7eba8b496b7325c736fdc7dbd2afc55a29 (patch) | |
tree | 32f69ba9da5741fbec921ca9043bea36fefc189a /protocols/ICQ-WIM/src/proto.h | |
parent | 1d14ea4f6381e3a6d6887eba9dc73c45cda01891 (diff) |
fixes #3567 (ICQ: implement offline files download)
Diffstat (limited to 'protocols/ICQ-WIM/src/proto.h')
-rw-r--r-- | protocols/ICQ-WIM/src/proto.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/protocols/ICQ-WIM/src/proto.h b/protocols/ICQ-WIM/src/proto.h index b7cac8f5c4..018a4e1399 100644 --- a/protocols/ICQ-WIM/src/proto.h +++ b/protocols/ICQ-WIM/src/proto.h @@ -144,7 +144,7 @@ struct IcqConn int lastTs, timeout;
};
-struct IcqFileTransfer : public MZeroedObject, public MShareable
+struct IcqFileTransfer : public MZeroedObject
{
bool m_bCanceled = false, m_bStarted = false;
int m_fileId = -1;
@@ -152,15 +152,11 @@ struct IcqFileTransfer : public MZeroedObject, public MShareable CMStringW m_wszFileName, m_wszDescr;
const wchar_t *m_wszShortName;
PROTOFILETRANSFERSTATUS pfts;
- HANDLE hWaitEvent;
-
- // create an object for receiving
- IcqFileTransfer(MCONTACT hContact, const char *pszUrl);
// create an object for sending
IcqFileTransfer(MCONTACT hContact, const wchar_t *pwszFileName);
- ~IcqFileTransfer() override;
+ ~IcqFileTransfer();
void FillHeaders(AsyncHttpRequest *pReq);
};
@@ -353,6 +349,7 @@ class CIcqProto : public PROTO<CIcqProto> HANDLE m_hWorkerThread;
void __cdecl ServerThread(void*);
void __cdecl PollThread(void*);
+ void __cdecl OfflineFileThread(void*);
////////////////////////////////////////////////////////////////////////////////////////
// services
@@ -362,6 +359,8 @@ class CIcqProto : public PROTO<CIcqProto> INT_PTR __cdecl GetAvatarInfo(WPARAM, LPARAM);
INT_PTR __cdecl SetAvatar(WPARAM, LPARAM);
+ INT_PTR __cdecl SvcOfflineFile(WPARAM, LPARAM);
+
INT_PTR __cdecl EditGroups(WPARAM, LPARAM);
INT_PTR __cdecl EditProfile(WPARAM, LPARAM);
INT_PTR __cdecl GetEmailCount(WPARAM, LPARAM);
@@ -390,10 +389,6 @@ class CIcqProto : public PROTO<CIcqProto> HANDLE SearchBasic(const wchar_t *id) override;
- HANDLE FileAllow(MCONTACT hContact, HANDLE hTransfer, const wchar_t *szPath) override;
- int FileCancel(MCONTACT hContact, HANDLE hTransfer) override;
- int FileResume(HANDLE hTransfer, int action, const wchar_t *szFilename) override;
-
HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override;
int SendMsg(MCONTACT hContact, int flags, const char *msg) override;
@@ -406,6 +401,7 @@ class CIcqProto : public PROTO<CIcqProto> void OnContactAdded(MCONTACT) override;
void OnContactDeleted(MCONTACT) override;
MWindow OnCreateAccMgrUI(MWindow) override;
+ void OnCreateOfflineFile(DB::FILE_BLOB &blob, void *ft) override;
void OnEventEdited(MCONTACT, MEVENT) override;
void OnMarkRead(MCONTACT, MEVENT) override;
void OnModulesLoaded() override;
|