* @brief Get the complete Process driver configuration. */
| 231 | * @brief Get the complete Process driver configuration. |
| 232 | */ |
| 233 | API::CommandResponse API::Handlers::ProcessHandler::getConfiguration(const QString& id, |
| 234 | const QJsonObject& params) |
| 235 | { |
| 236 | Q_UNUSED(params) |
| 237 | |
| 238 | auto* proc = IO::ConnectionManager::instance().process(); |
| 239 | |
| 240 | QJsonObject result; |
| 241 | result[QStringLiteral("mode")] = proc->mode(); |
| 242 | result[QStringLiteral("executable")] = proc->executable(); |
| 243 | result[QStringLiteral("arguments")] = proc->arguments(); |
| 244 | result[QStringLiteral("workingDir")] = proc->workingDir(); |
| 245 | result[QStringLiteral("pipePath")] = proc->pipePath(); |
| 246 | return CommandResponse::makeSuccess(id, result); |
| 247 | } |
nothing calls this directly
no test coverage detected