mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-11 06:07:12 -06:00
3.13
This commit is contained in:
64
7zip/FileManager/UpdateCallback100.h
Executable file
64
7zip/FileManager/UpdateCallback100.h
Executable file
@@ -0,0 +1,64 @@
|
||||
// UpdateCallback.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef __UPDATECALLBACK100_H
|
||||
#define __UPDATECALLBACK100_H
|
||||
|
||||
#include "Common/MyCom.h"
|
||||
#include "Common/String.h"
|
||||
|
||||
#include "../UI/Agent/IFolderArchive.h"
|
||||
#include "Resource/ProgressDialog2/ProgressDialog.h"
|
||||
#include "../IPassword.h"
|
||||
|
||||
#ifdef LANG
|
||||
#include "LangUtils.h"
|
||||
#endif
|
||||
|
||||
class CUpdateCallback100Imp:
|
||||
public IFolderArchiveUpdateCallback,
|
||||
public ICryptoGetTextPassword2,
|
||||
public CMyUnknownImp
|
||||
{
|
||||
public:
|
||||
MY_UNKNOWN_IMP2(
|
||||
IFolderArchiveUpdateCallback,
|
||||
ICryptoGetTextPassword2)
|
||||
|
||||
// IProgress
|
||||
|
||||
STDMETHOD(SetTotal)(UINT64 size);
|
||||
STDMETHOD(SetCompleted)(const UINT64 *completeValue);
|
||||
|
||||
// IUpdateCallBack
|
||||
STDMETHOD(CompressOperation)(const wchar_t *name);
|
||||
STDMETHOD(DeleteOperation)(const wchar_t *name);
|
||||
STDMETHOD(OperationResult)(INT32 operationResult);
|
||||
|
||||
STDMETHOD(CryptoGetTextPassword2)(INT32 *passwordIsDefined, BSTR *password);
|
||||
private:
|
||||
bool _passwordIsDefined;
|
||||
UString _password;
|
||||
|
||||
public:
|
||||
CProgressDialog ProgressDialog;
|
||||
HWND _parentWindow;
|
||||
void Init(HWND parentWindow,
|
||||
bool passwordIsDefined, const UString &password)
|
||||
{
|
||||
_passwordIsDefined = passwordIsDefined;
|
||||
_password = password;
|
||||
_parentWindow = parentWindow;
|
||||
|
||||
}
|
||||
void StartProgressDialog(const UString &title)
|
||||
{
|
||||
ProgressDialog.Create(title, _parentWindow);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user