ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kbfirmware.cpp File Reference
#include "kbfirmware.h"
#include "kbmanager.h"
#include "quazip/quazip.h"
#include "quazip/quazipfile.h"
#include <QDateTime>
#include <QDebug>
+ Include dependency graph for kbfirmware.cpp:

Go to the source code of this file.

Functions

static QString tableName (const QString &features)
 

Variables

static const quint64 AUTO_CHECK_TIME = 60 * 60 * 1000
 

Function Documentation

static QString tableName ( const QString &  features)
static

Definition at line 150 of file kbfirmware.cpp.

Referenced by KbFirmware::_fileForBoard(), and KbFirmware::_latestForBoard().

150  {
151  QStringList components = features.split(" ");
152  if(components.length() < 2)
153  return "";
154  // First two components are vendor and model
155  QString vendorModel = components[0].toUpper() + "-" + components[1].toUpper();
156  // Add "RGB" on RGB boards
157  if(features.contains("rgb") && !features.contains("monochrome"))
158  vendorModel += "RGB";
159  return vendorModel;
160 }

+ Here is the caller graph for this function:

Variable Documentation

const quint64 AUTO_CHECK_TIME = 60 * 60 * 1000
static

Definition at line 9 of file kbfirmware.cpp.

Referenced by KbFirmware::_checkUpdates().