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_cameraportalclient_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_CAMERAPORTALCLIENT_P_H
5#define QPIPEWIRE_CAMERAPORTALCLIENT_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/qtmultimediaglobal_p.h>
19#include <QtCore/private/qexpected_p.h>
20#include <QtCore/qstring.h>
21
22#include <chrono>
23
24QT_BEGIN_NAMESPACE
25
26class QDBusUnixFileDescriptor;
27
28namespace QtPipeWire {
29
30// Negotiates camera access through org.freedesktop.portal.Camera and returns
31// the PipeWire remote file descriptor OpenPipeWireRemote() hands out, or an
32// error if access was denied, the portal is not present, or 'timeout' elapsed
33// first.
35requestCameraPortalFd(std::chrono::milliseconds timeout);
36
37} // namespace QtPipeWire
38
39QT_END_NAMESPACE
40
41#endif // QPIPEWIRE_CAMERAPORTALCLIENT_P_H
Q_STATIC_LOGGING_CATEGORY(lcPipewireAudioSink, "qt.multimedia.pipewire.audiosink")
q23::expected< QDBusUnixFileDescriptor, QString > requestCameraPortalFd(std::chrono::milliseconds timeout)