diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-02 16:25:16 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-02 16:25:22 +0300 |
commit | 30516cfd877bf99f56ef43a7fe50ff8154f703b8 (patch) | |
tree | 084861977edb60bbdaf38ea904fa055d13f8419e /include | |
parent | c3fb56beba551ba6f40e2ba8b9b0dc8b862c53e6 (diff) |
fixes #3596 (ICQ: "Copy URL" в контекстном меню журнала/истории на оффлайн файле отдает бессмысленную ссылку)
Diffstat (limited to 'include')
-rw-r--r-- | include/m_protosvc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 6d47da323e..dcc7438b0d 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -806,11 +806,12 @@ __forceinline INT_PTR ProtoChainRecvFile(MCONTACT hContact, PROTORECVFILE *pre) #define OFD_DOWNLOAD 0x0001
#define OFD_SAVEAS 0x0002
+#define OFD_COPYURL 0x0004
#define OFD_RUN 0x1000
struct MIR_APP_EXPORT OFDTHREAD : public MNonCopyable
{
- OFDTHREAD(MEVENT, const CMStringW &, bool);
+ OFDTHREAD(MEVENT hDbEvent, const CMStringW &path, int iCommand);
~OFDTHREAD();
void Finish();
@@ -818,8 +819,14 @@ struct MIR_APP_EXPORT OFDTHREAD : public MNonCopyable MEVENT hDbEvent;
MFilePath wszPath;
- bool bOpen;
struct OFD_Callback *pCallback = nullptr;
+ bool bOpen = false, bCopy = false;
+};
+
+struct OFD_Callback
+{
+ virtual ~OFD_Callback() {}
+ virtual void Invoke(const OFDTHREAD &ofd) = 0;
};
///////////////////////////////////////////////////////////////////////////////
|