diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2008-08-13 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:56 +0300 |
commit | 173c07e166fdf6fcd20f18ea73008f1b628945df (patch) | |
tree | 13ebea85cdc4c16ae93714ff0627ee9f91ad7e08 /CPP/7zip/UI/Console/ExtractCallbackConsole.h | |
parent | 3901bf0ab88106a5b031cba7bc18d60cdebf7eef (diff) |
4.59 beta
Diffstat (limited to 'CPP/7zip/UI/Console/ExtractCallbackConsole.h')
-rwxr-xr-x | CPP/7zip/UI/Console/ExtractCallbackConsole.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/CPP/7zip/UI/Console/ExtractCallbackConsole.h b/CPP/7zip/UI/Console/ExtractCallbackConsole.h index 7e5d9c5d..e42ca6f4 100755 --- a/CPP/7zip/UI/Console/ExtractCallbackConsole.h +++ b/CPP/7zip/UI/Console/ExtractCallbackConsole.h @@ -10,13 +10,20 @@ #include "../../Archive/IArchive.h" #include "../Common/ArchiveExtractCallback.h" -class CExtractCallbackConsole: +class CExtractCallbackConsole: public IExtractCallbackUI, + #ifndef _NO_CRYPTO public ICryptoGetTextPassword, + #endif public CMyUnknownImp { public: - MY_UNKNOWN_IMP2(IFolderArchiveExtractCallback, ICryptoGetTextPassword) + MY_QUERYINTERFACE_BEGIN2(IFolderArchiveExtractCallback) + #ifndef _NO_CRYPTO + MY_QUERYINTERFACE_ENTRY(ICryptoGetTextPassword) + #endif + MY_QUERYINTERFACE_END + MY_ADDREF_RELEASE STDMETHOD(SetTotal)(UInt64 total); STDMETHOD(SetCompleted)(const UInt64 *completeValue); @@ -31,19 +38,20 @@ public: STDMETHOD(MessageError)(const wchar_t *message); STDMETHOD(SetOperationResult)(Int32 operationResult, bool encrypted); - // ICryptoGetTextPassword - STDMETHOD(CryptoGetTextPassword)(BSTR *password); - HRESULT BeforeOpen(const wchar_t *name); HRESULT OpenResult(const wchar_t *name, HRESULT result, bool encrypted); HRESULT ThereAreNoFiles(); HRESULT ExtractResult(HRESULT result); + + #ifndef _NO_CRYPTO HRESULT SetPassword(const UString &password); + STDMETHOD(CryptoGetTextPassword)(BSTR *password); -public: bool PasswordIsDefined; UString Password; + + #endif UInt64 NumArchives; UInt64 NumArchiveErrors; |