2022-08-25 01:14:12 +02:00
|
|
|
#ifndef UPDATEDIALOG_MOC_H
|
|
|
|
#define UPDATEDIALOG_MOC_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2022-08-25 03:09:20 +02:00
|
|
|
class JsonNode;
|
|
|
|
|
2022-08-25 01:14:12 +02:00
|
|
|
namespace Ui {
|
|
|
|
class UpdateDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class UpdateDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-08-25 04:45:31 +02:00
|
|
|
explicit UpdateDialog(QWidget *parent = nullptr, bool calledManually = false);
|
2022-08-25 01:14:12 +02:00
|
|
|
~UpdateDialog();
|
|
|
|
|
2022-08-25 04:45:31 +02:00
|
|
|
static void showUpdateDialog(bool isManually);
|
2022-08-25 01:14:12 +02:00
|
|
|
|
2022-08-25 01:43:58 +02:00
|
|
|
private slots:
|
|
|
|
void on_checkOnStartup_stateChanged(int state);
|
|
|
|
|
2022-08-25 01:14:12 +02:00
|
|
|
private:
|
|
|
|
Ui::UpdateDialog *ui;
|
2022-08-25 03:09:20 +02:00
|
|
|
|
2022-08-25 03:34:36 +02:00
|
|
|
std::string currentVersion;
|
2022-08-25 03:09:20 +02:00
|
|
|
std::string platformParameter = "other";
|
|
|
|
|
2022-08-25 04:45:31 +02:00
|
|
|
bool calledManually;
|
|
|
|
|
2022-08-25 03:09:20 +02:00
|
|
|
void loadFromJson(const JsonNode & node);
|
2022-08-25 01:14:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // UPDATEDIALOG_MOC_H
|