7zip/CPP/7zip/UI/Far/UpdateCallbackFar.h

59 lines
1.2 KiB
C
Raw Normal View History

2021-12-27 01:00:00 +01:00
// UpdateCallbackFar.h
2023-06-21 02:00:00 +02:00
#ifndef ZIP7_INC_UPDATE_CALLBACK_FAR_H
#define ZIP7_INC_UPDATE_CALLBACK_FAR_H
2021-12-27 01:00:00 +01:00
#include "../../../Common/MyCom.h"
#include "../../IPassword.h"
#include "../Agent/IFolderArchive.h"
#include "ProgressBox.h"
2024-11-29 01:00:00 +01:00
Z7_CLASS_IMP_COM_7(
2023-06-21 02:00:00 +02:00
CUpdateCallback100Imp
, IFolderArchiveUpdateCallback
, IFolderArchiveUpdateCallback2
2024-11-29 01:00:00 +01:00
, IFolderArchiveUpdateCallback_MoveArc
2023-06-21 02:00:00 +02:00
, IFolderScanProgress
, ICryptoGetTextPassword2
, ICryptoGetTextPassword
, IArchiveOpenCallback
)
Z7_IFACE_COM7_IMP(IProgress)
2021-12-27 01:00:00 +01:00
// CMyComPtr<IInFolderArchive> _archiveHandler;
CProgressBox *_percent;
2023-06-21 02:00:00 +02:00
// UInt64 _total;
2024-11-29 01:00:00 +01:00
HRESULT MoveArc_UpdateStatus();
private:
UInt64 _arcMoving_total;
UInt64 _arcMoving_current;
UInt64 _arcMoving_percents;
// Int32 _arcMoving_updateMode;
2021-12-27 01:00:00 +01:00
public:
bool PasswordIsDefined;
UString Password;
2023-06-21 02:00:00 +02:00
CUpdateCallback100Imp()
// : _total(0)
{}
2021-12-27 01:00:00 +01:00
void Init(/* IInFolderArchive *archiveHandler, */ CProgressBox *progressBox)
{
// _archiveHandler = archiveHandler;
_percent = progressBox;
PasswordIsDefined = false;
Password.Empty();
2024-11-29 01:00:00 +01:00
_arcMoving_total = 0;
_arcMoving_current = 0;
_arcMoving_percents = 0;
// _arcMoving_updateMode = 0;
2021-12-27 01:00:00 +01:00
}
};
#endif