chức năng dashboard
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user