diff options
Diffstat (limited to 'src/libs/installer/lib7z_facade.h')
-rw-r--r-- | src/libs/installer/lib7z_facade.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libs/installer/lib7z_facade.h b/src/libs/installer/lib7z_facade.h index b252e7696..527cf65ab 100644 --- a/src/libs/installer/lib7z_facade.h +++ b/src/libs/installer/lib7z_facade.h @@ -37,6 +37,9 @@ #include "installer_global.h" #include "errors.h" +#include <Common/MyWindows.h> +#include <7zip/UI/Console/PercentPrinter.h> + QT_BEGIN_NAMESPACE class QFileDevice; QT_END_NAMESPACE @@ -59,6 +62,21 @@ namespace Lib7z {} }; + class INSTALLER_EXPORT PercentPrinter : public CPercentPrinter + { + public: + PercentPrinter() : CPercentPrinter(1 << 16) { + OutStream = &g_StdOut; + } + + void PrintRatio() { CPercentPrinter::PrintRatio(); } + void ClosePrint() { CPercentPrinter::ClosePrint(); } + void RePrintRatio() { CPercentPrinter::RePrintRatio(); } + void PrintNewLine() { CPercentPrinter::PrintNewLine(); } + void PrintString(const char *s) { CPercentPrinter::PrintString(s); } + void PrintString(const wchar_t *s) { CPercentPrinter::PrintString(s); } + }; + } // namespace Lib7z #endif // LIB7Z_FACADE_H |