MCPcopy Create free account
hub / github.com/alex-spataru/QSimpleUpdater / checkForUpdates

Method checkForUpdates

tutorial/src/Window.cpp:74–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72//==============================================================================
73
74void Window::checkForUpdates() {
75 /* Get settings from the UI */
76 QString version = m_ui->installedVersion->text();
77 bool downloaderEnabled = m_ui->enableDownloader->isChecked();
78 bool notifyOnFinish = m_ui->showAllNotifcations->isChecked();
79 bool notifyOnUpdate = m_ui->showUpdateNotifications->isChecked();
80
81 /* Apply the settings */
82 m_updater->setModuleVersion (DEFS_URL, version);
83 m_updater->setNotifyOnFinish (DEFS_URL, notifyOnFinish);
84 m_updater->setNotifyOnUpdate (DEFS_URL, notifyOnUpdate);
85 m_updater->setDownloaderEnabled (DEFS_URL, downloaderEnabled);
86
87 /* Check for updates */
88 m_updater->checkForUpdates (DEFS_URL);
89}
90
91//==============================================================================
92// Window::updateChangelog

Callers

nothing calls this directly

Calls 4

setModuleVersionMethod · 0.45
setNotifyOnFinishMethod · 0.45
setNotifyOnUpdateMethod · 0.45
setDownloaderEnabledMethod · 0.45

Tested by

no test coverage detected