1// Copyright (C) 2022 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//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QPLATFORMMEDIAPLUGIN_P_H
16#define QPLATFORMMEDIAPLUGIN_P_H
17
18#include <QtMultimedia/qtmultimediaglobal.h>
19#include <QtCore/qplugin.h>
20#include <QtCore/qfactoryinterface.h>
21#include <QtCore/private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QPlatformMediaIntegration;
26
27#define QPlatformMediaPlugin_iid "org.qt-project.Qt.QPlatformMediaPlugin"
28
29class Q_MULTIMEDIA_EXPORT QPlatformMediaPlugin : public QObject
30{
31 Q_OBJECT
32public:
33 explicit QPlatformMediaPlugin(QObject *parent = nullptr);
34 ~QPlatformMediaPlugin() override;
35
36 virtual QPlatformMediaIntegration *create(const QString &key) = 0;
37
38};
39
40QT_END_NAMESPACE
41
42#endif // QPLATFORMMEDIAPLUGIN_P_H
43

source code of qtmultimedia/src/multimedia/platform/qplatformmediaplugin_p.h