* @brief Returns the current control-script source. */
| 106 | * @brief Returns the current control-script source. |
| 107 | */ |
| 108 | API::CommandResponse API::Handlers::ControlScriptHandler::getScript(const QString& id, |
| 109 | const QJsonObject& params) |
| 110 | { |
| 111 | Q_UNUSED(params) |
| 112 | |
| 113 | QJsonObject result; |
| 114 | result[QStringLiteral("code")] = DataModel::ProjectModel::instance().controlScriptCode(); |
| 115 | return CommandResponse::makeSuccess(id, result); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * @brief Replaces the control-script source through the project model. |
nothing calls this directly
no test coverage detected