misc/libphysfs/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h
author antonc27 <antonc27@mail.ru>
Thu, 15 Mar 2018 23:59:20 +0100
branchios-develop
changeset 13224 01ab48b253ef
parent 12213 bb5522e88ab2
permissions -rw-r--r--
- Pause game when it goes background (do not show anymore annoying 'confirm quit')

// OpenCallbackConsole.h

#ifndef __OPENCALLBACKCONSOLE_H
#define __OPENCALLBACKCONSOLE_H

#include "Common/StdOutStream.h"
#include "../Common/ArchiveOpenCallback.h"

class COpenCallbackConsole: public IOpenCallbackUI
{
public:
  HRESULT CheckBreak();
  HRESULT SetTotal(const UInt64 *files, const UInt64 *bytes);
  HRESULT SetCompleted(const UInt64 *files, const UInt64 *bytes);
  HRESULT CryptoGetTextPassword(BSTR *password);
  HRESULT GetPasswordIfAny(UString &password);
  bool WasPasswordAsked();
  void ClearPasswordWasAskedFlag();
  
  CStdOutStream *OutStream;
  bool PasswordIsDefined;
  UString Password;
  bool PasswordWasAsked;
  COpenCallbackConsole(): PasswordIsDefined(false), PasswordWasAsked(false) {}
};

#endif