Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/3rdparty/physfs/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h
2024-01-03 16:05:02 -05:00

27 lines
732 B
C++

// 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