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

Function loadManifest

app/src/API/Handlers/ScriptsHandler.cpp:101–108  ·  view source on GitHub ↗

* @brief Reads the manifest for one kind into a QJsonArray of entries. */

Source from the content-addressed store, hash-verified

99 * @brief Reads the manifest for one kind into a QJsonArray of entries.
100 */
101static QJsonArray loadManifest(const detail::Kind& kind)
102{
103 QFile f(kind.manifest);
104 if (!f.open(QIODevice::ReadOnly | QIODevice::Text))
105 return {};
106
107 return QJsonDocument::fromJson(f.readAll()).array();
108}
109
110/**
111 * @brief Returns a brief catalog row for one manifest entry.

Callers 2

listMethod · 0.85
getMethod · 0.85

Calls 2

fromJsonFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected