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

Method close

app/src/API/Handlers/SessionsHandler.cpp:320–331  ·  view source on GitHub ↗

* @brief Closes the current session file if one is open. */

Source from the content-addressed store, hash-verified

318 * @brief Closes the current session file if one is open.
319 */
320API::CommandResponse API::Handlers::SessionsHandler::close(const QString& id,
321 const QJsonObject& params)
322{
323 Q_UNUSED(params)
324
325 Sessions::Export::instance().closeFile();
326
327 QJsonObject result;
328 result[QStringLiteral("closed")] = true;
329 result[QStringLiteral("isOpen")] = Sessions::Export::instance().isOpen();
330 return CommandResponse::makeSuccess(id, result);
331}
332
333/**
334 * @brief Returns the canonical .db path used by the session recorder for a given project title.

Callers 13

~ServerMethod · 0.45
setEnabledMethod · 0.45
acceptConnectionMethod · 0.45
fileOpenMethod · 0.45
writeBytesFunction · 0.45
loadMethod · 0.45
readResourceFunction · 0.45
getScriptingDocsMethod · 0.45
loadChatMethod · 0.45
saveChatMethod · 0.45
readIndexMethod · 0.45

Calls 2

closeFileMethod · 0.45
isOpenMethod · 0.45

Tested by

no test coverage detected