wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
UpdateController Class Reference

Owns the update-check lifecycle: querying for a newer release and presenting the resulting notification / download dialogs. More...

#include <UpdateController.h>

Inheritance diagram for UpdateController:
[legend]

Public Member Functions

void checkForUpdates ()
 Starts an asynchronous version check; shows the update dialog if one is available.
 UpdateController (QWidget *parent)

Detailed Description

Owns the update-check lifecycle: querying for a newer release and presenting the resulting notification / download dialogs.

Extracted from MainWindow. Couples only to a parent QWidget (for dialog parenting) and Settings; it has no dependency on tabs, scenes, or circuit state. Call checkForUpdates() once after the window is shown.

Definition at line 25 of file UpdateController.h.

Constructor & Destructor Documentation

◆ UpdateController()

UpdateController::UpdateController ( QWidget * parent)
explicit
Parameters
parentWidget used to parent the modal update dialogs (and as QObject parent).

Definition at line 29 of file UpdateController.cpp.

Member Function Documentation

◆ checkForUpdates()

void UpdateController::checkForUpdates ( )

Starts an asynchronous version check; shows the update dialog if one is available.

Definition at line 35 of file UpdateController.cpp.

References Application::interactiveMode, and UpdateChecker::updateAvailable().


The documentation for this class was generated from the following files: