Upload 2.0.2
[physicsfs] / lzma / CPP / 7zip / UI / Console / OpenCallbackConsole.h
1 // OpenCallbackConsole.h
2
3 #ifndef __OPENCALLBACKCONSOLE_H
4 #define __OPENCALLBACKCONSOLE_H
5
6 #include "Common/StdOutStream.h"
7 #include "../Common/ArchiveOpenCallback.h"
8
9 class COpenCallbackConsole: public IOpenCallbackUI
10 {
11 public:
12   HRESULT CheckBreak();
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();
19   
20   CStdOutStream *OutStream;
21   bool PasswordIsDefined;
22   UString Password;
23   bool PasswordWasAsked;
24   COpenCallbackConsole(): PasswordIsDefined(false), PasswordWasAsked(false) {}
25 };
26
27 #endif