| |
43 |
43 |
return TFeedbackResult(eResult, true); |
| |
44 |
44 |
|
| |
45 |
45 |
CFeedbackFileErrorDlg dlg(strSrcPath.c_str(), strDstPath.c_str(), ulError); |
| |
46 |
46 |
eResult = (EFeedbackResult)dlg.DoModal(); |
| |
47 |
47 |
|
| |
48 |
48 |
if (dlg.m_bAllItems) |
| |
49 |
49 |
SetFileErrorPermanentResponse(eResult); |
| |
50 |
50 |
|
| |
51 |
51 |
return TFeedbackResult(eResult, false); |
| |
52 |
52 |
} |
| |
53 |
53 |
|
| |
54 |
54 |
TFeedbackResult CFeedbackHandler::FileAlreadyExists(const TFileInfo& spSrcFileInfo, const TFileInfo& spDstFileInfo) |
| |
55 |
55 |
{ |
| |
56 |
56 |
EFeedbackResult eResult = eResult_Unknown; |
| |
57 |
57 |
if(HasFileAlreadyExistsPermanentResponse(eResult)) |
| |
58 |
58 |
return TFeedbackResult(eResult, true); |
| |
59 |
59 |
|
| |
60 |
60 |
CFeedbackReplaceDlg dlg(spSrcFileInfo, spDstFileInfo); |
| |
61 |
61 |
eResult = (EFeedbackResult)dlg.DoModal(); |
| |
62 |
62 |
|
| |
63 |
|
if(dlg.m_bAllItems) |
| |
|
63 |
if(dlg.IsApplyToAllItemsChecked()) |
| |
64 |
64 |
SetFileAlreadyExistsPermanentResponse(eResult); |
| |
65 |
65 |
|
| |
66 |
66 |
return TFeedbackResult(eResult, false); |
| |
67 |
67 |
} |
| |
68 |
68 |
|
| |
69 |
69 |
TFeedbackResult CFeedbackHandler::NotEnoughSpace(const TString& strSrcPath, const TString& strDstPath, unsigned long long ullRequiredSize) |
| |
70 |
70 |
{ |
| |
71 |
71 |
EFeedbackResult eResult = eResult_Unknown; |
| |
72 |
72 |
if(HasNotEnoughSpacePermanentResponse(eResult)) |
| |
73 |
73 |
return TFeedbackResult(eResult, true); |
| |
74 |
74 |
|
| |
75 |
75 |
CFeedbackNotEnoughSpaceDlg dlg(ullRequiredSize, strSrcPath.c_str(), strDstPath.c_str()); |
| |
76 |
76 |
eResult = (EFeedbackResult) dlg.DoModal(); |
| |
77 |
77 |
|
| |
78 |
78 |
if (dlg.m_bAllItems) |
| |
79 |
79 |
SetNotEnoughSpacePermanentResponse(eResult); |
| |
80 |
80 |
|
| |
81 |
81 |
return TFeedbackResult(eResult, false); |
| |
82 |
82 |
} |
| |
83 |
83 |
|