MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / OperationString

Method OperationString

FastCopy/RobocopyViewModel.cpp:65–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 winrt::hstring RobocopyViewModel::OperationString()
66 {
67 if (!m_recordFile)
68 return L" ";
69
70 switch (m_recordFile->GetOperation())
71 {
72 case CopyOperation::Copy: return ToCapital(GetStringResource(L"CopyOperation"));
73 case CopyOperation::Move: return ToCapital(GetStringResource(L"MoveOperation"));
74 case CopyOperation::Delete: return ToCapital(GetStringResource(L"DeleteOperation"));
75 default: throw std::runtime_error{ "Invalid operation" };
76 }
77 }
78 int RobocopyViewModel::ItemCount()
79 {
80 return m_recordFile.has_value() && m_countItemTask.is_done() ? m_recordFile->GetNumFiles() : 0;

Callers

nothing calls this directly

Calls 3

ToCapitalFunction · 0.85
GetStringResourceFunction · 0.85
GetOperationMethod · 0.80

Tested by

no test coverage detected