equal
deleted
inserted
replaced
1 // UpdateCallbackConsole.h |
|
2 |
|
3 #ifndef __UPDATECALLBACKCONSOLE_H |
|
4 #define __UPDATECALLBACKCONSOLE_H |
|
5 |
|
6 #include "Common/MyString.h" |
|
7 #include "Common/StdOutStream.h" |
|
8 #include "PercentPrinter.h" |
|
9 #include "../Common/Update.h" |
|
10 |
|
11 class CUpdateCallbackConsole: public IUpdateCallbackUI2 |
|
12 { |
|
13 CPercentPrinter m_PercentPrinter; |
|
14 bool m_NeedBeClosed; |
|
15 bool m_NeedNewLine; |
|
16 |
|
17 bool m_WarningsMode; |
|
18 |
|
19 CStdOutStream *OutStream; |
|
20 public: |
|
21 bool EnablePercents; |
|
22 bool StdOutMode; |
|
23 |
|
24 bool PasswordIsDefined; |
|
25 UString Password; |
|
26 bool AskPassword; |
|
27 |
|
28 |
|
29 CUpdateCallbackConsole(): |
|
30 m_PercentPrinter(1 << 16), |
|
31 PasswordIsDefined(false), |
|
32 AskPassword(false), |
|
33 StdOutMode(false), |
|
34 EnablePercents(true), |
|
35 m_WarningsMode(false) |
|
36 {} |
|
37 |
|
38 ~CUpdateCallbackConsole() { Finilize(); } |
|
39 void Init(CStdOutStream *outStream) |
|
40 { |
|
41 m_NeedBeClosed = false; |
|
42 m_NeedNewLine = false; |
|
43 FailedFiles.Clear(); |
|
44 FailedCodes.Clear(); |
|
45 OutStream = outStream; |
|
46 m_PercentPrinter.OutStream = outStream; |
|
47 } |
|
48 |
|
49 INTERFACE_IUpdateCallbackUI2(;) |
|
50 |
|
51 UStringVector FailedFiles; |
|
52 CRecordVector<HRESULT> FailedCodes; |
|
53 |
|
54 UStringVector CantFindFiles; |
|
55 CRecordVector<HRESULT> CantFindCodes; |
|
56 }; |
|
57 |
|
58 #endif |
|