From 30516cfd877bf99f56ef43a7fe50ff8154f703b8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Nov 2023 16:25:16 +0300 Subject: =?UTF-8?q?fixes=20#3596=20(ICQ:=20"Copy=20URL"=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=BD=D0=BE=D0=BC=20?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=B6=D1=83=D1=80=D0=BD=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0/=D0=B8=D1=81=D1=82=D0=BE=D1=80=D0=B8=D0=B8=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BE=D1=84=D1=84=D0=BB=D0=B0=D0=B9=D0=BD=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D0=B5=20=D0=BE=D1=82=D0=B4=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=20=D0=B1=D0=B5=D1=81=D1=81=D0=BC=D1=8B=D1=81=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D1=83=D1=8E=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D1=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/m_protosvc.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include') 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; }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3