diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-07-26 17:02:53 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-07-26 17:02:53 +0300 |
| commit | e0bf792776131deef8f2634fb3eeb8bd8239c059 (patch) | |
| tree | a004484e81d10505af43d1efa66726d4a9bb6d39 /include | |
| parent | 6f0837663b1aac2ede278e7dd8fb416290f82dad (diff) | |
.
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_protoint.h | 9 | ||||
| -rw-r--r-- | include/m_protosvc.h | 7 |
2 files changed, 6 insertions, 10 deletions
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 @@ -799,13 +799,6 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre) }
///////////////////////////////////////////////////////////////////////////////
-// 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
#define PS_OFFLINEFILE "/OfflineFile"
|
