![]() |
ckb-next
beta-v0.2.8 at branch testing
ckb-next driver for corsair devices
|
#include <src/ckb/fwupgradedialog.h>
Inheritance diagram for FwUpgradeDialog:
Collaboration diagram for FwUpgradeDialog: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 31 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.
Here is the call graph for this function:| FwUpgradeDialog::~FwUpgradeDialog | ( | ) |
Definition at line 48 of file fwupgradedialog.cpp.
References cleanBlob(), and ui.
Here is the call graph for this function:
|
private |
Definition at line 77 of file fwupgradedialog.cpp.
References savePath.
Referenced by fwUpdateFinished(), and ~FwUpgradeDialog().
Here is the caller graph for this function:
|
private |
Definition at line 53 of file fwupgradedialog.cpp.
| int FwUpgradeDialog::exec | ( | ) |
Definition at line 107 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 170 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::actionButton, cleanBlob(), evLoop, Ui_FwUpgradeDialog::progressBar, quit(), Ui_FwUpgradeDialog::statusLabel, and ui.
Referenced by FwUpgradeDialog(), and removeDev().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 163 of file fwupgradedialog.cpp.
References Ui_FwUpgradeDialog::progressBar, and ui.
Referenced by FwUpgradeDialog().
Here is the caller graph for this function:
|
privateslot |
Definition at line 191 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.
Here is the call graph for this function:
|
privateslot |
|
privateslot |
Definition at line 156 of file fwupgradedialog.cpp.
References fwUpdateFinished(), kb, and savePath.
Referenced by FwUpgradeDialog().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 57 of file fwupgradedialog.cpp.
References blob, and savePath.
Referenced by exec().
Here is the caller graph for this function:
|
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().