* @brief Returns the running state of the control script. */
| 138 | * @brief Returns the running state of the control script. |
| 139 | */ |
| 140 | API::CommandResponse API::Handlers::ControlScriptHandler::getStatus(const QString& id, |
| 141 | const QJsonObject& params) |
| 142 | { |
| 143 | Q_UNUSED(params) |
| 144 | |
| 145 | QJsonObject result; |
| 146 | result[QStringLiteral("running")] = DataModel::ControlScript::instance().running(); |
| 147 | return CommandResponse::makeSuccess(id, result); |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * @brief Compile-checks control-script source in a throwaway engine, mirroring the worker's |