Changeset View
Changeset View
Standalone View
Standalone View
xkb.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | { | 50 | { | ||
51 | 51 | | |||
52 | class KWIN_EXPORT Xkb : public QObject | 52 | class KWIN_EXPORT Xkb : public QObject | ||
53 | { | 53 | { | ||
54 | Q_OBJECT | 54 | Q_OBJECT | ||
55 | public: | 55 | public: | ||
56 | Xkb(QObject *parent = nullptr); | 56 | Xkb(QObject *parent = nullptr); | ||
57 | ~Xkb() override; | 57 | ~Xkb() override; | ||
58 | void setConfig(KSharedConfigPtr config) { | 58 | void setConfig(const KSharedConfigPtr &config) { | ||
59 | m_config = config; | 59 | m_config = config; | ||
60 | } | 60 | } | ||
61 | void setNumLockConfig(KSharedConfigPtr config) { | 61 | void setNumLockConfig(const KSharedConfigPtr &config) { | ||
62 | m_numLockConfig = config; | 62 | m_numLockConfig = config; | ||
63 | } | 63 | } | ||
64 | void reconfigure(); | 64 | void reconfigure(); | ||
65 | 65 | | |||
66 | void installKeymap(int fd, uint32_t size); | 66 | void installKeymap(int fd, uint32_t size); | ||
67 | void updateModifiers(uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group); | 67 | void updateModifiers(uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group); | ||
68 | void updateKey(uint32_t key, InputRedirection::KeyboardKeyState state); | 68 | void updateKey(uint32_t key, InputRedirection::KeyboardKeyState state); | ||
69 | xkb_keysym_t toKeysym(uint32_t key); | 69 | xkb_keysym_t toKeysym(uint32_t key); | ||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |