diff options
Diffstat (limited to 'CPP/7zip/UI/FileManager/UpdateCallback100.h')
-rwxr-xr-x | CPP/7zip/UI/FileManager/UpdateCallback100.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/CPP/7zip/UI/FileManager/UpdateCallback100.h b/CPP/7zip/UI/FileManager/UpdateCallback100.h index fd75bf2f..5ae194a2 100755 --- a/CPP/7zip/UI/FileManager/UpdateCallback100.h +++ b/CPP/7zip/UI/FileManager/UpdateCallback100.h @@ -10,35 +10,33 @@ #include "ProgressDialog2.h" #include "../../IPassword.h" -#ifdef LANG +#ifdef LANG #include "LangUtils.h" #endif -class CUpdateCallback100Imp: +class CUpdateCallback100Imp: public IFolderArchiveUpdateCallback, public ICryptoGetTextPassword2, + public ICryptoGetTextPassword, + public IArchiveOpenCallback, public ICompressProgressInfo, public CMyUnknownImp { public: - MY_UNKNOWN_IMP3( - IFolderArchiveUpdateCallback, + MY_UNKNOWN_IMP5( + IFolderArchiveUpdateCallback, ICryptoGetTextPassword2, + ICryptoGetTextPassword, + IArchiveOpenCallback, ICompressProgressInfo) - // IProgress + INTERFACE_IProgress(;) + INTERFACE_IArchiveOpenCallback(;) + INTERFACE_IFolderArchiveUpdateCallback(;) - STDMETHOD(SetTotal)(UInt64 size); - STDMETHOD(SetCompleted)(const UInt64 *completeValue); STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize); - // IUpdateCallBack - STDMETHOD(CompressOperation)(const wchar_t *name); - STDMETHOD(DeleteOperation)(const wchar_t *name); - STDMETHOD(OperationResult)(Int32 operationResult); - STDMETHOD(UpdateErrorMessage)(const wchar_t *message); - STDMETHOD(SetNumFiles)(UInt64 numFiles); - + STDMETHOD(CryptoGetTextPassword)(BSTR *password); STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password); private: bool _passwordIsDefined; @@ -56,7 +54,7 @@ public: UInt64 NumFolders; UInt64 NumFiles; - void Init(HWND parentWindow, + void Init(HWND parentWindow, bool passwordIsDefined, const UString &password) { _passwordIsDefined = passwordIsDefined; |