Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
31
QT_BEGIN_NAMESPACE
32
33
namespace
QtPipeWire
{
34
35
// pw_properties
36
Q_MULTIMEDIA_EXPORT PwPropertiesHandle
makeProperties
(
QSpan
<
const
spa_dict_item
>);
37
38
// PwPropertyDict
39
using
PwPropertyDict
=
std
::
map
<
std
::
string
,
std
::
string
,
std
::
less
<>>;
40
41
// parser
42
Q_MULTIMEDIA_EXPORT PwPropertyDict
toPropertyDict
(
const
spa_dict
&);
43
44
// property getters
45
// PW_KEY_MEDIA_CLASS
46
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getMediaClass
(
const
PwPropertyDict
&);
47
// PW_KEY_NODE_NAME
48
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getNodeName
(
const
PwPropertyDict
&);
49
// PW_KEY_NODE_DESCRIPTION
50
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getNodeDescription
(
const
PwPropertyDict
&);
51
// PW_KEY_NODE_NICK
52
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getNodeNick
(
const
PwPropertyDict
&);
53
// PW_KEY_MEDIA_ROLE
54
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getMediaRole
(
const
PwPropertyDict
&);
55
// PW_KEY_DEVICE_API
56
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getDeviceApi
(
const
PwPropertyDict
&);
57
// PW_KEY_OBJECT_PATH
58
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getObjectPath
(
const
PwPropertyDict
&);
59
// PW_KEY_DEVICE_SYSFS_PATH
60
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getDeviceSysfsPath
(
const
PwPropertyDict
&);
61
// PW_KEY_DEVICE_NAME
62
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getDeviceName
(
const
PwPropertyDict
&);
63
// PW_KEY_DEVICE_DESCRIPTION
64
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getDeviceDescription
(
const
PwPropertyDict
&);
65
// PW_KEY_DEVICE_ID
66
Q_MULTIMEDIA_EXPORT
std
::
optional
<
ObjectId
>
getDeviceId
(
const
PwPropertyDict
&);
67
// PW_KEY_OBJECT_SERIAL
68
Q_MULTIMEDIA_EXPORT
std
::
optional
<
ObjectSerial
>
getObjectSerial
(
const
PwPropertyDict
&);
69
70
// PW_KEY_METADATA_NAME
71
Q_MULTIMEDIA_EXPORT
std
::
optional
<
std
::
string_view
>
getMetadataName
(
const
PwPropertyDict
&);
72
73
}
// namespace QtPipeWire
74
75
QT_END_NAMESPACE
76
77
#
endif
// QPIPEWIRE_PROPERTYDICT_H
QtPipeWire
Definition
qpipewire_async_support.cpp:10
QtPipeWire::makeProperties
PwPropertiesHandle makeProperties(QSpan< const spa_dict_item > keyValuePairs)
Definition
qpipewire_propertydict.cpp:23
QtPipeWire::getNodeDescription
std::optional< std::string_view > getNodeDescription(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:116
QtPipeWire::getDeviceSysfsPath
std::optional< std::string_view > getDeviceSysfsPath(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:149
QtPipeWire::getDeviceId
std::optional< ObjectId > getDeviceId(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:141
QtPipeWire::getDeviceName
std::optional< std::string_view > getDeviceName(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:154
QtPipeWire::getMetadataName
std::optional< std::string_view > getMetadataName(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:172
QtPipeWire::getMediaClass
std::optional< std::string_view > getMediaClass(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:106
QtPipeWire::getDeviceApi
std::optional< std::string_view > getDeviceApi(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:131
QtPipeWire::getObjectPath
std::optional< std::string_view > getObjectPath(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:136
QtPipeWire::getNodeName
std::optional< std::string_view > getNodeName(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:111
QtPipeWire::toPropertyDict
PwPropertyDict toPropertyDict(const spa_dict &dict)
Definition
qpipewire_propertydict.cpp:32
QtPipeWire::getMediaRole
std::optional< std::string_view > getMediaRole(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:126
QtPipeWire::getNodeNick
std::optional< std::string_view > getNodeNick(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:121
QtPipeWire::getDeviceDescription
std::optional< std::string_view > getDeviceDescription(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:159
QtPipeWire::getObjectSerial
std::optional< ObjectSerial > getObjectSerial(const PwPropertyDict &dict)
Definition
qpipewire_propertydict.cpp:164
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
PW_KEY_DEVICE_SYSFS_PATH
#define PW_KEY_DEVICE_SYSFS_PATH
Definition
qpipewire_propertydict.cpp:15
PW_KEY_OBJECT_SERIAL
#define PW_KEY_OBJECT_SERIAL
Definition
qpipewire_propertydict.cpp:18
qtmultimedia
src
multimedia
pipewire
qpipewire_propertydict_p.h
Generated on
for Qt by
1.18.0