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 <QString>
12#include <QUrl>
13
14class QWidget;
15
25class UpdateController : public QObject
26{
27 Q_OBJECT
28
29public:
31 explicit UpdateController(QWidget *parent);
32
34 void checkForUpdates();
35
36private:
38 void showUpdateDialog(const QString &latestVersion, const QUrl &downloadUrl, const QUrl &releaseUrl);
39
41 void downloadUpdate(const QString &latestVersion, const QUrl &url);
42
43 QWidget *m_parent = nullptr;
44};
void checkForUpdates()
Starts an asynchronous version check; shows the update dialog if one is available.
UpdateController(QWidget *parent)