![]() |
ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kbfirmware.h>
Inheritance diagram for KbFirmware:
Collaboration diagram for KbFirmware:Data Structures | |
| struct | FW |
Signals | |
| void | downloaded () |
Static Public Member Functions | |
| static bool | checkUpdates () |
| static bool | hasDownloaded () |
| static float | versionForBoard (const QString &features, bool waitForComplete=false) |
| static QByteArray | dataForBoard (const QString &features) |
Data Fields | |
| QNetworkAccessManager * | networkManager |
Private Types | |
| enum | { UNKNOWN = -1, NO, YES } |
Private Slots | |
| void | processDownload (QNetworkReply *reply) |
| void | downloadFinished () |
Private Member Functions | |
| KbFirmware () | |
| ~KbFirmware () | |
| bool | _checkUpdates () |
| float | _latestForBoard (const QString &features, bool waitForComplete) |
| QByteArray | _fileForBoard (const QString &features) |
Private Attributes | |
| quint64 | lastCheck |
| quint64 | lastFinished |
| QMap< QString, FW > | fwTable |
| QByteArray | fwTableHash |
| QNetworkReply * | tableDownload |
| enum KbFirmware:: { ... } | hasGPG |
Static Private Attributes | |
| static KbFirmware | instance |
Definition at line 10 of file kbfirmware.h.
|
private |
| Enumerator | |
|---|---|
| UNKNOWN | |
| NO | |
| YES | |
Definition at line 52 of file kbfirmware.h.
|
private |
Definition at line 14 of file kbfirmware.cpp.
References networkManager.
|
private |
|
private |
Definition at line 28 of file kbfirmware.cpp.
References AUTO_CHECK_TIME, downloadFinished(), lastCheck, networkManager, and tableDownload.
Referenced by checkUpdates().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 180 of file kbfirmware.cpp.
References QuaZip::csInsensitive, KbFirmware::FW::fileName, fwTable, KbFirmware::FW::hash, QuaZip::mdUnzip, networkManager, QuaZip::open(), QuaZipFile::open(), quit(), QuaZip::setCurrentFile(), tableName(), and KbFirmware::FW::url.
Referenced by dataForBoard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 162 of file kbfirmware.cpp.
References checkUpdates(), KbManager::ckbDaemonVersionF(), KbManager::ckbGuiVersionF(), KbFirmware::FW::ckbVersion, downloaded(), fwTable, KbFirmware::FW::fwVersion, KbFirmware::FW::hash, quit(), tableDownload, and tableName().
Referenced by versionForBoard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 15 of file kbfirmware.h.
References _checkUpdates(), and instance.
Referenced by _latestForBoard(), and MainWindow::timerTick().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 25 of file kbfirmware.h.
References _fileForBoard(), and instance.
Referenced by FwUpgradeDialog::exec().
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
Definition at line 148 of file moc_kbfirmware.cpp.
Referenced by _latestForBoard(), and downloadFinished().
Here is the caller graph for this function:
|
privateslot |
Definition at line 141 of file kbfirmware.cpp.
References downloaded(), processDownload(), and tableDownload.
Referenced by _checkUpdates().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 18 of file kbfirmware.h.
References instance, and lastFinished.
Referenced by KbWidget::on_fwUpdButton_clicked(), and KbWidget::updateFwButton().
Here is the caller graph for this function:
|
privateslot |
Definition at line 41 of file kbfirmware.cpp.
References KbFirmware::FW::ckbVersion, KbFirmware::FW::fileName, fwTable, fwTableHash, KbFirmware::FW::fwVersion, hasGPG, KbFirmware::FW::hash, lastCheck, lastFinished, NO, KbManager::parseVersionString(), UNKNOWN, KbFirmware::FW::url, and YES.
Referenced by downloadFinished().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 22 of file kbfirmware.h.
References _latestForBoard(), and instance.
Referenced by MainWindow::checkFwUpdates(), KbWidget::on_fwUpdButton_clicked(), and KbWidget::updateFwButton().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 44 of file kbfirmware.h.
Referenced by _fileForBoard(), _latestForBoard(), and processDownload().
|
private |
Definition at line 46 of file kbfirmware.h.
Referenced by processDownload().
| enum { ... } KbFirmware::hasGPG |
Referenced by processDownload().
|
staticprivate |
Definition at line 58 of file kbfirmware.h.
Referenced by checkUpdates(), dataForBoard(), hasDownloaded(), and versionForBoard().
|
private |
Definition at line 35 of file kbfirmware.h.
Referenced by _checkUpdates(), and processDownload().
|
private |
Definition at line 35 of file kbfirmware.h.
Referenced by hasDownloaded(), and processDownload().
| QNetworkAccessManager* KbFirmware::networkManager |
Definition at line 28 of file kbfirmware.h.
Referenced by _checkUpdates(), _fileForBoard(), KbFirmware(), and ~KbFirmware().
|
private |
Definition at line 49 of file kbfirmware.h.
Referenced by _checkUpdates(), _latestForBoard(), and downloadFinished().