void FvUpdater::UpdateInstallationNotConfirmed() { qDebug() << "Do not confirm update installation"; hideUpdateConfirmationDialog(); // if any; shouldn't be shown at this point, but who knows // leave the "update proposal window" inact }
void FvUpdater::RemindMeLater() { qDebug() << "Remind me later"; hideUpdaterWindow(); hideUpdateConfirmationDialog(); // if any; shouldn't be shown at this point, but who knows }
FvUpdater::~FvUpdater() { if (m_proposedUpdate) { delete m_proposedUpdate; m_proposedUpdate = 0; } hideUpdateConfirmationDialog(); hideUpdaterWindow(); }
void FvUpdater::showUpdateConfirmationDialogUpdatedWithCurrentUpdateProposal() { // Destroy dialog if already exists hideUpdateConfirmationDialog(); // Create a new window m_updateConfirmationDialog = new FvUpdateConfirmDialog(); m_updateConfirmationDialog->UpdateWindowWithCurrentProposedUpdate(); m_updateConfirmationDialog->show(); }
void FvUpdater::SkipUpdate() { qDebug() << "Skip update"; FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); if (! proposedUpdate) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return; } // Start ignoring this particular version FVIgnoredVersions::IgnoreVersion(proposedUpdate->GetEnclosureVersion()); hideUpdaterWindow(); hideUpdateConfirmationDialog(); // if any; shouldn't be shown at this point, but who knows }
void FvUpdater::UpdateInstallationConfirmed() { qDebug() << "Confirm update installation"; FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); if (! proposedUpdate) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return; } // Open a link if (! QDesktopServices::openUrl(proposedUpdate->GetEnclosureUrl())) { showErrorDialog(tr("Unable to open this link in a browser. Please do it manually."), true); return; } hideUpdaterWindow(); hideUpdateConfirmationDialog(); }
FvUpdater::~FvUpdater() { if (m_proposedUpdate) { delete m_proposedUpdate; m_proposedUpdate = 0; } hideUpdateConfirmationDialog(); hideUpdaterWindow(); hideAutoUpdateConfirmationDialog(); hideUpdateCheckingDialog(); delete m_autoUpdater; m_autoUpdater = 0; // freeing the auto update timer m_updateTimer->stop(); delete m_updateTimer; m_updateTimer = 0; }