mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-06 00:38:55 +00:00
Update UI to display details on error
This commit is contained in:
@@ -17,6 +17,8 @@ public:
|
||||
using ExecuteFunc = std::function<bool(Core::SDMCImporter&, const Core::ContentSpecifier&,
|
||||
const Common::ProgressCallback&)>;
|
||||
using AbortFunc = std::function<void(Core::SDMCImporter&)>;
|
||||
// (content, error log)
|
||||
using FailedContentList = std::vector<std::pair<Core::ContentSpecifier, std::string>>;
|
||||
|
||||
explicit MultiJob(QObject* parent, Core::SDMCImporter& importer,
|
||||
std::vector<Core::ContentSpecifier> contents, ExecuteFunc execute_func,
|
||||
@@ -26,7 +28,7 @@ public:
|
||||
void run() override;
|
||||
void Cancel();
|
||||
|
||||
std::vector<Core::ContentSpecifier> GetFailedContents() const;
|
||||
FailedContentList GetFailedContents() const;
|
||||
|
||||
signals:
|
||||
/**
|
||||
@@ -48,7 +50,7 @@ private:
|
||||
std::atomic_bool cancelled{false};
|
||||
Core::SDMCImporter& importer;
|
||||
std::vector<Core::ContentSpecifier> contents;
|
||||
std::vector<Core::ContentSpecifier> failed_contents;
|
||||
FailedContentList failed_contents;
|
||||
ExecuteFunc execute_func;
|
||||
AbortFunc abort_func;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user