blob: 44b081a5ce00f27e8b3748e46fb0b95c180b24b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* Copyright (C) 2022, Utkarsh Tiwari <utkarsh02t@gmail.com>
*
* cam_select_dialog.h - qcam - Camera Selection dialog
*/
#pragma once
#include <string>
#include <libcamera/camera.h>
#include <libcamera/camera_manager.h>
#include <QDialog>
#include <QString>
class QComboBox;
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);
private:
libcamera::CameraManager *cm_;
/* UI elements. */
QComboBox *cameraIdComboBox_;
};
|