| | |
| | | const std::function<bool(const std::string&)>& canJoinFn |
| | | ); |
| | | const std::vector<ValidationIssue>& CControlJob::issues(); |
| | | void clearIssues(); |
| | | |
| | | // —— S14F9 → S14F10 的“应用结果”模型 —— // |
| | | struct CreateRequest { |
| | |
| | | bool pause(); // Executing -> Paused |
| | | bool resume(); // Paused -> Executing |
| | | bool complete(); // Executing/Paused -> Completed |
| | | bool abort(); // 非终态 -> Aborted |
| | | bool abort(std::string reason); // 非终态 -> Aborted |
| | | bool fail(std::string reason); // 任意 -> Failed |
| | | |
| | | const std::string& failReason() const noexcept { return m_failReason; } |