MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / checkForNewVersion

Method checkForNewVersion

Engine/AppInstance.cpp:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void
264AppInstance::checkForNewVersion() const
265{
266 FileDownloader* downloader = new FileDownloader( QUrl( QString::fromUtf8(NATRON_LATEST_VERSION_URL) ), false );
267 QObject::connect( downloader, SIGNAL(downloaded()), this, SLOT(newVersionCheckDownloaded()) );
268 QObject::connect( downloader, SIGNAL(error()), this, SLOT(newVersionCheckError()) );
269
270 ///make the call blocking
271 QEventLoop loop;
272
273 connect( downloader->getReply(), SIGNAL(finished()), &loop, SLOT(quit()) );
274 loop.exec();
275}
276
277//return -1 if a < b, 0 if a == b and 1 if a > b
278//Returns -2 if not understood

Callers

nothing calls this directly

Calls 3

QUrlClass · 0.85
getReplyMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected