1 Star 0 Fork 1

wangliangfmail / Qt_hmi

forked from Atom / Qt_hmi 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
updatedialog.h 963 Bytes
一键复制 编辑 原始数据 按行查看 历史
Atom 提交于 2021-01-20 19:52 . Fist upload source code
#ifndef __UPDATE_DIALOG_H
#define __UPDATE_DIALOG_H
#include <QtWidgets>
#include "otahelperclient.h"
class UpdateDialog : public QWidget
{
Q_OBJECT
public:
enum { Stopped = 0, Started };
UpdateDialog (OtaHelperCli *updateCli, QWidget *parent = NULL);
~UpdateDialog();
signals:
void userClicked(int);
public slots:
void onQuitButtonClicked();
void onConfirmUpdate();
void onPopupWindowRequested(int windowId);
void onProgressChanged(int value, QString dnSpeed);
void onErrorStatusChanged(int errCode, QString errString);
void onBookInstallClicked();
void onBookOkClicked();
private:
int updateStatus;
QLabel *errLabel;
QLabel *statusLabel;
QTextEdit *infoView;
QSpinBox *selectMinutesBox;
QPushButton *updateButton, *quitButton, *bookInstallButton, *bookOkButton;
QProgressBar *progressBar, *subProgressBar;
QLabel *speedLabel;
QLabel *percentageLabel, *subPercentageLabel;
bool isConfirmedByUser;
OtaHelperCli *updateCli;
};
#endif
C++
1
https://gitee.com/wangliangfmail/qt_hmi.git
git@gitee.com:wangliangfmail/qt_hmi.git
wangliangfmail
qt_hmi
Qt_hmi
master

搜索帮助