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

Method appendLog

app/src/IO/FileTransmission.cpp:758–767  ·  view source on GitHub ↗

* @brief Appends a timestamped entry to the activity log. */

Source from the content-addressed store, hash-verified

756 * @brief Appends a timestamped entry to the activity log.
757 */
758void IO::FileTransmission::appendLog(const QString& message)
759{
760 auto timestamp = QTime::currentTime().toString("HH:mm:ss");
761 m_logEntries.append(QStringLiteral("[%1] %2").arg(timestamp, message));
762
763 while (m_logEntries.size() > kMaxLogEntries)
764 m_logEntries.removeFirst();
765
766 Q_EMIT logChanged();
767}
768
769/**
770 * @brief Connects a protocol's signals to the FileTransmission controller slots.

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected