![]() |
Home |
The QtAbstractTransition class is the base class of transitions between QtAbstractState objects. More...
#include <QtAbstractTransition>
Inherits QObject.
Inherited by QtTransition.
The QtAbstractTransition class is the base class of transitions between QtAbstractState objects.
The QtAbstractTransition class is the abstract base class of transitions between states (QtAbstractState objects) of a QtStateMachine. QtAbstractTransition is part of The State Machine Framework.
The QtTransition class provides a default (action-based) implementation of the QtAbstractTransition interface.
The sourceState() function returns the source of the transition. The targetStates() function returns the targets of the transition.
The testCondition() function is called by the state machine to determine whether the condition(s) associated with the transition is satisfied. In your reimplementation you typically cast the event object to the proper type, and check that one or more properties of the event meet your criteria.
The onTransition() function is called when the transition is triggered; reimplement this function to perform custom processing for the transition.
Constructs a new transition associated with the given eventTypes.
The transition should be added to the appropriate state using QtAbstractState::addTransition().
Constructs a new transition associated with the given eventType.
The transition should be added to the appropriate state using QtAbstractState::addTransition().
Destroys this transition.
This function is called when the transition is triggered. Reimplement this function to perform custom processing when the transition is triggered.
Returns the source state of this transition, or 0 if this transition has no source state.
Returns the target states of this transition, or an empty list if this transition has no target states.
This function is called to determine whether the condition (if any) associated with this transition is satisfied. The default implementation returns true, i.e. there is no condition associated with the transition.
You are guaranteed that the event is of the type that was passed to the QtAbstractTransition constructor (i.e. it is safe to static_cast it).
Copyright © 2009 Nokia | Trademarks | Qt Solutions |