Files
easy7zip/CPP/7zip/UI/Agent/ArchiveFolder.cpp
Igor Pavlov 35596517f2 9.21
2016-05-28 00:16:05 +01:00

33 lines
1.0 KiB
C++
Executable File

// Agent/ArchiveFolder.cpp
#include "StdAfx.h"
#include "Common/ComTry.h"
#include "../Common/ArchiveExtractCallback.h"
#include "Agent.h"
STDMETHODIMP CAgentFolder::CopyTo(const UInt32 *indices, UInt32 numItems,
const wchar_t *path, IFolderOperationsExtractCallback *callback)
{
COM_TRY_BEGIN
CMyComPtr<IFolderArchiveExtractCallback> extractCallback2;
{
CMyComPtr<IFolderOperationsExtractCallback> callbackWrap = callback;
RINOK(callbackWrap.QueryInterface(IID_IFolderArchiveExtractCallback, &extractCallback2));
}
NExtract::NPathMode::EEnum pathMode = _flatMode ?
NExtract::NPathMode::kNoPathnames :
NExtract::NPathMode::kCurrentPathnames;
return Extract(indices,numItems, pathMode, NExtract::NOverwriteMode::kAskBefore,
path, BoolToInt(false), extractCallback2);
COM_TRY_END
}
STDMETHODIMP CAgentFolder::MoveTo(const UInt32 * /* indices */, UInt32 /* numItems */,
const wchar_t * /* path */, IFolderOperationsExtractCallback * /* callback */)
{
return E_NOTIMPL;
}