added changelog drawer
This commit is contained in:
parent
53746f2f66
commit
871037f887
13 changed files with 384 additions and 51 deletions
34
client/ui/controllers/updateController.h
Normal file
34
client/ui/controllers/updateController.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#ifndef UPDATECONTROLLER_H
|
||||
#define UPDATECONTROLLER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
class UpdateController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit UpdateController(const std::shared_ptr<Settings> &settings, QObject *parent = nullptr);
|
||||
|
||||
Q_PROPERTY(QString changelogText READ getChangelogText NOTIFY updateFound)
|
||||
Q_PROPERTY(QString headerText READ getHeaderText NOTIFY updateFound)
|
||||
public slots:
|
||||
QString getHeaderText();
|
||||
QString getChangelogText();
|
||||
|
||||
void checkForUpdates();
|
||||
void runInstaller();
|
||||
signals:
|
||||
void updateFound();
|
||||
void errorOccured(const QString &errorMessage);
|
||||
private:
|
||||
std::shared_ptr<Settings> m_settings;
|
||||
|
||||
QString m_changelogText;
|
||||
QString m_version;
|
||||
QString m_releaseDate;
|
||||
QString m_downloadUrl;
|
||||
};
|
||||
|
||||
#endif // UPDATECONTROLLER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue