MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / checkForUpdates

Method checkForUpdates

QKeyMapper/QSimpleUpdater/tutorial/src/Window.cpp:82–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80//==============================================================================
81
82void Window::checkForUpdates()
83{
84 /* Get settings from the UI */
85 QString version = m_ui->installedVersion->text();
86 bool customAppcast = m_ui->customAppcast->isChecked();
87 bool downloaderEnabled = m_ui->enableDownloader->isChecked();
88 bool notifyOnFinish = m_ui->showAllNotifcations->isChecked();
89 bool notifyOnUpdate = m_ui->showUpdateNotifications->isChecked();
90 bool mandatoryUpdate = m_ui->mandatoryUpdate->isChecked();
91
92 /* Apply the settings */
93 m_updater->setModuleVersion(DEFS_URL, version);
94 m_updater->setNotifyOnFinish(DEFS_URL, notifyOnFinish);
95 m_updater->setNotifyOnUpdate(DEFS_URL, notifyOnUpdate);
96 m_updater->setUseCustomAppcast(DEFS_URL, customAppcast);
97 m_updater->setDownloaderEnabled(DEFS_URL, downloaderEnabled);
98 m_updater->setMandatoryUpdate(DEFS_URL, mandatoryUpdate);
99
100 /* Check for updates */
101 m_updater->checkForUpdates(DEFS_URL);
102}
103
104//==============================================================================
105// Window::updateChangelog

Callers

nothing calls this directly

Calls 6

setModuleVersionMethod · 0.45
setNotifyOnFinishMethod · 0.45
setNotifyOnUpdateMethod · 0.45
setUseCustomAppcastMethod · 0.45
setDownloaderEnabledMethod · 0.45
setMandatoryUpdateMethod · 0.45

Tested by

no test coverage detected