Made SnapshotManager signal more generic

This commit is contained in:
Nav
2023-04-02 23:42:59 +01:00
parent d26ec3057b
commit fa0d0ca47f
4 changed files with 9 additions and 8 deletions

View File

@@ -168,7 +168,7 @@ namespace Bloom::Widgets
}
);
emit this->captureTaskCreated(captureTask);
emit this->insightWorkerTaskCreated(captureTask);
InsightWorker::queueTask(captureTask);
}

View File

@@ -16,7 +16,7 @@
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp"
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/ExcludedMemoryRegion.hpp"
#include "src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp"
#include "src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp"
#include "./CreateSnapshotWindow/CreateSnapshotWindow.hpp"
#include "MemorySnapshotItem.hpp"
@@ -42,7 +42,7 @@ namespace Bloom::Widgets
);
signals:
void captureTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task);
void insightWorkerTaskCreated(const QSharedPointer<InsightWorkerTask>& task);
protected:
void resizeEvent(QResizeEvent* event) override;

View File

@@ -199,9 +199,10 @@ namespace Bloom::Widgets
QObject::connect(
this->snapshotManager,
&SnapshotManager::captureTaskCreated,
&SnapshotManager::insightWorkerTaskCreated,
this,
&TargetMemoryInspectionPane::onCaptureMemoryTaskCreated
&TargetMemoryInspectionPane::onSubtaskCreated
);
);
QObject::connect(
@@ -630,7 +631,7 @@ namespace Bloom::Widgets
}
}
void TargetMemoryInspectionPane::onCaptureMemoryTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task) {
void TargetMemoryInspectionPane::onSubtaskCreated(const QSharedPointer<InsightWorkerTask>& task) {
this->setTaskProgressIndicator(task);
}

View File

@@ -19,7 +19,7 @@
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/Label.hpp"
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TaskProgressIndicator/TaskProgressIndicator.hpp"
#include "src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp"
#include "src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp"
#include "HexViewerWidget/HexViewerWidget.hpp"
#include "MemoryRegionManager/MemoryRegionManagerWindow.hpp"
@@ -105,7 +105,7 @@ namespace Bloom::Widgets
Bloom::Targets::TargetMemoryType memoryType,
Targets::TargetMemoryAddressRange addressRange
);
void onCaptureMemoryTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task);
void onSubtaskCreated(const QSharedPointer<InsightWorkerTask>& task);
void setTaskProgressIndicator(const QSharedPointer<InsightWorkerTask>& task);
void setStaleData(bool staleData);
};