OLD | NEW |
| (Empty) |
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 #ifndef _NO_CRYPTO | |
25 bool PasswordIsDefined; | |
26 UString Password; | |
27 bool AskPassword; | |
28 #endif | |
29 | |
30 CUpdateCallbackConsole(): | |
31 m_PercentPrinter(1 << 16), | |
32 #ifndef _NO_CRYPTO | |
33 PasswordIsDefined(false), | |
34 AskPassword(false), | |
35 #endif | |
36 StdOutMode(false), | |
37 EnablePercents(true), | |
38 m_WarningsMode(false) | |
39 {} | |
40 | |
41 ~CUpdateCallbackConsole() { Finilize(); } | |
42 void Init(CStdOutStream *outStream) | |
43 { | |
44 m_NeedBeClosed = false; | |
45 m_NeedNewLine = false; | |
46 FailedFiles.Clear(); | |
47 FailedCodes.Clear(); | |
48 OutStream = outStream; | |
49 m_PercentPrinter.OutStream = outStream; | |
50 } | |
51 | |
52 INTERFACE_IUpdateCallbackUI2(;) | |
53 | |
54 UStringVector FailedFiles; | |
55 CRecordVector<HRESULT> FailedCodes; | |
56 | |
57 UStringVector CantFindFiles; | |
58 CRecordVector<HRESULT> CantFindCodes; | |
59 }; | |
60 | |
61 #endif | |
OLD | NEW |