This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

View 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