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

Method actionAdd

app/src/API/Handlers/ProjectHandler.cpp:2626–2636  ·  view source on GitHub ↗

* @brief Add action */

Source from the content-addressed store, hash-verified

2624 * @brief Add action
2625 */
2626API::CommandResponse API::Handlers::ProjectHandler::actionAdd(const QString& id,
2627 const QJsonObject& params)
2628{
2629 Q_UNUSED(params)
2630
2631 DataModel::ProjectModel::instance().addAction();
2632
2633 QJsonObject result;
2634 result[QStringLiteral("added")] = true;
2635 return CommandResponse::makeSuccess(id, result);
2636}
2637
2638/**
2639 * @brief Delete an action by id

Callers

nothing calls this directly

Calls 1

addActionMethod · 0.80

Tested by

no test coverage detected