| 80 | //============================================================================== |
| 81 | |
| 82 | void 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 |
nothing calls this directly
no test coverage detected