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_propertydict_p.h>
19#include <QtMultimedia/private/qpipewire_spa_video_format_support_p.h>
20#include <QtMultimedia/private/qpipewire_registry_support_p.h>
21#include <QtMultimedia/private/qpipewire_support_p.h>
22#include <QtMultimedia/private/qtmultimediaglobal_p.h>
23#include <QtMultimedia/qcameradevice.h>
24#include <QtCore/qmutex.h>
25#include <QtCore/qobject.h>
26
27#include <vector>
28#include <map>
29#include <optional>
30
31QT_BEGIN_NAMESPACE
32
33namespace QtPipeWire {
34
35class Q_MULTIMEDIA_EXPORT QCameraDeviceMonitor : public QObject
36{
38
39public:
41
43 {
46 PwPropertyDict deviceProperties; // of the parent device, empty if it has none
47 };
48
52
53 // FIXME: improve type safety!
55
56 // Called on the PipeWire event loop thread.
59
62
63private:
64 struct DeviceRecord
65 {
67 };
68
69 mutable QMutex m_mutex;
72
73 // Requires m_mutex.
75};
76
77} // namespace QtPipeWire
78
79QT_END_NAMESPACE
80
81#endif // QPIPEWIRE_CAMERADEVICEMONITOR_P_H
Q_STATIC_LOGGING_CATEGORY(lcPipewireAudioSink, "qt.multimedia.pipewire.audiosink")