ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/fwupgradedialog.h>
Public Member Functions | |
FwUpgradeDialog (QWidget *parent, float newV, const QByteArray &fwBlob, Kb *device) | |
~FwUpgradeDialog () | |
int | exec () |
Private Slots | |
void | fwUpdateProgress (int current, int total) |
void | fwUpdateFinished (bool succeeded) |
void | removeDev () |
void | on_cancelButton_clicked () |
void | on_actionButton_clicked () |
Private Member Functions | |
void | closeEvent (QCloseEvent *event) |
const QString & | saveBlob () |
void | cleanBlob () |
Private Attributes | |
Ui::FwUpgradeDialog * | ui |
QString | savePath |
QByteArray | blob |
Kb * | kb |
QEventLoop * | evLoop |
bool | exitSuccess |
Definition at line 13 of file fwupgradedialog.h.
FwUpgradeDialog::FwUpgradeDialog | ( | QWidget * | parent, |
float | newV, | ||
const QByteArray & | fwBlob, | ||
Kb * | device | ||
) |
Definition at line 32 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::curLabel, Ui_FwUpgradeDialog::devLabel, DIALOG_HEIGHT_MIN, DIALOG_WIDTH, Kb::firmware, fwUpdateFinished(), fwUpdateProgress(), kb, Ui_FwUpgradeDialog::newLabel, removeDev(), Ui_FwUpgradeDialog::setupUi(), ui, and Kb::usbModel.
FwUpgradeDialog::~FwUpgradeDialog | ( | ) |
Definition at line 49 of file fwupgradedialog.cpp.
References cleanBlob(), and ui.
|
private |
Definition at line 78 of file fwupgradedialog.cpp.
References savePath.
Referenced by fwUpdateFinished(), and ~FwUpgradeDialog().
|
private |
Definition at line 54 of file fwupgradedialog.cpp.
int FwUpgradeDialog::exec | ( | ) |
Definition at line 108 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::actionButton, blob, Ui_FwUpgradeDialog::cancelButton, KbFirmware::dataForBoard(), DIALOG_HEIGHT_MAX(), DIALOG_WIDTH, evLoop, exitSuccess, Kb::features, kb, Ui_FwUpgradeDialog::newLabel, Ui_FwUpgradeDialog::progressBar, saveBlob(), Ui_FwUpgradeDialog::statusLabel, ui, and verifyFw().
Referenced by KbWidget::on_fwUpdButton_clicked().
|
privateslot |
Definition at line 171 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::actionButton, cleanBlob(), evLoop, Ui_FwUpgradeDialog::progressBar, quit(), Ui_FwUpgradeDialog::statusLabel, and ui.
Referenced by FwUpgradeDialog(), and removeDev().
|
privateslot |
Definition at line 164 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::progressBar, and ui.
Referenced by FwUpgradeDialog().
|
privateslot |
Definition at line 192 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::actionButton, Ui_FwUpgradeDialog::cancelButton, DIALOG_HEIGHT_MIN, DIALOG_WIDTH, evLoop, Kb::fwUpdate(), kb, Ui_FwUpgradeDialog::progressBar, savePath, Ui_FwUpgradeDialog::statusLabel, and ui.
|
privateslot |
|
privateslot |
Definition at line 157 of file fwupgradedialog.cpp.
References fwUpdateFinished(), kb, and savePath.
Referenced by FwUpgradeDialog().
|
private |
Definition at line 58 of file fwupgradedialog.cpp.
References blob, and savePath.
Referenced by exec().
|
private |
Definition at line 41 of file fwupgradedialog.h.
Referenced by exec(), and saveBlob().
|
private |
Definition at line 45 of file fwupgradedialog.h.
Referenced by exec(), fwUpdateFinished(), on_actionButton_clicked(), and on_cancelButton_clicked().
|
private |
Definition at line 46 of file fwupgradedialog.h.
Referenced by exec(), and on_cancelButton_clicked().
|
private |
Definition at line 42 of file fwupgradedialog.h.
Referenced by exec(), FwUpgradeDialog(), on_actionButton_clicked(), and removeDev().
|
private |
Definition at line 37 of file fwupgradedialog.h.
Referenced by cleanBlob(), on_actionButton_clicked(), removeDev(), and saveBlob().
|
private |
Definition at line 32 of file fwupgradedialog.h.
Referenced by exec(), fwUpdateFinished(), fwUpdateProgress(), FwUpgradeDialog(), on_actionButton_clicked(), and ~FwUpgradeDialog().