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

Method close

app/src/API/Handlers/MDF4PlayerHandler.cpp:153–163  ·  view source on GitHub ↗

* @brief Close MDF4 file */

Source from the content-addressed store, hash-verified

151 * @brief Close MDF4 file
152 */
153API::CommandResponse API::Handlers::MDF4PlayerHandler::close(const QString& id,
154 const QJsonObject& params)
155{
156 Q_UNUSED(params)
157
158 MDF4::Player::instance().closeFile();
159
160 QJsonObject result;
161 result[QStringLiteral("closed")] = true;
162 return CommandResponse::makeSuccess(id, result);
163}
164
165/**
166 * @brief Pause or resume playback (params: paused: bool)

Callers

nothing calls this directly

Calls 1

closeFileMethod · 0.45

Tested by

no test coverage detected