mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 22:07:08 -06:00
4.20
This commit is contained in:
committed by
Kornel Lesiński
parent
8c1b5c7b7e
commit
3c510ba80b
@@ -7,11 +7,27 @@
|
||||
#include "UpdateCallback100.h"
|
||||
// #include "Windows/ProcessMessages.h"
|
||||
// #include "Resource/PasswordDialog/PasswordDialog.h"
|
||||
#include "Resource/MessagesDialog/MessagesDialog.h"
|
||||
|
||||
#include "Common/Defs.h"
|
||||
|
||||
using namespace NWindows;
|
||||
|
||||
CUpdateCallback100Imp::~CUpdateCallback100Imp()
|
||||
{
|
||||
if (!Messages.IsEmpty())
|
||||
{
|
||||
CMessagesDialog messagesDialog;
|
||||
messagesDialog.Messages = &Messages;
|
||||
messagesDialog.Create(_parentWindow);
|
||||
}
|
||||
}
|
||||
|
||||
void CUpdateCallback100Imp::AddErrorMessage(LPCWSTR message)
|
||||
{
|
||||
Messages.Add(GetSystemString(message));
|
||||
}
|
||||
|
||||
STDMETHODIMP CUpdateCallback100Imp::SetTotal(UINT64 size)
|
||||
{
|
||||
ProgressDialog.ProgressSynch.SetProgress(size, 0);
|
||||
@@ -35,6 +51,7 @@ STDMETHODIMP CUpdateCallback100Imp::SetCompleted(const UINT64 *completeValue)
|
||||
|
||||
STDMETHODIMP CUpdateCallback100Imp::CompressOperation(const wchar_t *name)
|
||||
{
|
||||
ProgressDialog.ProgressSynch.SetCurrentFileName(name);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -48,6 +65,12 @@ STDMETHODIMP CUpdateCallback100Imp::OperationResult(INT32 operationResult)
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP CUpdateCallback100Imp::UpdateErrorMessage(const wchar_t *message)
|
||||
{
|
||||
AddErrorMessage(message);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
STDMETHODIMP CUpdateCallback100Imp::CryptoGetTextPassword2(INT32 *passwordIsDefined, BSTR *password)
|
||||
{
|
||||
*passwordIsDefined = BoolToInt(_passwordIsDefined);
|
||||
|
||||
Reference in New Issue
Block a user