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

Method checkForUpdates

lib/QSimpleUpdater/src/Updater.cpp:253–263  ·  view source on GitHub ↗

* @brief Downloads and interprets the update definitions file referenced by * the @c url() function. */

Source from the content-addressed store, hash-verified

251 * the @c url() function.
252 */
253void Updater::checkForUpdates()
254{
255 QNetworkRequest request(url());
256 request.setAttribute(QNetworkRequest::RedirectPolicyAttribute,
257 QNetworkRequest::NoLessSafeRedirectPolicy);
258
259 if (!userAgentString().isEmpty())
260 request.setRawHeader("User-Agent", userAgentString().toUtf8());
261
262 m_manager->get(request);
263}
264
265/**
266 * @brief Changes the @a url of the update definitions file.

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected