MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / getConfiguration

Method getConfiguration

app/src/API/Handlers/ProcessHandler.cpp:233–247  ·  view source on GitHub ↗

* @brief Get the complete Process driver configuration. */

Source from the content-addressed store, hash-verified

231 * @brief Get the complete Process driver configuration.
232 */
233API::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}

Callers

nothing calls this directly

Calls 6

executableMethod · 0.80
argumentsMethod · 0.80
workingDirMethod · 0.80
pipePathMethod · 0.80
processMethod · 0.45
modeMethod · 0.45

Tested by

no test coverage detected