diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-31 11:42:08 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-31 11:44:00 (GMT) |
commit | fbbd7f9a27216dc66a77a064179a4775ce9fb91e (patch) | |
tree | d609535bf69068b9f595f9d2fefdbf3d7a94ef8f /src/corelib/statemachine/qstatemachine_p.h | |
parent | f12085f8a00957ed17c33e9d75e51dc74a3d2115 (diff) | |
download | Qt-fbbd7f9a27216dc66a77a064179a4775ce9fb91e.zip Qt-fbbd7f9a27216dc66a77a064179a4775ce9fb91e.tar.gz Qt-fbbd7f9a27216dc66a77a064179a4775ce9fb91e.tar.bz2 |
add private goToState() function to state machine
Needed for Declarative UI integration.
Diffstat (limited to 'src/corelib/statemachine/qstatemachine_p.h')
-rw-r--r-- | src/corelib/statemachine/qstatemachine_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qstatemachine_p.h b/src/corelib/statemachine/qstatemachine_p.h index 590cffe..714a40b 100644 --- a/src/corelib/statemachine/qstatemachine_p.h +++ b/src/corelib/statemachine/qstatemachine_p.h @@ -79,7 +79,7 @@ class QAbstractAnimation; #endif class QStateMachine; -class QStateMachinePrivate : public QStatePrivate +class Q_AUTOTEST_EXPORT QStateMachinePrivate : public QStatePrivate { Q_DECLARE_PUBLIC(QStateMachine) public: @@ -116,6 +116,9 @@ public: QState *rootState() const; + QState *startState(); + void removeStartState(); + void microstep(QEvent *event, const QList<QAbstractTransition*> &transitionList); bool isPreempted(const QAbstractState *s, const QSet<QAbstractTransition*> &transitions) const; QSet<QAbstractTransition*> selectTransitions(QEvent *event) const; @@ -138,6 +141,8 @@ public: static bool isDescendantOf(const QAbstractState *s, const QAbstractState *other); static QList<QState*> properAncestors(const QAbstractState *s, const QState *upperBound); + void goToState(QAbstractState *targetState); + void registerTransitions(QAbstractState *state); void registerSignalTransition(QSignalTransition *transition); void unregisterSignalTransition(QSignalTransition *transition); @@ -162,6 +167,7 @@ public: #endif State state; + QState *_startState; bool processing; bool processingScheduled; bool stop; |