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/ExtractCallback.h')
-rwxr-xr-xCPP/7zip/UI/FileManager/ExtractCallback.h44
1 files changed, 16 insertions, 28 deletions
diff --git a/CPP/7zip/UI/FileManager/ExtractCallback.h b/CPP/7zip/UI/FileManager/ExtractCallback.h
index ee46222a..b4e88fd5 100755
--- a/CPP/7zip/UI/FileManager/ExtractCallback.h
+++ b/CPP/7zip/UI/FileManager/ExtractCallback.h
@@ -1,30 +1,27 @@
// ExtractCallback.h
-#ifndef __EXTRACTCALLBACK_H
-#define __EXTRACTCALLBACK_H
+#ifndef __EXTRACT_CALLBACK_H
+#define __EXTRACT_CALLBACK_H
+
+#include "Common/MyCom.h"
+
+#include "Windows/ResourceString.h"
#include "../Agent/IFolderArchive.h"
-#include "Common/MyString.h"
#include "../Common/ArchiveOpenCallback.h"
-#ifdef _SFX
-#include "ProgressDialog.h"
-#else
-#include "ProgressDialog2.h"
+#ifndef _NO_CRYPTO
+#include "../../IPassword.h"
#endif
-#include "Windows/ResourceString.h"
+#include "IFolder.h"
+
+#include "ProgressDialog2.h"
#ifdef LANG
#include "LangUtils.h"
#endif
-#ifndef _NO_CRYPTO
-#include "../../IPassword.h"
-#endif
-#include "Common/MyCom.h"
-#include "IFolder.h"
-
class CExtractCallbackImp:
public IExtractCallbackUI,
public IOpenCallbackUI,
@@ -99,32 +96,23 @@ public:
#endif
private:
- // bool _extractMode;
UString _currentArchivePath;
bool _needWriteArchivePath;
UString _currentFilePath;
bool _isFolder;
- // void CreateComplexDirectory(const UStringVector &aDirPathParts);
-
HRESULT SetCurrentFilePath2(const wchar_t *filePath);
void AddErrorMessage(LPCWSTR message);
public:
- CProgressDialog ProgressDialog;
- UStringVector Messages;
- bool ShowMessages;
+ CProgressDialog *ProgressDialog;
#ifndef _SFX
UInt64 NumFolders;
UInt64 NumFiles;
bool NeedAddFile;
#endif
- HWND ParentWindow;
- INT_PTR StartProgressDialog(const UString &title)
- {
- return ProgressDialog.Create(title, ParentWindow);
- }
UInt32 NumArchiveErrors;
+ bool ThereAreMessageErrors;
NExtract::NOverwriteMode::EEnum OverwriteMode;
#ifndef _NO_CRYPTO
@@ -138,13 +126,13 @@ public:
PasswordIsDefined(false),
PasswordWasAsked(false),
#endif
- OverwriteMode(NExtract::NOverwriteMode::kAskBefore),
- ParentWindow(0),
- ShowMessages(true)
+ OverwriteMode(NExtract::NOverwriteMode::kAskBefore)
{}
~CExtractCallbackImp();
void Init();
+
+ bool IsOK() const { return NumArchiveErrors == 0 && !ThereAreMessageErrors; }
};
#endif