MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / executeTask

Method executeTask

launcher/DataMigrationTask.cpp:21–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void DataMigrationTask::executeTask()
22{
23 setStatus(tr("Scanning files..."));
24
25 // 1. Scan
26 // Check how many files we gotta copy
27 m_copyFuture = QtConcurrent::run(QThreadPool::globalInstance(), [&] {
28 return m_copy(true); // dry run to collect amount of files
29 });
30 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::finished, this, &DataMigrationTask::dryRunFinished);
31 connect(&m_copyFutureWatcher, &QFutureWatcher<bool>::canceled, this, &DataMigrationTask::dryRunAborted);
32 m_copyFutureWatcher.setFuture(m_copyFuture);
33}
34
35void DataMigrationTask::dryRunFinished()
36{

Callers

nothing calls this directly

Calls 1

runFunction · 0.85

Tested by

no test coverage detected