OpenCallbackConsole.h 732 B

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