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
UsbId Struct Reference

#include <src/ckb/kbmode.h>

+ Collaboration diagram for UsbId:

Public Member Functions

 UsbId (const QString &_guid, quint32 _modified)
 
 UsbId (const QString &_guid, const QString &_modified)
 
 UsbId ()
 
QString guidString () const
 
void guidString (const QString &newGuid)
 
QString modifiedString () const
 
void modifiedString (const QString &newModified)
 
QString hwModifiedString () const
 
void hwModifiedString (const QString &newModified)
 
void newGuid ()
 
void newModified ()
 

Data Fields

QUuid guid
 
quint32 modified
 
quint32 hwModified
 

Detailed Description

Definition at line 11 of file kbmode.h.

Constructor & Destructor Documentation

UsbId::UsbId ( const QString &  _guid,
quint32  _modified 
)
inline

Definition at line 16 of file kbmode.h.

16 : guid(_guid), modified(_modified), hwModified(_modified) {}
QUuid guid
Definition: kbmode.h:12
quint32 modified
Definition: kbmode.h:13
quint32 hwModified
Definition: kbmode.h:14
UsbId::UsbId ( const QString &  _guid,
const QString &  _modified 
)
inline

Definition at line 17 of file kbmode.h.

17 : guid(_guid), modified(_modified.toUInt(0, 16)), hwModified(modified) {}
QUuid guid
Definition: kbmode.h:12
quint32 modified
Definition: kbmode.h:13
quint32 hwModified
Definition: kbmode.h:14
UsbId::UsbId ( )
inline

Definition at line 18 of file kbmode.h.

18 : guid(QUuid::createUuid()),modified(0) {}
QUuid guid
Definition: kbmode.h:12
quint32 modified
Definition: kbmode.h:13

Member Function Documentation

QString UsbId::guidString ( ) const
inline

Definition at line 20 of file kbmode.h.

References guid.

Referenced by Kb::hwSave(), KbProfile::save(), KbMode::save(), Kb::save(), and Kb::writeProfileHeader().

20 { return guid.toString().toUpper(); }
QUuid guid
Definition: kbmode.h:12

+ Here is the caller graph for this function:

void UsbId::guidString ( const QString &  newGuid)
inline

Definition at line 21 of file kbmode.h.

References guid, and newGuid().

21 { guid = newGuid; }
QUuid guid
Definition: kbmode.h:12
void newGuid()
Definition: kbmode.h:28

+ Here is the call graph for this function:

QString UsbId::hwModifiedString ( ) const
inline

Definition at line 24 of file kbmode.h.

References hwModified.

Referenced by KbMode::KbMode(), KbProfile::KbProfile(), Kb::readNotify(), KbProfile::save(), and KbMode::save().

24 { return QString::number(hwModified, 16); }
quint32 hwModified
Definition: kbmode.h:14

+ Here is the caller graph for this function:

void UsbId::hwModifiedString ( const QString &  newModified)
inline

Definition at line 25 of file kbmode.h.

References hwModified.

25 { hwModified = newModified.toUInt(0, 16); }
void newModified()
Definition: kbmode.h:29
quint32 hwModified
Definition: kbmode.h:14
QString UsbId::modifiedString ( ) const
inline

Definition at line 22 of file kbmode.h.

References modified.

Referenced by Kb::hwSave(), KbProfile::KbProfile(), Kb::readNotify(), KbProfile::save(), KbMode::save(), and Kb::writeProfileHeader().

22 { return QString::number(modified, 16); }
quint32 modified
Definition: kbmode.h:13

+ Here is the caller graph for this function:

void UsbId::modifiedString ( const QString &  newModified)
inline

Definition at line 23 of file kbmode.h.

References modified.

23 { modified = newModified.toUInt(0, 16); }
quint32 modified
Definition: kbmode.h:13
void newModified()
Definition: kbmode.h:29
void UsbId::newGuid ( )
inline

Definition at line 28 of file kbmode.h.

References guid.

Referenced by guidString().

28 { guid = QUuid::createUuid(); }
QUuid guid
Definition: kbmode.h:12

+ Here is the caller graph for this function:

void UsbId::newModified ( )
inline

Definition at line 29 of file kbmode.h.

References modified.

Referenced by KbProfile::save(), and KbMode::save().

29 { quint32 newMod; do { newMod = qrand(); } while(newMod == modified); modified = newMod; }
quint32 modified
Definition: kbmode.h:13

+ Here is the caller graph for this function:

Field Documentation

quint32 UsbId::hwModified

Definition at line 14 of file kbmode.h.

Referenced by hwModifiedString(), Kb::hwSave(), KbMode::KbMode(), and KbProfile::KbProfile().

quint32 UsbId::modified

The documentation for this struct was generated from the following file: