wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
UpdateController.h
Go to the documentation of this file.
1
// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8
#pragma once
9
10
#include <QObject>
11
#include <QPointer>
12
#include <QString>
13
#include <QUrl>
14
15
class
QProgressDialog;
16
class
QWidget;
17
27
class
UpdateController
:
public
QObject
28
{
29
Q_OBJECT
30
31
friend
class
TestUpdateController
;
32
33
public
:
35
explicit
UpdateController
(QWidget *parent);
36
38
void
checkForUpdates
();
39
40
private
:
42
void
showUpdateDialog(
const
QString &latestVersion,
const
QUrl &downloadUrl,
const
QUrl &releaseUrl);
43
45
void
downloadUpdate(
const
QString &latestVersion,
const
QUrl &url);
46
47
QWidget *m_parent =
nullptr
;
48
53
QPointer<QProgressDialog> m_progressDialog;
54
};
UpdateController::checkForUpdates
void checkForUpdates()
Starts an asynchronous version check; shows the update dialog if one is available.
Definition
UpdateController.cpp:36
UpdateController::UpdateController
UpdateController(QWidget *parent)
Definition
UpdateController.cpp:30
UpdateController::TestUpdateController
friend class TestUpdateController
Definition
UpdateController.h:31
App
UI
UpdateController.h
Generated by
1.16.1