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 QQMLPLATFORM_P_H
5#define QQMLPLATFORM_P_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 <QtCore/QObject>
19#include <qqml.h>
20#include <private/qtqmlglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class Q_QML_PRIVATE_EXPORT QQmlPlatform : public QObject
25{
26 Q_OBJECT
27 Q_PROPERTY(QString os READ os CONSTANT)
28 Q_PROPERTY(QString pluginName READ pluginName CONSTANT)
29 QML_ANONYMOUS
30 QML_ADDED_IN_VERSION(2, 0)
31
32public:
33 explicit QQmlPlatform(QObject *parent = nullptr);
34 virtual ~QQmlPlatform();
35
36 static QString os();
37 QString pluginName() const;
38
39private:
40 Q_DISABLE_COPY(QQmlPlatform)
41};
42
43QT_END_NAMESPACE
44
45QML_DECLARE_TYPE(QQmlPlatform)
46
47#endif // QQMLPLATFORM_P_H
48

source code of qtdeclarative/src/qml/qml/qqmlplatform_p.h