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)

Friends

class TestUpdateController

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 27 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 30 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 36 of file UpdateController.cpp.

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

◆ TestUpdateController

friend class TestUpdateController
friend

Definition at line 31 of file UpdateController.h.

References TestUpdateController.

Referenced by TestUpdateController.


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