mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
34 lines
737 B
C++
34 lines
737 B
C++
|
|
#ifndef UPDATEUICONTROLLER_H
|
||
|
|
#define UPDATEUICONTROLLER_H
|
||
|
|
|
||
|
|
#include <QObject>
|
||
|
|
|
||
|
|
#include "core/controllers/updateController.h"
|
||
|
|
|
||
|
|
class UpdateUiController : public QObject
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
Q_PROPERTY(QString changelogText READ getChangelogText NOTIFY updateFound)
|
||
|
|
Q_PROPERTY(QString headerText READ getHeaderText NOTIFY updateFound)
|
||
|
|
|
||
|
|
public:
|
||
|
|
explicit UpdateUiController(UpdateController* updateController, QObject *parent = nullptr);
|
||
|
|
|
||
|
|
QString getHeaderText() const;
|
||
|
|
QString getChangelogText() const;
|
||
|
|
QString getVersion() const;
|
||
|
|
|
||
|
|
public slots:
|
||
|
|
void checkForUpdates();
|
||
|
|
void runInstaller();
|
||
|
|
|
||
|
|
signals:
|
||
|
|
void updateFound();
|
||
|
|
|
||
|
|
private:
|
||
|
|
UpdateController* m_updateController;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // UPDATEUICONTROLLER_H
|