34 static void dither(
bool newDither);
145 Kb(
QObject *parent,
const QString& path);
157 inline bool matches(
const QString& path,
const QString& serial) {
return path.trimmed() ==
devpath.trimmed() &&
usbSerial == serial.trimmed().toUpper(); }
static KeyMap::Layout layout()
static const int HW_I_COUNT
KbProfile * newProfile(KbProfile *other)
const ModeList & modes() const
void setCurrentMode(KbProfile *profile, KbMode *mode, bool spontaneous=true)
bool matches(const QString &path, const QString &serial)
QString getMacroPath()
getMacroPath returns the macroPath (e.g. /dev/input/ckb1/notify), which we have saved in the construc...
QList< KbProfile * > _profiles
KbMode * newMode(KbMode *other)
int getMacroNumber()
For usage with macro definions, these two params must only be readable. So there are no setters...
void writeProfileHeader()
KbProfile * currentProfile()
bool iState[KbPerf::HW_I_COUNT]
int indexOf(KbProfile *profile)
void setCurrentProfile(KbProfile *profile, bool spontaneous=true)
void fwUpdate(const QString &path)
static const int HWMODE_MAX
void setCurrentMode(KbMode *mode, bool spontaneous=true)
KeyMap::Model model() const
void profiles(const QList< KbProfile * > &newProfiles)
QString devpath
pathVars devpath is the device root path (e.g. /dev/device/ckb1), cmdpath leads to the daemon input p...
const QList< KbProfile * > & profiles() const
void appendProfile(KbProfile *newProfile)
void modeChanged(bool spontaneous)
bool hwLoading[HWMODE_MAX+1]
void fwUpdateProgress(int current, int total)
static KeyMap::Layout _layout
void fwUpdateFinished(bool succeeded)
int notifyNumber
notifyNumber is the trailing number in the device path.
Kb(QObject *parent, const QString &path)
KbProfile * find(const QUuid &id)
void setCurrentMode(KbProfile *profile, int index, bool spontaneous=true)
KbProfile * _currentProfile
void readNotify(QString line)