From e0bf792776131deef8f2634fb3eeb8bd8239c059 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Jul 2023 17:02:53 +0300 Subject: . --- include/m_protoint.h | 9 ++++++--- include/m_protosvc.h | 7 ------- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/m_protoint.h b/include/m_protoint.h index 83a4d8d523..eddad66824 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -266,9 +266,6 @@ public: // called when the Account Manager needs to draw short account's options virtual MWindow OnCreateAccMgrUI(MWindow hwndParent); - // called when an offline file is being created - virtual void OnCreateOfflineFile(DB::FILE_BLOB &blob, void *ft); - // called when an event is altered in database virtual void OnEventDeleted(MCONTACT, MEVENT); @@ -284,6 +281,12 @@ public: // the analog of ME_SYSTEM_MODULESLOADED for an account virtual void OnModulesLoaded(void); + // called when an offline file is being received + virtual void OnReceiveOfflineFile(DB::FILE_BLOB &blob, void *ft); + + // prepares an event of the file being sent + virtual void OnSendOfflineFile(DB::EventInfo &dbei, DB::FILE_BLOB &blob, void *ft); + // same for ME_SYSTEM_SHUTDOWN virtual void OnShutdown(void); diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 170d1260c0..5941bbe213 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -798,13 +798,6 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre) return Proto_ChainRecv(0, &ccs); } -/////////////////////////////////////////////////////////////////////////////// -// Offline file's blob preparation -// wParam = (DB::FILEBLOB*) blob to patch -// lParam = (HANDLE) pointer to custom file transfer, passed to PROTORECVFILE.lParam - -#define PS_PRECREATE_OFFLINEFILE "/PreCreateOfflineFile" - /////////////////////////////////////////////////////////////////////////////// // Offline file processing -- cgit v1.2.3