Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QSignalTransitionPrivate Class Reference

#include <qsignaltransition_p.h>

Inheritance diagram for QSignalTransitionPrivate:
QAbstractTransitionPrivate QObjectPrivate QObjectData

Public Functions

virtual void callOnTransition (QEvent *e)
 
void maybeRegister ()
 
 QSignalTransitionPrivate ()
 
void unregister ()
 
- Public Functions inherited from QAbstractTransitionPrivate
bool callEventTest (QEvent *e)
 
void emitTriggered ()
 
QStateMachinemachine () const
 
 QAbstractTransitionPrivate ()
 
QStatesourceState () const
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Static Public Functions

static QSignalTransitionPrivateget (QSignalTransition *q)
 
- Static Public Functions inherited from QAbstractTransitionPrivate
static QAbstractTransitionPrivateget (QAbstractTransition *q)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

int originalSignalIndex
 
QObjectsender
 
QByteArray signal
 
int signalIndex
 
- Public Variables inherited from QAbstractTransitionPrivate
QList< QAbstractAnimation * > animations
 
QList< QWeakPointer< QAbstractState > > targetStates
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Detailed Description

Definition at line 61 of file qsignaltransition_p.h.

Constructors and Destructors

◆ QSignalTransitionPrivate()

QSignalTransitionPrivate::QSignalTransitionPrivate ( )

Definition at line 121 of file qsignaltransition.cpp.

122 {
123  sender = 0;
124  signalIndex = -1;
125 }

Functions

◆ callOnTransition()

void QSignalTransitionPrivate::callOnTransition ( QEvent e)
virtual

Reimplemented from QAbstractTransitionPrivate.

Definition at line 259 of file qsignaltransition.cpp.

260 {
262 
263  if (e->type() == QEvent::StateMachineSignal) {
265  int savedSignalIndex = se->m_signalIndex;
267  q->onTransition(e);
268  se->m_signalIndex = savedSignalIndex;
269  } else {
270  q->onTransition(e);
271  }
272 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QSignalTransition class provides a transition based on a Qt signal.
Type type() const
Returns the event type.
Definition: qcoreevent.h:303
The SignalEvent class represents a Qt signal event.
Definition: qstatemachine.h:73

◆ get()

QSignalTransitionPrivate * QSignalTransitionPrivate::get ( QSignalTransition q)
static

Definition at line 127 of file qsignaltransition.cpp.

Referenced by QStateMachinePrivate::registerSignalTransition(), and QStateMachinePrivate::unregisterSignalTransition().

128 {
129  return q->d_func();
130 }

◆ maybeRegister()

void QSignalTransitionPrivate::maybeRegister ( )

Definition at line 140 of file qsignaltransition.cpp.

141 {
143  if (!machine() || !machine()->configuration().contains(sourceState()))
144  return;
146 }
#define Q_Q(Class)
Definition: qglobal.h:2483
void registerSignalTransition(QSignalTransition *transition)
static QStateMachinePrivate * get(QStateMachine *q)
The QSignalTransition class provides a transition based on a Qt signal.
QStateMachine * machine() const

◆ unregister()

void QSignalTransitionPrivate::unregister ( )

Definition at line 132 of file qsignaltransition.cpp.

133 {
135  if ((signalIndex == -1) || !machine())
136  return;
138 }
void unregisterSignalTransition(QSignalTransition *transition)
#define Q_Q(Class)
Definition: qglobal.h:2483
static QStateMachinePrivate * get(QStateMachine *q)
The QSignalTransition class provides a transition based on a Qt signal.
QStateMachine * machine() const

Properties

◆ originalSignalIndex

int QSignalTransitionPrivate::originalSignalIndex

◆ sender

QObject* QSignalTransitionPrivate::sender

◆ signal

QByteArray QSignalTransitionPrivate::signal

◆ signalIndex

int QSignalTransitionPrivate::signalIndex

The documentation for this class was generated from the following files: