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

#include <qabstractstate_p.h>

Inheritance diagram for QAbstractStatePrivate:
QObjectPrivate QObjectData QFinalStatePrivate QHistoryStatePrivate QStatePrivate QStateMachinePrivate

Public Types

enum  StateType { AbstractState, StandardState, FinalState, HistoryState }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Public Functions

void callOnEntry (QEvent *e)
 
void callOnExit (QEvent *e)
 
void emitEntered ()
 
void emitExited ()
 
QStateMachinemachine () const
 
 QAbstractStatePrivate (StateType type)
 
- 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 QAbstractStatePrivateget (QAbstractState *q)
 
static const QAbstractStatePrivateget (const QAbstractState *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

uint isMachine:1
 
QStateparentState
 
uint stateType:31
 
- 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
 

Detailed Description

Definition at line 63 of file qabstractstate_p.h.

Enumerations

◆ StateType

Constructors and Destructors

◆ QAbstractStatePrivate()

QAbstractStatePrivate::QAbstractStatePrivate ( StateType  type)

Definition at line 84 of file qabstractstate.cpp.

85  : stateType(type), isMachine(false), parentState(0)
86 {
87 }
int type
Definition: qmetatype.cpp:239

Functions

◆ callOnEntry()

void QAbstractStatePrivate::callOnEntry ( QEvent e)

Definition at line 110 of file qabstractstate.cpp.

Referenced by QStateMachinePrivate::enterStates().

111 {
113  q->onEntry(e);
114 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QAbstractState class is the base class of states of a QStateMachine.

◆ callOnExit()

void QAbstractStatePrivate::callOnExit ( QEvent e)

Definition at line 116 of file qabstractstate.cpp.

Referenced by QStateMachinePrivate::exitStates().

117 {
119  q->onExit(e);
120 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QAbstractState class is the base class of states of a QStateMachine.

◆ emitEntered()

void QAbstractStatePrivate::emitEntered ( )

Definition at line 122 of file qabstractstate.cpp.

Referenced by QStateMachinePrivate::enterStates().

123 {
125  emit q->entered();
126 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QAbstractState class is the base class of states of a QStateMachine.
#define emit
Definition: qobjectdefs.h:76

◆ emitExited()

void QAbstractStatePrivate::emitExited ( )

Definition at line 128 of file qabstractstate.cpp.

Referenced by QStateMachinePrivate::exitStates().

129 {
131  emit q->exited();
132 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QAbstractState class is the base class of states of a QStateMachine.
#define emit
Definition: qobjectdefs.h:76

◆ get() [1/2]

QAbstractStatePrivate * QAbstractStatePrivate::get ( QAbstractState q)
static

◆ get() [2/2]

const QAbstractStatePrivate * QAbstractStatePrivate::get ( const QAbstractState q)
static

Definition at line 94 of file qabstractstate.cpp.

95 {
96  return q->d_func();
97 }

◆ machine()

QStateMachine * QAbstractStatePrivate::machine ( ) const

Definition at line 99 of file qabstractstate.cpp.

Referenced by QState::addTransition().

100 {
101  QObject *par = parent;
102  while (par != 0) {
103  if (QStateMachine *mach = qobject_cast<QStateMachine*>(par))
104  return mach;
105  par = par->parent();
106  }
107  return 0;
108 }
The QStateMachine class provides a hierarchical finite state machine.
Definition: qstatemachine.h:63
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
QObject * parent() const
Returns a pointer to the parent object.
Definition: qobject.h:273
QObject * parent
Definition: qobject.h:92

Properties

◆ isMachine

uint QAbstractStatePrivate::isMachine

◆ parentState

QState* QAbstractStatePrivate::parentState
mutable

◆ stateType

uint QAbstractStatePrivate::stateType

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