Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qmediadevices.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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 QMEDIADEVICES_H
5
#define QMEDIADEVICES_H
6
7
#include <QtMultimedia/qtmultimediaglobal.h>
8
#include <QtCore/qobject.h>
9
#include <QtCore/qstringlist.h>
10
11
QT_BEGIN_NAMESPACE
12
13
class
QAudioDevice
;
14
class
QCameraDevice
;
15
16
class
QMediaDevicesPrivate;
17
18
class
Q_MULTIMEDIA_EXPORT
QMediaDevices
:
public
QObject
19
{
20
Q_OBJECT
21
Q_PROPERTY
(QList<QAudioDevice> audioInputs READ audioInputs NOTIFY audioInputsChanged)
22
Q_PROPERTY
(
QList
<
QAudioDevice
> audioOutputs READ audioOutputs NOTIFY audioOutputsChanged)
23
Q_PROPERTY
(
QList
<
QCameraDevice
> videoInputs READ videoInputs NOTIFY videoInputsChanged)
24
Q_PROPERTY
(
QAudioDevice
defaultAudioInput READ defaultAudioInput NOTIFY audioInputsChanged)
25
Q_PROPERTY
(
QAudioDevice
defaultAudioOutput READ defaultAudioOutput NOTIFY audioOutputsChanged)
26
Q_PROPERTY
(
QCameraDevice
defaultVideoInput READ defaultVideoInput NOTIFY videoInputsChanged)
27
28
public:
29
QMediaDevices
(
QObject
*parent =
nullptr
);
30
~
QMediaDevices
();
31
32
static
QList
<
QAudioDevice
> audioInputs();
33
static
QList
<
QAudioDevice
> audioOutputs();
34
static
QList
<
QCameraDevice
> videoInputs();
35
36
static
QAudioDevice
defaultAudioInput();
37
static
QAudioDevice
defaultAudioOutput();
38
static
QCameraDevice
defaultVideoInput();
39
40
Q_SIGNALS
:
41
void
audioInputsChanged();
42
void
audioOutputsChanged();
43
void
videoInputsChanged();
44
45
protected:
46
void
connectNotify(const
QMetaMethod
&
signal
) override;
47
48
private
:
49
friend class QMediaDevicesPrivate;
50
};
51
52
QT_END_NAMESPACE
53
54
55
#endif
// QABSTRACTMEDIASERVICE_H
56
QAudioDevice
The QAudioDevice class provides an information about audio devices and their functionality.
Definition
qaudiodevice.h:25
QCameraDevice
The QCameraDevice class provides general information about camera devices.
Definition
qcameradevice.h:46
QList
Definition
qlist.h:75
QMediaDevices
The QMediaDevices class provides information about available multimedia input and output devices.
Definition
qmediadevices.h:19
QMetaMethod
\inmodule QtCore
Definition
qmetaobject.h:19
QObject
\inmodule QtCore
Definition
qobject.h:103
signal
auto signal
Definition
doc_src_qsignalspy.cpp:55
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtmultimedia
src
multimedia
qmediadevices.h
Generated by
1.10.0