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_propertydict_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 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_PROPERTYDICT_H
5#define QPIPEWIRE_PROPERTYDICT_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_support_p.h>
19#include <QtMultimedia/qtmultimediaglobal.h>
20#include <QtCore/qglobal.h>
21#include <QtCore/qspan.h>
22
23#include <pipewire/pipewire.h>
24
25#include <functional>
26#include <map>
27#include <optional>
28#include <string>
29#include <string_view>
30
31QT_BEGIN_NAMESPACE
32
33namespace QtPipeWire {
34
35// pw_properties
36Q_MULTIMEDIA_EXPORT PwPropertiesHandle makeProperties(QSpan<const spa_dict_item>);
37
38// PwPropertyDict
40
41// parser
42Q_MULTIMEDIA_EXPORT PwPropertyDict toPropertyDict(const spa_dict &);
43
44// property getters
45// PW_KEY_MEDIA_CLASS
47// PW_KEY_NODE_NAME
49// PW_KEY_NODE_DESCRIPTION
51// PW_KEY_DEVICE_SYSFS_PATH
53// PW_KEY_DEVICE_NAME
55// PW_KEY_DEVICE_DESCRIPTION
57// PW_KEY_DEVICE_ID
59// PW_KEY_OBJECT_SERIAL
61
62// PW_KEY_METADATA_NAME
64
65} // namespace QtPipeWire
66
67QT_END_NAMESPACE
68
69#endif // QPIPEWIRE_PROPERTYDICT_H
PwPropertiesHandle makeProperties(QSpan< const spa_dict_item > keyValuePairs)
std::optional< std::string_view > getNodeDescription(const PwPropertyDict &dict)
std::optional< std::string_view > getDeviceSysfsPath(const PwPropertyDict &dict)
std::optional< ObjectId > getDeviceId(const PwPropertyDict &dict)
std::optional< std::string_view > getDeviceName(const PwPropertyDict &dict)
std::optional< std::string_view > getMetadataName(const PwPropertyDict &dict)
std::optional< std::string_view > getMediaClass(const PwPropertyDict &dict)
std::optional< std::string_view > getNodeName(const PwPropertyDict &dict)
PwPropertyDict toPropertyDict(const spa_dict &dict)
std::optional< std::string_view > getDeviceDescription(const PwPropertyDict &dict)
std::optional< ObjectSerial > getObjectSerial(const PwPropertyDict &dict)
#define PW_KEY_DEVICE_SYSFS_PATH
#define PW_KEY_OBJECT_SERIAL