/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2022, Utkarsh Tiwari * * qcam - Camera Selection dialog */ #pragma once #include #include #include #include #include #include #include class QComboBox; class QLabel; class CameraSelectorDialog : public QDialog { Q_OBJECT public: CameraSelectorDialog(libcamera::CameraManager *cameraManager, QWidget *parent); ~CameraSelectorDialog(); std::string getCameraId(); /* Hotplug / Unplug Support. */ void addCamera(QString cameraId); void removeCamera(QString cameraId); /* Camera Information */ void updateCameraInfo(QString cameraId); private: libcamera::CameraManager *cm_; /* UI elements. */ QComboBox *cameraIdComboBox_; QLabel *cameraLocation_; QLabel *cameraModel_; }; orm method='get'> Jacopo Mondi's clone of libcameragit repository hosting on libcamera.org
summaryrefslogtreecommitdiff
blob: b27d408dd4990ed8c0ccc8b9c895a2946dcc02c3 (plain)
1