Changeset View
Changeset View
Standalone View
Standalone View
kcms/touchpad/src/backends/x11/xlibbackend.h
Show All 37 Lines | |||||
38 | class XlibTouchpad; | 38 | class XlibTouchpad; | ||
39 | class XlibNotifications; | 39 | class XlibNotifications; | ||
40 | class XRecordKeyboardMonitor; | 40 | class XRecordKeyboardMonitor; | ||
41 | 41 | | |||
42 | class XlibBackend : public TouchpadBackend | 42 | class XlibBackend : public TouchpadBackend | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | 45 | | |||
46 | Q_PROPERTY(int touchpadCount READ touchpadCount CONSTANT) | ||||
47 | | ||||
46 | public: | 48 | public: | ||
47 | static XlibBackend* initialize(QObject *parent = nullptr); | 49 | static XlibBackend* initialize(QObject *parent = nullptr); | ||
48 | ~XlibBackend(); | 50 | ~XlibBackend(); | ||
49 | 51 | | |||
50 | bool applyConfig(const QVariantHash &) override; | 52 | bool applyConfig(const QVariantHash &) override; | ||
53 | bool applyConfig() override; | ||||
51 | bool getConfig(QVariantHash &) override; | 54 | bool getConfig(QVariantHash &) override; | ||
55 | bool getConfig() override; | ||||
56 | bool getDefaultConfig() override; | ||||
57 | bool isChangedConfig() const override; | ||||
52 | QStringList supportedParameters() const override { | 58 | QStringList supportedParameters() const override { | ||
53 | return m_device ? m_device->supportedParameters() : QStringList(); | 59 | return m_device ? m_device->supportedParameters() : QStringList(); | ||
54 | } | 60 | } | ||
55 | QString errorString() const override { return m_errorString; } | 61 | QString errorString() const override { return m_errorString; } | ||
56 | int touchpadCount() const override { return m_device ? 1 : 0; } | 62 | int touchpadCount() const override { return m_device ? 1 : 0; } | ||
57 | 63 | | |||
58 | void setTouchpadOff(TouchpadOffState) override; | 64 | void setTouchpadOff(TouchpadOffState) override; | ||
59 | TouchpadOffState getTouchpadOff() override; | 65 | TouchpadOffState getTouchpadOff() override; | ||
60 | 66 | | |||
61 | bool isTouchpadAvailable() override; | 67 | bool isTouchpadAvailable() override; | ||
62 | bool isTouchpadEnabled() override; | 68 | bool isTouchpadEnabled() override; | ||
63 | void setTouchpadEnabled(bool) override; | 69 | void setTouchpadEnabled(bool) override; | ||
64 | 70 | | |||
65 | void watchForEvents(bool keyboard) override; | 71 | void watchForEvents(bool keyboard) override; | ||
66 | 72 | | |||
67 | QStringList listMouses(const QStringList &blacklist) override; | 73 | QStringList listMouses(const QStringList &blacklist) override; | ||
74 | QVector<QObject*> getDevices() const override { return m_device ? QVector<QObject*> { m_device.data()} : QVector<QObject*>(); } | ||||
romangg: Put the definition in the cpp file. | |||||
68 | 75 | | |||
69 | private slots: | 76 | private slots: | ||
70 | void propertyChanged(xcb_atom_t); | 77 | void propertyChanged(xcb_atom_t); | ||
71 | void touchpadDetached(); | 78 | void touchpadDetached(); | ||
72 | void devicePlugged(int); | 79 | void devicePlugged(int); | ||
73 | 80 | | |||
74 | protected: | 81 | protected: | ||
75 | explicit XlibBackend(QObject *parent); | 82 | explicit XlibBackend(QObject *parent); | ||
Show All 21 Lines |
Put the definition in the cpp file.