From 7a267fb283014d307afeea2caa0bd2a7bd90b2ca Mon Sep 17 00:00:00 2001 From: dartraiden Date: Mon, 31 Jul 2023 17:51:19 +0300 Subject: Rename offline files to cloud files (except for function names) --- include/m_protoint.h | 2 +- include/m_protosvc.h | 2 +- include/m_srmm_int.h | 2 +- plugins/Libs/kol.pas | 2 +- protocols/ICQ-WIM/src/proto.cpp | 2 +- protocols/JabberG/src/jabber_proto.cpp | 2 +- protocols/Telegram/src/avatars.cpp | 4 ++-- protocols/Telegram/src/proto.cpp | 2 +- src/mir_app/res/resource.rc | 4 ++-- src/mir_app/src/file.cpp | 2 +- src/mir_app/src/file.h | 2 +- src/mir_app/src/srmm_util.cpp | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/include/m_protoint.h b/include/m_protoint.h index eddad66824..04a026e1bc 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -281,7 +281,7 @@ public: // the analog of ME_SYSTEM_MODULESLOADED for an account virtual void OnModulesLoaded(void); - // called when an offline file is being received + // called when an cloud file is being received virtual void OnReceiveOfflineFile(DB::FILE_BLOB &blob, void *ft); // prepares an event of the file being sent diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 601ddebb40..6d47da323e 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -800,7 +800,7 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre) } /////////////////////////////////////////////////////////////////////////////// -// Offline file processing +//Cloud file processing #define PS_OFFLINEFILE "/OfflineFile" diff --git a/include/m_srmm_int.h b/include/m_srmm_int.h index d061fcd230..767fbe3d13 100644 --- a/include/m_srmm_int.h +++ b/include/m_srmm_int.h @@ -356,7 +356,7 @@ MIR_APP_DLL(void) Srmm_Broadcast(UINT, WPARAM, LPARAM); MIR_APP_DLL(void) Srmm_CreateHotkey(const char *pszSection, const char *pszDescription); ///////////////////////////////////////////////////////////////////////////////////////// -// downloads or launches offline file +// downloads or launches cloud file // iCommand = combination of OFD_* constants MIR_APP_DLL(void) Srmm_DownloadOfflineFile(MCONTACT hContact, MEVENT hDbEvent, int iCommand); diff --git a/plugins/Libs/kol.pas b/plugins/Libs/kol.pas index c63cdf354b..a33677c6c7 100644 --- a/plugins/Libs/kol.pas +++ b/plugins/Libs/kol.pas @@ -12054,7 +12054,7 @@ const {* Use this flag to create compressed file. Has effect only on NTFS, and only if ofAttrCompressed is not specified also. } ofAttrOffline = {$IFDEF LIN} 0 {$ELSE} $10000000 {$ENDIF}; - {* Use this flag to create offline file. } + {* Use this flag to create cloud file. } {$IFDEF _D3orHigher} function WFileCreate(const FileName: KOLWideString; OpenFlags: DWord): THandle; diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index 078fc8885e..356765e07b 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -75,7 +75,7 @@ CIcqProto::CIcqProto(const char *aProtoName, const wchar_t *aUserName) : CreateProtoService(PS_GETUNREADEMAILCOUNT, &CIcqProto::GetEmailCount); CreateProtoService(PS_GOTO_INBOX, &CIcqProto::GotoInbox); - // offline file transfer + // cloud file transfer CreateProtoService(PS_OFFLINEFILE, &CIcqProto::SvcOfflineFile); // events diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index d3695437fa..af2ccc5e94 100644 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -180,7 +180,7 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) : // XEP-0224 support (Attention/Nudge) CreateProtoService(PS_SEND_NUDGE, &CJabberProto::JabberSendNudge); - // Offline file transfer + // Cloud file transfer CreateProtoService(PS_OFFLINEFILE, &CJabberProto::OnOfflineFile); // service to get from protocol chat buddy info diff --git a/protocols/Telegram/src/avatars.cpp b/protocols/Telegram/src/avatars.cpp index 8551dda5b8..143692f8a2 100644 --- a/protocols/Telegram/src/avatars.cpp +++ b/protocols/Telegram/src/avatars.cpp @@ -76,7 +76,7 @@ INT_PTR CTelegramProto::SvcSetMyAvatar(WPARAM, LPARAM) } ///////////////////////////////////////////////////////////////////////////////////////// -// Offline file downloader +// Cloud file downloader void CTelegramProto::OnGetFileInfo(td::ClientManager::Response &response, void *pUserInfo) { @@ -122,7 +122,7 @@ INT_PTR __cdecl CTelegramProto::SvcOfflineFile(WPARAM param, LPARAM) } ///////////////////////////////////////////////////////////////////////////////////////// -// Offline file pre-creator +// Cloud file pre-creator void CTelegramProto::OnReceiveOfflineFile(DB::FILE_BLOB &blob, void *pHandle) { diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 849c0469f8..b3a6b2466e 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -78,7 +78,7 @@ CTelegramProto::CTelegramProto(const char* protoName, const wchar_t* userName) : // menus InitMenus(); - // Offline file transfer + // Cloud file transfer CreateProtoService(PS_OFFLINEFILE, &CTelegramProto::SvcOfflineFile); // create standard network connection diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc index e1526bb4b5..ab4e9d1a75 100644 --- a/src/mir_app/res/resource.rc +++ b/src/mir_app/res/resource.rc @@ -1144,8 +1144,8 @@ BEGIN LTEXT "You will always be asked about files from people not on your contact list",IDC_STATIC,13,117,296,10 LTEXT "If incoming files already exist",IDC_STATIC,14,102,172,8 COMBOBOX IDC_FILEEXISTS,193,100,100,30,CBS_DROPDOWNLIST | CBS_SORT | WS_VSCROLL | WS_TABSTOP - GROUPBOX "Offline files",IDC_STATIC,5,134,302,43 - CONTROL "Download offline files automatically",IDC_OFFLINE_AUTO, + GROUPBOX "Cloud files",IDC_STATIC,5,134,302,43 + CONTROL "Download cloud files automatically",IDC_OFFLINE_AUTO, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,148,288,10 RTEXT "Only if their size is less than",IDC_STATIC,12,162,153,8 EDITTEXT IDC_OFFLINE_AUTOSIZE,169,160,40,12,ES_AUTOHSCROLL diff --git a/src/mir_app/src/file.cpp b/src/mir_app/src/file.cpp index 531d020952..f03c67795f 100644 --- a/src/mir_app/src/file.cpp +++ b/src/mir_app/src/file.cpp @@ -303,7 +303,7 @@ MEVENT Proto_RecvFile(MCONTACT hContact, PROTORECVFILE *pre) if (!bSilent && File::bAutoAccept && Contact::OnList(hContact)) LaunchRecvDialog(&cle); else { - // load offline files always (if OfflineSize = 0) + // load cloud files always (if OfflineSize = 0) // or if they are less than a limit (if a transfer has specified file size) if (bSilent && File::bOfflineAuto) if (File::iOfflineSize == 0 || (blob.getSize() > 0 && blob.getSize() < File::iOfflineSize * 1024)) diff --git a/src/mir_app/src/file.h b/src/mir_app/src/file.h index e4618da2c2..2decb52aa5 100644 --- a/src/mir_app/src/file.h +++ b/src/mir_app/src/file.h @@ -142,7 +142,7 @@ MFilePath FindUniqueFileName(const wchar_t *pszOriginalFile); int GetRegValue(HKEY hKeyBase, const wchar_t *szSubKey, const wchar_t *szValue, wchar_t *szOutput, int cbOutput); void GetSensiblyFormattedSize(__int64 size, wchar_t *szOut, int cchOut, int unitsOverride, int appendUnits, int *unitsUsed); -// downloads or launches offline file +// downloads or launches cloud file struct OFD_Callback { virtual ~OFD_Callback() {} diff --git a/src/mir_app/src/srmm_util.cpp b/src/mir_app/src/srmm_util.cpp index bd942a0a8a..a13af78623 100644 --- a/src/mir_app/src/srmm_util.cpp +++ b/src/mir_app/src/srmm_util.cpp @@ -105,7 +105,7 @@ MIR_APP_DLL(void) Srmm_AddEvent(MCONTACT hContact, MEVENT hDbEvent) } ///////////////////////////////////////////////////////////////////////////////////////// -// downloads or launches offline file +// downloads or launches cloud file OFDTHREAD::OFDTHREAD(MEVENT _1, const CMStringW &_2, bool _3) : hDbEvent(_1), -- cgit v1.2.3