Make InputRedirection::addInputBackend public

This allows plugins to register additional input backends.
This commit is contained in:
David Redondo 2024-03-26 11:41:14 +01:00 committed by Vlad Zahorodnii
parent 9ba95ecd5d
commit 2120e18729

View file

@ -250,6 +250,10 @@ public:
void enableTouchpads(); void enableTouchpads();
void disableTouchpads(); void disableTouchpads();
void addInputDevice(InputDevice *device);
void removeInputDevice(InputDevice *device);
void addInputBackend(std::unique_ptr<InputBackend> &&inputBackend);
Q_SIGNALS: Q_SIGNALS:
void deviceAdded(InputDevice *device); void deviceAdded(InputDevice *device);
void deviceRemoved(InputDevice *device); void deviceRemoved(InputDevice *device);
@ -297,10 +301,6 @@ Q_SIGNALS:
void hasTouchChanged(bool set); void hasTouchChanged(bool set);
void hasTabletModeSwitchChanged(bool set); void hasTabletModeSwitchChanged(bool set);
public Q_SLOTS:
void addInputDevice(InputDevice *device);
void removeInputDevice(InputDevice *device);
private Q_SLOTS: private Q_SLOTS:
void handleInputConfigChanged(const KConfigGroup &group); void handleInputConfigChanged(const KConfigGroup &group);
void updateScreens(); void updateScreens();
@ -313,7 +313,6 @@ private:
void installInputEventFilter(InputEventFilter *filter); void installInputEventFilter(InputEventFilter *filter);
void updateLeds(LEDs leds); void updateLeds(LEDs leds);
void updateAvailableInputDevices(); void updateAvailableInputDevices();
void addInputBackend(std::unique_ptr<InputBackend> &&inputBackend);
KeyboardInputRedirection *m_keyboard; KeyboardInputRedirection *m_keyboard;
PointerInputRedirection *m_pointer; PointerInputRedirection *m_pointer;
TabletInputRedirection *m_tablet; TabletInputRedirection *m_tablet;