summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElvis Lee <kwangwoong.lee@lge.com>2020-11-04 17:34:05 +0900
committerElvis Lee <kwangwoong.lee@lge.com>2020-11-09 22:04:21 +0900
commit47bcc4dd4bc9f4c4d9e9e6f3198424105385994a (patch)
tree3ffa3cd11c8bd2e818928dc753ca415cf0e59c2c /src
parent04413b9dd8f3983fd5471354a48ad1257ca4f290 (diff)
Support customized device discovery with udev
With derived class from QDeviceDiscoveryUDev, eglfs for a platform can create own input handlers. Task-number: QTBUG-85268 Change-Id: Ib8e99b365195eff9540e7c90e14c5d269d37ad86 Reviewed-by: Elvis Lee <kwangwoong.lee@lge.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/platformsupport/devicediscovery/qdevicediscovery_udev_p.h4
-rw-r--r--src/plugins/platforms/eglfs/api/qeglfsintegration_p.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/src/platformsupport/devicediscovery/qdevicediscovery_udev_p.h b/src/platformsupport/devicediscovery/qdevicediscovery_udev_p.h
index 82b475776d..8489cf5f34 100644
--- a/src/platformsupport/devicediscovery/qdevicediscovery_udev_p.h
+++ b/src/platformsupport/devicediscovery/qdevicediscovery_udev_p.h
@@ -68,13 +68,15 @@ public:
private slots:
void handleUDevNotification();
+protected:
+ struct udev *m_udev;
+
private:
bool checkDeviceType(struct udev_device *dev);
void startWatching();
void stopWatching();
- struct udev *m_udev;
struct udev_monitor *m_udevMonitor;
int m_udevMonitorFileDescriptor;
QSocketNotifier *m_udevSocketNotifier;
diff --git a/src/plugins/platforms/eglfs/api/qeglfsintegration_p.h b/src/plugins/platforms/eglfs/api/qeglfsintegration_p.h
index 5ba24b107a..bba1f2843f 100644
--- a/src/plugins/platforms/eglfs/api/qeglfsintegration_p.h
+++ b/src/plugins/platforms/eglfs/api/qeglfsintegration_p.h
@@ -125,16 +125,18 @@ public:
void switchLang() override;
#endif
+protected:
+ virtual void createInputHandlers();
+ QEvdevKeyboardManager *m_kbdMgr;
+
private:
EGLNativeDisplayType nativeDisplay() const;
- void createInputHandlers();
EGLDisplay m_display;
QPlatformInputContext *m_inputContext;
QScopedPointer<QPlatformFontDatabase> m_fontDb;
QScopedPointer<QPlatformServices> m_services;
QScopedPointer<QFbVtHandler> m_vtHandler;
- QEvdevKeyboardManager *m_kbdMgr;
QPointer<QWindow> m_pointerWindow;
bool m_disableInputHandlers;
};