Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/FileManager/UpdateCallback100.h')
-rwxr-xr-xCPP/7zip/UI/FileManager/UpdateCallback100.h42
1 files changed, 12 insertions, 30 deletions
diff --git a/CPP/7zip/UI/FileManager/UpdateCallback100.h b/CPP/7zip/UI/FileManager/UpdateCallback100.h
index 5ae194a2..aa13320f 100755
--- a/CPP/7zip/UI/FileManager/UpdateCallback100.h
+++ b/CPP/7zip/UI/FileManager/UpdateCallback100.h
@@ -4,15 +4,12 @@
#define __UPDATE_CALLBACK100_H
#include "Common/MyCom.h"
-#include "Common/MyString.h"
-#include "../Agent/IFolderArchive.h"
-#include "ProgressDialog2.h"
#include "../../IPassword.h"
-#ifdef LANG
-#include "LangUtils.h"
-#endif
+#include "../Agent/IFolderArchive.h"
+
+#include "ProgressDialog2.h"
class CUpdateCallback100Imp:
public IFolderArchiveUpdateCallback,
@@ -22,7 +19,14 @@ class CUpdateCallback100Imp:
public ICompressProgressInfo,
public CMyUnknownImp
{
+ bool _passwordIsDefined;
+ UString _password;
+ UInt64 _numFiles;
public:
+ CProgressDialog *ProgressDialog;
+
+ CUpdateCallback100Imp(): ProgressDialog(0) {}
+
MY_UNKNOWN_IMP5(
IFolderArchiveUpdateCallback,
ICryptoGetTextPassword2,
@@ -38,35 +42,13 @@ public:
STDMETHOD(CryptoGetTextPassword)(BSTR *password);
STDMETHOD(CryptoGetTextPassword2)(Int32 *passwordIsDefined, BSTR *password);
-private:
- bool _passwordIsDefined;
- UString _password;
- void AddErrorMessage(LPCWSTR message);
- bool ShowMessages;
-
-public:
- CUpdateCallback100Imp(): ShowMessages(true) {}
- ~CUpdateCallback100Imp();
- CProgressDialog ProgressDialog;
- HWND _parentWindow;
- UStringVector Messages;
- UInt64 NumFolders;
- UInt64 NumFiles;
-
- void Init(HWND parentWindow,
- bool passwordIsDefined, const UString &password)
+ void Init(bool passwordIsDefined, const UString &password)
{
_passwordIsDefined = passwordIsDefined;
_password = password;
- _parentWindow = parentWindow;
- NumFolders = NumFiles = 0;
- }
- void StartProgressDialog(const UString &title)
- {
- ProgressDialog.Create(title, _parentWindow);
+ _numFiles = 0;
}
-
};
#endif