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

Method clear

app/src/API/Handlers/ConsoleHandler.cpp:486–496  ·  view source on GitHub ↗

* @brief Clear console */

Source from the content-addressed store, hash-verified

484 * @brief Clear console
485 */
486API::CommandResponse API::Handlers::ConsoleHandler::clear(const QString& id,
487 const QJsonObject& params)
488{
489 Q_UNUSED(params)
490
491 Console::Handler::instance().clear();
492
493 QJsonObject result;
494 result[QStringLiteral("cleared")] = true;
495 return CommandResponse::makeSuccess(id, result);
496}
497
498/**
499 * @brief Send data to device

Callers 11

closeResourcesMethod · 0.45
setEnabledMethod · 0.45
handleAuthHandshakeMethod · 0.45
disconnectClientMethod · 0.45
processBufferedJsonMethod · 0.45
killAllMethod · 0.45
applySimpleAlarmFieldsFunction · 0.45
datasetSetAlarmBandsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected