1 // UpdateCallbackFar.h 2 3 #ifndef ZIP7_INC_UPDATE_CALLBACK_FAR_H 4 #define ZIP7_INC_UPDATE_CALLBACK_FAR_H 5 6 #include "../../../Common/MyCom.h" 7 8 #include "../../IPassword.h" 9 10 #include "../Agent/IFolderArchive.h" 11 12 #include "ProgressBox.h" 13 14 Z7_CLASS_IMP_COM_7( 15 CUpdateCallback100Imp 16 , IFolderArchiveUpdateCallback 17 , IFolderArchiveUpdateCallback2 18 , IFolderArchiveUpdateCallback_MoveArc 19 , IFolderScanProgress 20 , ICryptoGetTextPassword2 21 , ICryptoGetTextPassword 22 , IArchiveOpenCallback 23 ) 24 Z7_IFACE_COM7_IMP(IProgress) 25 26 // CMyComPtr<IInFolderArchive> _archiveHandler; 27 CProgressBox *_percent; 28 // UInt64 _total; 29 30 HRESULT MoveArc_UpdateStatus(); 31 32 private: 33 UInt64 _arcMoving_total; 34 UInt64 _arcMoving_current; 35 UInt64 _arcMoving_percents; 36 // Int32 _arcMoving_updateMode; 37 38 public: 39 bool PasswordIsDefined; 40 UString Password; 41 CUpdateCallback100Imp()42 CUpdateCallback100Imp() 43 // : _total(0) 44 {} Init(CProgressBox * progressBox)45 void Init(/* IInFolderArchive *archiveHandler, */ CProgressBox *progressBox) 46 { 47 // _archiveHandler = archiveHandler; 48 _percent = progressBox; 49 PasswordIsDefined = false; 50 Password.Empty(); 51 _arcMoving_total = 0; 52 _arcMoving_current = 0; 53 _arcMoving_percents = 0; 54 // _arcMoving_updateMode = 0; 55 } 56 }; 57 58 #endif 59