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
qdarwinintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QDARWININTEGRATION_H
5#define QDARWININTEGRATION_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 <private/qplatformmediaintegration_p.h>
19
21
22QT_BEGIN_NAMESPACE
23
24class QDarwinIntegration : public QPlatformMediaIntegration
25{
26public:
27 QDarwinIntegration();
28
29 q23::expected<QPlatformAudioDecoder *, QString> createAudioDecoder(QAudioDecoder *) override;
30 q23::expected<QPlatformMediaCaptureSession *, QString> createCaptureSession() override;
31 q23::expected<QPlatformMediaPlayer *, QString> createPlayer(QMediaPlayer *player) override;
32 q23::expected<QPlatformCamera *, QString> createCamera(QCamera *camera) override;
33 q23::expected<QPlatformMediaRecorder *, QString> createRecorder(QMediaRecorder *) override;
34 q23::expected<QPlatformImageCapture *, QString> createImageCapture(QImageCapture *) override;
35
36 q23::expected<QPlatformVideoSink *, QString> createVideoSink(QVideoSink *) override;
37
38protected:
39 QPlatformMediaFormatInfo *createFormatInfo() override;
40 QPlatformVideoDevices *createVideoDevices() override;
41};
42
43QT_END_NAMESPACE
44
45#endif
QPlatformMediaIntegration * create(const QString &name) override
Q_FORWARD_DECLARE_OBJC_CLASS(NSObject)