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

Method onManifestReply

app/src/Misc/Examples.cpp:235–251  ·  view source on GitHub ↗

* @brief Handles the examples.json manifest fetch response. */

Source from the content-addressed store, hash-verified

233 * @brief Handles the examples.json manifest fetch response.
234 */
235void Misc::Examples::onManifestReply()
236{
237 auto* reply = qobject_cast<QNetworkReply*>(sender());
238 if (!reply)
239 return;
240
241 reply->deleteLater();
242
243 if (reply->error() == QNetworkReply::NoError) {
244 const auto doc = QJsonDocument::fromJson(reply->readAll());
245 m_allExamples = doc.array();
246 applyFilter();
247 }
248
249 m_loading = false;
250 Q_EMIT loadingChanged();
251}
252
253/**
254 * @brief Handles the README.md fetch response and caches it.

Callers

nothing calls this directly

Calls 3

senderFunction · 0.85
fromJsonFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected