misc/libphysfs/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h
branchui-scaling
changeset 15283 c4fd2813b127
parent 13390 0135e64c6c66
parent 15279 7ab5cf405686
child 15663 d92eeb468dad
equal deleted inserted replaced
13390:0135e64c6c66 15283:c4fd2813b127
     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