CopperSpice API  1.9.1
QStateMachine::SignalEvent Class Reference

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

Inheritance diagram for QStateMachine::SignalEvent:
QEvent

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
 

Friends

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
QSignalTransition

Constructor & Destructor Documentation

QStateMachine::SignalEvent::~SignalEvent ( )

Destroys this SignalEvent.

Method Documentation

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

Returns the arguments of the signal.

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

Returns the object that emitted the signal.

See also
QObject::sender()
int QStateMachine::SignalEvent::signalIndex ( ) const
inline

Returns the index of the signal.

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