From 923927ae45dd10be5c3c854d568dae6751ccb87e Mon Sep 17 00:00:00 2001 From: Utkarsh Tiwari Date: Sun, 7 Aug 2022 00:34:31 +0530 Subject: qcam: Support Hotplug for Camera Selection Dialog Currently if there is HotPlug event when the user is on the Camera selection dialog, the QComboBox doesn't update to reflect the change. Add support for hotplugging / unplugging cameras. Signed-off-by: Utkarsh Tiwari Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- src/qcam/cam_select_dialog.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/qcam/cam_select_dialog.h') diff --git a/src/qcam/cam_select_dialog.h b/src/qcam/cam_select_dialog.h index bce258b2..44b081a5 100644 --- a/src/qcam/cam_select_dialog.h +++ b/src/qcam/cam_select_dialog.h @@ -13,6 +13,7 @@ #include #include +#include class QComboBox; @@ -26,6 +27,10 @@ public: std::string getCameraId(); + /* Hotplug / Unplug Support. */ + void addCamera(QString cameraId); + void removeCamera(QString cameraId); + private: libcamera::CameraManager *cm_; -- cgit v1.2.1