1 // OpenCallbackConsole.h
3 #ifndef __OPENCALLBACKCONSOLE_H
4 #define __OPENCALLBACKCONSOLE_H
6 #include "Common/StdOutStream.h"
7 #include "../Common/ArchiveOpenCallback.h"
9 class COpenCallbackConsole: public IOpenCallbackUI
13 HRESULT SetTotal(const UInt64 *files, const UInt64 *bytes);
14 HRESULT SetCompleted(const UInt64 *files, const UInt64 *bytes);
15 HRESULT CryptoGetTextPassword(BSTR *password);
16 HRESULT GetPasswordIfAny(UString &password);
17 bool WasPasswordAsked();
18 void ClearPasswordWasAskedFlag();
20 CStdOutStream *OutStream;
21 bool PasswordIsDefined;
23 bool PasswordWasAsked;
24 COpenCallbackConsole(): PasswordIsDefined(false), PasswordWasAsked(false) {}