protected:
Tizen::Base::Collection::IList* GetMoveFileIndexList(Tizen::Base::String&, Tizen::Base::Collection::IList*,
- FileListPresentationModel*);
+ FileListPresentationModel*,bool isCopyOp = false);
protected:
bool _overlayMsg;
using namespace Tizen::Base::Utility;
IList*
-BaseForm::GetMoveFileIndexList(String& moveDir, IList* pMoveIndexList, FileListPresentationModel* pPresentationModel)
+BaseForm::GetMoveFileIndexList(String& moveDir, IList* pMoveIndexList, FileListPresentationModel* pPresentationModel, bool isCopyOp)
{
if (&moveDir == null || moveDir.IsEmpty())
{
if (collisionCount > 0)
{
MessageBox messageBox;
+
+ if ( isCopyOp)
+ {
+ messageBox.Construct(L"", L"Unable to copy some files. Same files exists",
+ MSGBOX_STYLE_NONE, 3000);
+ }
+ else
+ {
messageBox.Construct(L"", L"Unable to move some files. Same files exists",
MSGBOX_STYLE_NONE, 3000);
+ }
int modalResult;
messageBox.ShowAndWait(modalResult);
}
{
delete __pFileMove;
IList* pItemIndexList = pEditorPanel->GetItemCheckedIndexListN();
- GetMoveFileIndexList(*pDirectory, pItemIndexList, __pPresentationModel);
+ GetMoveFileIndexList(*pDirectory, pItemIndexList, __pPresentationModel , __isCopyOperation);
__pFileMove = new (std::nothrow) FileMoveTimer(*pDirectory, pItemIndexList, __pPresentationModel, this);
if (__isCopyOperation)
{
{
delete __pFileMove;
IList* pItemIndexList = pSelectionPanel->GetItemCheckedIndexListN();
- GetMoveFileIndexList(*pDirectory, pItemIndexList, __pPresentationModel);
+ GetMoveFileIndexList(*pDirectory, pItemIndexList, __pPresentationModel , __isCopyOperation);
__pFileMove = new (std::nothrow) FileMoveTimer(*pDirectory, pItemIndexList, __pPresentationModel, this);
if (__isCopyOperation)
{