This commit is contained in:
Igor Pavlov
2005-05-30 00:00:00 +00:00
committed by Kornel Lesiński
parent 8c1b5c7b7e
commit 3c510ba80b
926 changed files with 40559 additions and 23519 deletions

View File

@@ -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);