aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/Console/PercentPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/Console/PercentPrinter.h')
-rw-r--r--CPP/7zip/UI/Console/PercentPrinter.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/CPP/7zip/UI/Console/PercentPrinter.h b/CPP/7zip/UI/Console/PercentPrinter.h
index 46988a5..379aa1b 100644
--- a/CPP/7zip/UI/Console/PercentPrinter.h
+++ b/CPP/7zip/UI/Console/PercentPrinter.h
@@ -26,6 +26,13 @@ struct CPercentPrinterState
26 26
27class CPercentPrinter: public CPercentPrinterState 27class CPercentPrinter: public CPercentPrinterState
28{ 28{
29public:
30 CStdOutStream *_so;
31 bool DisablePrint;
32 bool NeedFlush;
33 unsigned MaxLen;
34
35private:
29 UInt32 _tickStep; 36 UInt32 _tickStep;
30 DWORD _prevTick; 37 DWORD _prevTick;
31 38
@@ -41,18 +48,13 @@ class CPercentPrinter: public CPercentPrinterState
41 void GetPercents(); 48 void GetPercents();
42 49
43public: 50public:
44 CStdOutStream *_so;
45
46 bool DisablePrint;
47 bool NeedFlush;
48 unsigned MaxLen;
49 51
50 CPercentPrinter(UInt32 tickStep = 200): 52 CPercentPrinter(UInt32 tickStep = 200):
51 _tickStep(tickStep),
52 _prevTick(0),
53 DisablePrint(false), 53 DisablePrint(false),
54 NeedFlush(true), 54 NeedFlush(true),
55 MaxLen(80 - 1) 55 MaxLen(80 - 1),
56 _tickStep(tickStep),
57 _prevTick(0)
56 {} 58 {}
57 59
58 ~CPercentPrinter(); 60 ~CPercentPrinter();