1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QV4L2CAMERADEVICES_P_H
5#define QV4L2CAMERADEVICES_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtMultimedia/private/qplatformvideodevices_p.h>
19#include <QtMultimedia/private/qplatformmediaintegration_p.h>
20
21#include <qfilesystemwatcher.h>
22
23QT_BEGIN_NAMESPACE
24
25class QV4L2CameraDevices : public QPlatformVideoDevices
26{
27 Q_OBJECT
28public:
29 QV4L2CameraDevices(QPlatformMediaIntegration *integration);
30
31public Q_SLOTS:
32 void checkCameras();
33
34protected:
35 QList<QCameraDevice> findVideoInputs() const override;
36
37private:
38 bool doCheckCameras();
39
40private:
41 QList<QCameraDevice> m_cameras;
42 QFileSystemWatcher m_deviceWatcher;
43};
44
45QT_END_NAMESPACE
46
47#endif // QV4L2CAMERADEVICES_P_H
48

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtmultimedia/src/plugins/multimedia/ffmpeg/qv4l2cameradevices_p.h