1 // UpdateCallbackGUI2.h 2 3 #ifndef ZIP7_INC_UPDATE_CALLBACK_GUI2_H 4 #define ZIP7_INC_UPDATE_CALLBACK_GUI2_H 5 6 #include "../FileManager/ProgressDialog2.h" 7 8 class CUpdateCallbackGUI2 9 { 10 public: 11 CProgressDialog *ProgressDialog; 12 protected: 13 UString _arcMoving_name1; 14 UString _arcMoving_name2; 15 UInt64 _arcMoving_percents; 16 UInt64 _arcMoving_total; 17 UInt64 _arcMoving_current; 18 Int32 _arcMoving_updateMode; 19 public: 20 bool PasswordIsDefined; 21 bool PasswordWasAsked; 22 UInt64 NumFiles; 23 UString Password; 24 protected: 25 UStringVector _lang_Ops; 26 UString _lang_Removing; 27 UString _lang_Moving; 28 UString _emptyString; 29 30 HRESULT MoveArc_UpdateStatus(); 31 HRESULT MoveArc_Start_Base(const wchar_t *srcTempPath, const wchar_t *destFinalPath, UInt64 /* totalSize */, Int32 updateMode); 32 HRESULT MoveArc_Progress_Base(UInt64 totalSize, UInt64 currentSize); 33 HRESULT MoveArc_Finish_Base(); 34 35 public: 36 CUpdateCallbackGUI2()37 CUpdateCallbackGUI2(): 38 _arcMoving_percents(0), 39 _arcMoving_total(0), 40 _arcMoving_current(0), 41 _arcMoving_updateMode(0), 42 PasswordIsDefined(false), 43 PasswordWasAsked(false), 44 NumFiles(0) 45 {} 46 47 void Init(); 48 49 HRESULT SetOperation_Base(UInt32 notifyOp, const wchar_t *name, bool isDir); 50 HRESULT ShowAskPasswordDialog(); 51 }; 52 53 #endif 54