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 QSCXMLECMASCRIPTPLATFORMPROPERTIES_P_H
5#define QSCXMLECMASCRIPTPLATFORMPROPERTIES_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 "qscxmlglobals.h"
19
20#include <QtCore/qobject.h>
21
22QT_FORWARD_DECLARE_CLASS(QJSEngine)
23QT_FORWARD_DECLARE_CLASS(QJSValue)
24
25QT_BEGIN_NAMESPACE
26
27class QScxmlStateMachine;
28class QScxmlPlatformProperties: public QObject
29{
30 Q_OBJECT
31
32 QScxmlPlatformProperties(QObject *parent);
33
34 Q_PROPERTY(QString marks READ marks CONSTANT)
35
36public:
37 static QScxmlPlatformProperties *create(QJSEngine *engine, QScxmlStateMachine *stateMachine);
38 ~QScxmlPlatformProperties();
39
40 QJSEngine *engine() const;
41 QScxmlStateMachine *stateMachine() const;
42 QJSValue jsValue() const;
43
44 QString marks() const;
45
46 Q_INVOKABLE bool inState(const QString &stateName);
47
48private:
49 class Data;
50 Data *data;
51};
52
53QT_END_NAMESPACE
54
55#endif // QSCXMLECMASCRIPTPLATFORMPROPERTIES_P_H
56

source code of qtscxml/src/plugins/ecmascriptdatamodel/qscxmlecmascriptplatformproperties_p.h