blob: b4b6eb1ebccbe3682dc089f42d1a437c399bae27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/****************************************************************************
**
** Copyright (c) 2015 Digia Plc
** For any questions to Digia, please use contact form at http://qt.digia.com/
**
** All Rights Reserved.
**
** NOTICE: All information contained herein is, and remains
** the property of Digia Plc and its suppliers,
** if any. The intellectual and technical concepts contained
** herein are proprietary to Digia Plc
** and its suppliers and may be covered by Finnish and Foreign Patents,
** patents in process, and are protected by trade secret or copyright law.
** Dissemination of this information or reproduction of this material
** is strictly forbidden unless prior written permission is obtained
** from Digia Plc.
****************************************************************************/
#ifndef SCXMLSTATETABLE_P_H
#define SCXMLSTATETABLE_P_H
#include "executablecontent_p.h"
#include "scxmlstatetable.h"
#include <QtCore/private/qstatemachine_p.h>
namespace Scxml {
class StateTablePrivate: public QStateMachinePrivate
{
Q_DECLARE_PUBLIC(StateTable)
static QAtomicInt m_sessionIdCounter;
public:
StateTablePrivate();
~StateTablePrivate();
protected: // overrides for QStateMachinePrivate:
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
void noMicrostep() Q_DECL_OVERRIDE;
void processedPendingEvents(bool didChange) Q_DECL_OVERRIDE;
void beginMacrostep() Q_DECL_OVERRIDE;
void endMacrostep(bool didChange) Q_DECL_OVERRIDE;
void emitStateFinished(QState *forState, QFinalState *guiltyState) Q_DECL_OVERRIDE;
void startupHook() Q_DECL_OVERRIDE;
#endif
int eventIdForDelayedEvent(const QByteArray &scxmlEventId);
public: // StateTable data fields:
DataModel *m_dataModel = nullptr;
const int m_sessionId;
ExecutableContent::ContainerId m_initialSetup = ExecutableContent::NoInstruction;
StateTable::BindingMethod m_dataBinding = StateTable::EarlyBinding;
ExecutableContent::ExecutionEngine *m_executionEngine = nullptr;
TableData *tableData = nullptr;
ScxmlEvent _event;
QString _name;
struct QueuedEvent { QEvent *event; StateTable::EventPriority priority; };
QVector<QueuedEvent> *m_queuedEvents = nullptr;
};
} // Scxml namespace
#endif // SCXMLSTATETABLE_P_H
|