CopperSpice API  1.7.2
QStateMachine::SignalEvent Class Reference

The SignalEvent class represents a Signal event. More...

Inheritance diagram for QStateMachine::SignalEvent:

Public Methods

 ~SignalEvent ()
QList< QVariantarguments () const
QObjectsender () const
int signalIndex () 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


class QSignalTransition

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 SignalEvent class represents a signal event.

A signal event is generated by a QStateMachine in response to a CopperSpice signal. The QSignalTransition class provides a transition associated with a signal event. QStateMachine::SignalEvent is part of State Machine.

The sender() function returns the object that generated the signal. The signalIndex() function returns the index of the signal. The arguments() function returns the arguments of the signal.

See also

Constructor & Destructor Documentation

QStateMachine::SignalEvent::~SignalEvent ( )

Destroys this SignalEvent.

Method Documentation

QList< QVariant > QStateMachine::SignalEvent::arguments ( ) const

Returns the arguments of the signal.

QObject * QStateMachine::SignalEvent::sender ( ) const

Returns the object that emitted the signal.

See also
int QStateMachine::SignalEvent::signalIndex ( ) const

Returns the index of the signal.

See also
QMetaObject::indexOfSignal(), QMetaObject::method()