CopperSpice API  1.9.1
QStateMachine::WrappedEvent Class Reference

The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject. More...

Inheritance diagram for QStateMachine::WrappedEvent:
QEvent

Public Methods

 ~WrappedEvent ()
 
QEventevent () const
 
QObjectobject () const
 
- Public Methods inherited from QEvent
 QEvent (const QEvent &other)
 
 QEvent (Type type)
 
virtual ~QEvent ()
 
void accept ()
 
void ignore ()
 
bool isAccepted () const
 
QEvent & operator= (const QEvent &other)
 
void setAccepted (bool accepted)
 
bool spontaneous () const
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from QEvent
enum  Type
 
- Static Public Methods inherited from QEvent
static int registerEventType (int hint=-1)
 

Detailed Description

The WrappedEvent class inherits QEvent and holds a clone of an event associated with a QObject. A wrapped event is generated by a QStateMachine in response to a CopperSpice event. The QEventTransition class provides a transition associated with a such an event. QStateMachine::WrappedEvent is part of State Machine. The object() function returns the object that generated the event. The event() function returns a clone of the original event.

See also
QEventTransition

Constructor & Destructor Documentation

QStateMachine::WrappedEvent::~WrappedEvent ( )

Destroys this WrappedEvent.

Method Documentation

QEvent * QStateMachine::WrappedEvent::event ( ) const
inline

Returns a clone of the original event.

QObject * QStateMachine::WrappedEvent::object ( ) const
inline

Returns the object that the event is associated with.