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

Method close

app/src/API/Handlers/CSVPlayerHandler.cpp:196–206  ·  view source on GitHub ↗

* @brief Close CSV file */

Source from the content-addressed store, hash-verified

194 * @brief Close CSV file
195 */
196API::CommandResponse API::Handlers::CSVPlayerHandler::close(const QString& id,
197 const QJsonObject& params)
198{
199 Q_UNUSED(params)
200
201 CSV::Player::instance().closeFile();
202
203 QJsonObject result;
204 result[QStringLiteral("closed")] = true;
205 return CommandResponse::makeSuccess(id, result);
206}
207
208/**
209 * @brief Pause or resume playback (params: paused: bool)

Callers

nothing calls this directly

Calls 1

closeFileMethod · 0.45

Tested by

no test coverage detected