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/Far/UpdateCallbackFar.h')
-rw-r--r--CPP/7zip/UI/Far/UpdateCallbackFar.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/CPP/7zip/UI/Far/UpdateCallbackFar.h b/CPP/7zip/UI/Far/UpdateCallbackFar.h
new file mode 100644
index 00000000..b2980f21
--- /dev/null
+++ b/CPP/7zip/UI/Far/UpdateCallbackFar.h
@@ -0,0 +1,43 @@
+// UpdateCallbackFar.h
+
+#ifndef __UPDATE_CALLBACK_FAR_H
+#define __UPDATE_CALLBACK_FAR_H
+
+#include "../../../Common/MyCom.h"
+
+#include "../../IPassword.h"
+
+#include "../Agent/IFolderArchive.h"
+
+#include "ProgressBox.h"
+
+class CUpdateCallback100Imp:
+ public IFolderArchiveUpdateCallback,
+ public ICryptoGetTextPassword,
+ public CMyUnknownImp
+{
+ // CMyComPtr<IInFolderArchive> _archiveHandler;
+ CProgressBox *_progressBox;
+ UInt64 _total;
+ bool m_PasswordIsDefined;
+ UString m_Password;
+
+public:
+ MY_UNKNOWN_IMP1(ICryptoGetTextPassword)
+
+ INTERFACE_IProgress(;)
+ INTERFACE_IFolderArchiveUpdateCallback(;)
+ STDMETHOD(CryptoGetTextPassword)(BSTR *password);
+
+ CUpdateCallback100Imp(): _total(0) {}
+ void Init(/* IInFolderArchive *archiveHandler, */ CProgressBox *progressBox)
+ {
+ // _archiveHandler = archiveHandler;
+ _progressBox = progressBox;
+ m_PasswordIsDefined = false;
+ }
+};
+
+
+
+#endif