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
15class QProgressDialog;
16class QWidget;
17
27class UpdateController : public QObject
28{
29 Q_OBJECT
30
32
33public:
35 explicit UpdateController(QWidget *parent);
36
38 void checkForUpdates();
39
40private:
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};
void checkForUpdates()
Starts an asynchronous version check; shows the update dialog if one is available.
UpdateController(QWidget *parent)
friend class TestUpdateController