diff options
Diffstat (limited to 'src/multimedia/qnx/qqnxmediadevices_p.h')
-rw-r--r-- | src/multimedia/qnx/qqnxmediadevices_p.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/multimedia/qnx/qqnxmediadevices_p.h b/src/multimedia/qnx/qqnxmediadevices_p.h new file mode 100644 index 000000000..b8ccf5807 --- /dev/null +++ b/src/multimedia/qnx/qqnxmediadevices_p.h @@ -0,0 +1,39 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +#ifndef QQNXMEDIADEVICES_H +#define QQNXMEDIADEVICES_H + +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists purely as an +// implementation detail. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + +#include <private/qplatformmediadevices_p.h> +#include <qaudio.h> +#include <qcameradevice.h> + +QT_BEGIN_NAMESPACE + +class QQnxMediaDevices : public QPlatformMediaDevices +{ +public: + QQnxMediaDevices(); + + QList<QAudioDevice> audioInputs() const override; + QList<QAudioDevice> audioOutputs() const override; + QPlatformAudioSource *createAudioSource(const QAudioDevice &deviceInfo, + QObject *parent) override; + QPlatformAudioSink *createAudioSink(const QAudioDevice &deviceInfo, + QObject *parent) override; +}; + +QT_END_NAMESPACE + +#endif |