* @brief Lists every managed helper process currently running. */
| 110 | * @brief Lists every managed helper process currently running. |
| 111 | */ |
| 112 | API::CommandResponse API::Handlers::SystemHandler::runningProcesses(const QString& id, |
| 113 | const QJsonObject& params) |
| 114 | { |
| 115 | Q_UNUSED(params) |
| 116 | |
| 117 | QJsonObject result; |
| 118 | result[QStringLiteral("processes")] = |
| 119 | QJsonArray::fromVariantList(ProcessLauncher::instance().runningProcesses()); |
| 120 | return CommandResponse::makeSuccess(id, result); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @brief Starts the bundled zero-hardware rocket-launch demo project. |