michael@0: // OpenCallbackGUI.cpp michael@0: michael@0: #include "StdAfx.h" michael@0: michael@0: #include "OpenCallbackGUI.h" michael@0: michael@0: #include "Common/StdOutStream.h" michael@0: #include "Common/StdInStream.h" michael@0: #include "Common/StringConvert.h" michael@0: michael@0: #ifndef _NO_CRYPTO michael@0: #include "../../FileManager/Resource/PasswordDialog/PasswordDialog.h" michael@0: #endif michael@0: michael@0: HRESULT COpenCallbackGUI::CheckBreak() michael@0: { michael@0: return S_OK; michael@0: } michael@0: michael@0: HRESULT COpenCallbackGUI::SetTotal(const UInt64 *files, const UInt64 *bytes) michael@0: { michael@0: return S_OK; michael@0: } michael@0: michael@0: HRESULT COpenCallbackGUI::SetCompleted(const UInt64 *files, const UInt64 *bytes) michael@0: { michael@0: return S_OK; michael@0: } michael@0: michael@0: #ifndef _NO_CRYPTO michael@0: HRESULT COpenCallbackGUI::CryptoGetTextPassword(BSTR *password) michael@0: { michael@0: if (!PasswordIsDefined) michael@0: { michael@0: CPasswordDialog dialog; michael@0: if (dialog.Create(ParentWindow) == IDCANCEL) michael@0: return E_ABORT; michael@0: Password = dialog.Password; michael@0: PasswordIsDefined = true; michael@0: } michael@0: CMyComBSTR tempName(Password); michael@0: *password = tempName.Detach(); michael@0: return S_OK; michael@0: } michael@0: michael@0: HRESULT COpenCallbackGUI::GetPasswordIfAny(UString &password) michael@0: { michael@0: if (PasswordIsDefined) michael@0: password = Password; michael@0: return S_OK; michael@0: } michael@0: #endif michael@0: