chức năng dashboard

This commit is contained in:
2026-06-13 13:20:57 +07:00
parent c116b30bea
commit 6f6d925fdd
9 changed files with 746 additions and 167 deletions

View File

@@ -27,6 +27,8 @@ public:
bool removeById(const std::string& id, std::string& err);
bool clearAll(std::string& err);
bool reorder(const nlohmann::json& ordered_ids, std::string& err);
bool pause(std::string& err);
bool resume(std::string& err);
private:
std::filesystem::path queue_path_;
@@ -37,6 +39,7 @@ private:
std::thread worker_;
std::atomic<bool> stop_{false};
std::atomic<bool> wake_{false};
std::atomic<bool> paused_{false};
void load();
void saveUnlocked() const;