Files
BloomPatched/src/Insight/InsightWorker/Tasks/RetrieveMemorySnapshots.hpp

36 lines
963 B
C++
Raw Normal View History

#pragma once
#include <vector>
#include "InsightWorkerTask.hpp"
#include "src/Targets/TargetMemory.hpp"
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/MemorySnapshot.hpp"
namespace Bloom
{
class RetrieveMemorySnapshots: public InsightWorkerTask
{
Q_OBJECT
public:
RetrieveMemorySnapshots(Targets::TargetMemoryType memoryType);
2023-03-15 20:16:07 +00:00
QString brief() const override {
return "Loading saved " + QString(this->memoryType == Targets::TargetMemoryType::EEPROM ? "EEPROM" : "RAM")
+ " memory snapshots";
}
signals:
void memorySnapshotsRetrieved(std::vector<MemorySnapshot> snapshots);
protected:
void run(Services::TargetControllerService& targetControllerService) override;
private:
Targets::TargetMemoryType memoryType;
std::vector<MemorySnapshot> getSnapshots(Targets::TargetMemoryType memoryType);
};
}