-
Notifications
You must be signed in to change notification settings - Fork 4
/
gui_fu.h
78 lines (71 loc) · 1.59 KB
/
gui_fu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef GUI_FU_H
#define GUI_FU_H
#include <QDialog>
namespace Ui { class Gui_FU; }
class Gui_FU : public QDialog
{
Q_OBJECT
Ui::Gui_FU *ui;
public:
explicit Gui_FU(const QString &version, QWidget *parent = nullptr);
~Gui_FU();
/*!
* \brief askForRestart
* Question for restart app after update installed
*/
bool askForRestart();
signals:
/*!
* \brief checkUpdate
* Check update sig
*/
void checkUpdate();
/*!
* \brief downloadUpdate
* Download update sig
*/
void downloadUpdate();
/*!
* \brief install
* Install update sig
*/
void install();
public slots:
/*!
* \brief updateAvailable
* Shows update data
* \param version
* Version
* \param desc
* Description
* \param filesSize
* Sizeof files to download for progress bar
*/
void updateAvailable(const QString &version, const QString &desc, int filesSize);
/*!
* \brief showError
* Shows error
*/
void showError(const QString &err);
/*!
* \brief showStatus
* Displays status
*/
void showStatus(const QString &err);
/*!
* \brief successDownloadUpdate
* Settings widgtes after success download update
*/
void successDownloadUpdate();
/*!
* \brief updateProgress
* Update progress bar procent
*/
void updateProgress(int remain);
/*!
* \brief noNeedUpdate
* Displays no need update
*/
void noNeedUpdate() { showStatus(tr("Your software does not need to update.")); }
};
#endif // GUI_FU_H