Qt 4.8
|
The SignalEvent class represents a Qt signal event. More...
#include <qstatemachine.h>
Public Functions | |
QList< QVariant > | arguments () const |
Returns the arguments of the signal. More... | |
QObject * | sender () const |
Returns the object that emitted the signal. More... | |
SignalEvent (QObject *sender, int signalIndex, const QList< QVariant > &arguments) | |
Constructs a new SignalEvent object with the given sender, signalIndex and arguments. More... | |
int | signalIndex () const |
Returns the index of the signal. More... | |
~SignalEvent () | |
Destroys this SignalEvent. More... | |
Public Functions inherited from QEvent | |
void | accept () |
Sets the accept flag of the event object, the equivalent of calling setAccepted(true). More... | |
void | ignore () |
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false). More... | |
bool | isAccepted () const |
QEvent (Type type) | |
Contructs an event object of type type. More... | |
void | setAccepted (bool accepted) |
bool | spontaneous () const |
Returns true if the event originated outside the application (a system event); otherwise returns false. More... | |
Type | type () const |
Returns the event type. More... | |
virtual | ~QEvent () |
Destroys the event. More... | |
Properties | |
QList< QVariant > | m_arguments |
QObject * | m_sender |
int | m_signalIndex |
Friends | |
class | QSignalTransitionPrivate |
The SignalEvent class represents a Qt signal event.
A signal event is generated by a QStateMachine in response to a Qt signal. The QSignalTransition class provides a transition associated with a signal event. QStateMachine::SignalEvent is part of The State Machine Framework.
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.
Definition at line 73 of file qstatemachine.h.
QStateMachine::SignalEvent::SignalEvent | ( | QObject * | sender, |
int | signalIndex, | ||
const QList< QVariant > & | arguments | ||
) |
Constructs a new SignalEvent object with the given sender, signalIndex and arguments.
Definition at line 2373 of file qstatemachine.cpp.
QStateMachine::SignalEvent::~SignalEvent | ( | ) |
|
inline |
|
inline |
Returns the object that emitted the signal.
Definition at line 80 of file qstatemachine.h.
Referenced by QSignalTransition::eventTest().
|
inline |
Returns the index of the signal.
Definition at line 81 of file qstatemachine.h.
Referenced by QSignalTransition::eventTest().
|
friend |
Definition at line 89 of file qstatemachine.h.
Definition at line 87 of file qstatemachine.h.
|
private |
Definition at line 85 of file qstatemachine.h.
|
private |
Definition at line 86 of file qstatemachine.h.
Referenced by QSignalTransitionPrivate::callOnTransition().