diff --git a/src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp b/src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp index e6ba0a50..64b6efda 100644 --- a/src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp +++ b/src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp @@ -24,6 +24,10 @@ namespace Bloom const std::optional& data ); + QString brief() const override { + return "Capturing memory snapshot"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/ConstructHexViewerTopLevelGroupItem.hpp b/src/Insight/InsightWorker/Tasks/ConstructHexViewerTopLevelGroupItem.hpp index 93284ce5..556923a0 100644 --- a/src/Insight/InsightWorker/Tasks/ConstructHexViewerTopLevelGroupItem.hpp +++ b/src/Insight/InsightWorker/Tasks/ConstructHexViewerTopLevelGroupItem.hpp @@ -20,6 +20,10 @@ namespace Bloom const Widgets::HexViewerSharedState& hexViewerState ); + QString brief() const override { + return "Preparing hex viewer"; + } + TaskGroups taskGroups() const override { return TaskGroups(); }; diff --git a/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp index 502b014d..5244227a 100644 --- a/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp +++ b/src/Insight/InsightWorker/Tasks/GetTargetDescriptor.hpp @@ -13,6 +13,10 @@ namespace Bloom public: GetTargetDescriptor() = default; + QString brief() const override { + return "Obtaining target descriptor"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/GetTargetState.hpp b/src/Insight/InsightWorker/Tasks/GetTargetState.hpp index ebae16f5..e7b0ebe6 100644 --- a/src/Insight/InsightWorker/Tasks/GetTargetState.hpp +++ b/src/Insight/InsightWorker/Tasks/GetTargetState.hpp @@ -13,6 +13,10 @@ namespace Bloom public: GetTargetState() = default; + QString brief() const override { + return "Obtaining target state"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp index f1982027..60b92b5c 100644 --- a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp +++ b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp @@ -29,6 +29,8 @@ namespace Bloom InsightWorkerTask(); + virtual QString brief() const = 0; + virtual TaskGroups taskGroups() const { return TaskGroups(); }; diff --git a/src/Insight/InsightWorker/Tasks/ReadProgramCounter.hpp b/src/Insight/InsightWorker/Tasks/ReadProgramCounter.hpp index 4a590deb..558b6d85 100644 --- a/src/Insight/InsightWorker/Tasks/ReadProgramCounter.hpp +++ b/src/Insight/InsightWorker/Tasks/ReadProgramCounter.hpp @@ -13,6 +13,10 @@ namespace Bloom public: ReadProgramCounter() = default; + QString brief() const override { + return "Reading program counter"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp b/src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp index 612356fb..fb8cbe16 100644 --- a/src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp +++ b/src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp @@ -13,6 +13,10 @@ namespace Bloom public: ReadStackPointer() = default; + QString brief() const override { + return "Reading stack pointer"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp b/src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp index bd1b48c1..019ef89a 100644 --- a/src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp +++ b/src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp @@ -25,6 +25,10 @@ namespace Bloom , excludedAddressRanges(excludedAddressRanges) {} + QString brief() const override { + return "Reading target " + QString(this->memoryType == Targets::TargetMemoryType::EEPROM ? "EEPROM" : "RAM"); + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp b/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp index c5f58d70..f5d75326 100644 --- a/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp +++ b/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp @@ -14,6 +14,10 @@ namespace Bloom : descriptors(descriptors) {} + QString brief() const override { + return "Reading target registers"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp b/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp index 2ec822cb..326de8fa 100644 --- a/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp +++ b/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp @@ -15,6 +15,10 @@ namespace Bloom : variantId(variantId) {} + QString brief() const override { + return "Reading target pin states"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/RetrieveMemorySnapshots.hpp b/src/Insight/InsightWorker/Tasks/RetrieveMemorySnapshots.hpp index 731c4b79..035f3291 100644 --- a/src/Insight/InsightWorker/Tasks/RetrieveMemorySnapshots.hpp +++ b/src/Insight/InsightWorker/Tasks/RetrieveMemorySnapshots.hpp @@ -16,6 +16,11 @@ namespace Bloom public: RetrieveMemorySnapshots(Targets::TargetMemoryType memoryType); + QString brief() const override { + return "Loading saved " + QString(this->memoryType == Targets::TargetMemoryType::EEPROM ? "EEPROM" : "RAM") + + " memory snapshots"; + } + signals: void memorySnapshotsRetrieved(std::vector snapshots); diff --git a/src/Insight/InsightWorker/Tasks/SetTargetPinState.hpp b/src/Insight/InsightWorker/Tasks/SetTargetPinState.hpp index d66f4baf..ac727872 100644 --- a/src/Insight/InsightWorker/Tasks/SetTargetPinState.hpp +++ b/src/Insight/InsightWorker/Tasks/SetTargetPinState.hpp @@ -15,6 +15,10 @@ namespace Bloom , pinState(pinState) {} + QString brief() const override { + return "Updating target pin state"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER, diff --git a/src/Insight/InsightWorker/Tasks/WriteTargetRegister.hpp b/src/Insight/InsightWorker/Tasks/WriteTargetRegister.hpp index 556c6086..a44e7101 100644 --- a/src/Insight/InsightWorker/Tasks/WriteTargetRegister.hpp +++ b/src/Insight/InsightWorker/Tasks/WriteTargetRegister.hpp @@ -14,6 +14,10 @@ namespace Bloom : targetRegister(targetRegister) {} + QString brief() const override { + return "Writing target register"; + } + TaskGroups taskGroups() const override { return TaskGroups({ TaskGroup::USES_TARGET_CONTROLLER,