Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpipewire_cameradevicemonitor_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QPIPEWIRE_CAMERADEVICEMONITOR_P_H
5#define QPIPEWIRE_CAMERADEVICEMONITOR_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/qpipewire_cameranode_p.h>
19#include <QtMultimedia/private/qpipewire_propertydict_p.h>
20#include <QtMultimedia/private/qpipewire_spa_video_format_support_p.h>
21#include <QtMultimedia/private/qpipewire_registry_support_p.h>
22#include <QtMultimedia/private/qpipewire_support_p.h>
23#include <QtMultimedia/private/qtmultimediaglobal_p.h>
24#include <QtMultimedia/qcameradevice.h>
25#include <QtCore/qmutex.h>
26#include <QtCore/qobject.h>
27
28#include <vector>
29#include <map>
30#include <optional>
31
32QT_BEGIN_NAMESPACE
33
34namespace QtPipeWire {
35
36class Q_MULTIMEDIA_EXPORT QCameraDeviceMonitor : public QObject
37{
39
40public:
42
44 {
47 PwPropertyDict deviceProperties; // of the parent device, empty if it has none
48 };
49
53
55
56 // FIXME: improve type safety!
58
59 // Called on the PipeWire event loop thread.
62
65
66private:
67 struct DeviceRecord
68 {
70 };
71
72 mutable QMutex m_mutex;
75
76 // Requires m_mutex.
78};
79
80} // namespace QtPipeWire
81
82QT_END_NAMESPACE
83
84#endif // QPIPEWIRE_CAMERADEVICEMONITOR_P_H
Q_STATIC_LOGGING_CATEGORY(lcPipewireAudioSink, "qt.multimedia.pipewire.audiosink")