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

#include <qstate_p.h>

Inheritance diagram for QStatePrivate:
QAbstractStatePrivate QObjectPrivate QObjectData QStateMachinePrivate

Public Functions

QList< QAbstractState * > childStates () const
 
void emitFinished ()
 
void emitPropertiesAssigned ()
 
QList< QHistoryState * > historyStates () const
 
 QStatePrivate ()
 
QList< QAbstractTransition * > transitions () const
 
 ~QStatePrivate ()
 
- Public Functions inherited from QAbstractStatePrivate
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 QStatePrivateget (QState *q)
 
static const QStatePrivateget (const QState *q)
 
- Static Public Functions inherited from QAbstractStatePrivate
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

QState::ChildMode childMode
 
QList< QAbstractState * > childStatesList
 
bool childStatesListNeedsRefresh
 
QAbstractStateerrorState
 
QAbstractStateinitialState
 
QList< QPropertyAssignmentpropertyAssignments
 
QList< QAbstractTransition * > transitionsList
 
bool transitionsListNeedsRefresh
 
- Public Variables inherited from QAbstractStatePrivate
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
 

Additional Inherited Members

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

Detailed Description

Definition at line 82 of file qstate_p.h.

Constructors and Destructors

◆ QStatePrivate()

QStatePrivate::QStatePrivate ( )

Definition at line 142 of file qstate.cpp.

146 {
147 }
bool childStatesListNeedsRefresh
Definition: qstate_p.h:102
QAbstractState * initialState
Definition: qstate_p.h:100
QState::ChildMode childMode
Definition: qstate_p.h:101
bool transitionsListNeedsRefresh
Definition: qstate_p.h:104
QAbstractStatePrivate(StateType type)
QAbstractState * errorState
Definition: qstate_p.h:99

◆ ~QStatePrivate()

QStatePrivate::~QStatePrivate ( )

Definition at line 149 of file qstate.cpp.

150 {
151 }

Functions

◆ childStates()

QList< QAbstractState * > QStatePrivate::childStates ( ) const

Definition at line 199 of file qstate.cpp.

Referenced by QStateMachinePrivate::addStatesToEnter(), QStateMachinePrivate::enterStates(), indexOfDescendant(), QStateMachinePrivate::isAtomic(), QStateMachinePrivate::isCompound(), and QStateMachinePrivate::isInFinalState().

200 {
204  for (it = children.constBegin(); it != children.constEnd(); ++it) {
206  if (!s || qobject_cast<QHistoryState*>(s))
207  continue;
209  }
211  }
212  return childStatesList;
213 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
#define it(className, varName)
bool childStatesListNeedsRefresh
Definition: qstate_p.h:102
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
Definition: qlist.h:269
The QList::const_iterator class provides an STL-style const iterator for QList and QQueue...
Definition: qlist.h:228
QObjectList children
Definition: qobject.h:93
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
The QAbstractState class is the base class of states of a QStateMachine.
void clear()
Removes all items from the list.
Definition: qlist.h:764
QList< QAbstractState * > childStatesList
Definition: qstate_p.h:103
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:272

◆ emitFinished()

void QStatePrivate::emitFinished ( )

Definition at line 153 of file qstate.cpp.

Referenced by QStateMachinePrivate::enterStates().

154 {
155  Q_Q(QState);
156  emit q->finished();
157 }
The QState class provides a general-purpose state for QStateMachine.
Definition: qstate.h:61
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ emitPropertiesAssigned()

void QStatePrivate::emitPropertiesAssigned ( )

Definition at line 159 of file qstate.cpp.

Referenced by QStateMachinePrivate::_q_animationFinished(), and QStateMachinePrivate::applyProperties().

160 {
161  Q_Q(QState);
162  emit q->propertiesAssigned();
163 }
The QState class provides a general-purpose state for QStateMachine.
Definition: qstate.h:61
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ get() [1/2]

static QStatePrivate* QStatePrivate::get ( QState q)
inlinestatic

◆ get() [2/2]

static const QStatePrivate* QStatePrivate::get ( const QState q)
inlinestatic

Definition at line 90 of file qstate_p.h.

90 { return q? q->d_func() : 0; }

◆ historyStates()

QList< QHistoryState * > QStatePrivate::historyStates ( ) const

Definition at line 215 of file qstate.cpp.

Referenced by QStateMachinePrivate::clearHistory(), and QStateMachinePrivate::exitStates().

216 {
217  QList<QHistoryState*> result;
219  for (it = children.constBegin(); it != children.constEnd(); ++it) {
221  if (h)
222  result.append(h);
223  }
224  return result;
225 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
#define it(className, varName)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
Definition: qlist.h:269
The QList::const_iterator class provides an STL-style const iterator for QList and QQueue...
Definition: qlist.h:228
QObjectList children
Definition: qobject.h:93
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
The QHistoryState class provides a means of returning to a previously active substate.
Definition: qhistorystate.h:56
The QList class is a template class that provides lists.
Definition: qdatastream.h:62
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:272

◆ transitions()

QList< QAbstractTransition * > QStatePrivate::transitions ( ) const

Definition at line 227 of file qstate.cpp.

Referenced by QStateMachinePrivate::_q_start(), QStateMachinePrivate::registerTransitions(), QStateMachinePrivate::selectTransitions(), and QStateMachinePrivate::unregisterAllTransitions().

228 {
232  for (it = children.constBegin(); it != children.constEnd(); ++it) {
234  if (t)
236  }
238  }
239  return transitionsList;
240 }
T qobject_cast(QObject *object)
Definition: qobject.h:375
The QAbstractTransition class is the base class of transitions between QAbstractState objects...
#define it(className, varName)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
Definition: qlist.h:269
The QList::const_iterator class provides an STL-style const iterator for QList and QQueue...
Definition: qlist.h:228
QObjectList children
Definition: qobject.h:93
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
QList< QAbstractTransition * > transitionsList
Definition: qstate_p.h:105
void clear()
Removes all items from the list.
Definition: qlist.h:764
bool transitionsListNeedsRefresh
Definition: qstate_p.h:104
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:272

Properties

◆ childMode

QState::ChildMode QStatePrivate::childMode

Definition at line 101 of file qstate_p.h.

Referenced by QStateMachinePrivate::isParallel().

◆ childStatesList

QList<QAbstractState*> QStatePrivate::childStatesList
mutable

Definition at line 103 of file qstate_p.h.

◆ childStatesListNeedsRefresh

bool QStatePrivate::childStatesListNeedsRefresh
mutable

Definition at line 102 of file qstate_p.h.

◆ errorState

QAbstractState* QStatePrivate::errorState

Definition at line 99 of file qstate_p.h.

Referenced by QStateMachinePrivate::findErrorState().

◆ initialState

QAbstractState* QStatePrivate::initialState

Definition at line 100 of file qstate_p.h.

◆ propertyAssignments

QList<QPropertyAssignment> QStatePrivate::propertyAssignments

Definition at line 107 of file qstate_p.h.

Referenced by QStateMachinePrivate::applyProperties().

◆ transitionsList

QList<QAbstractTransition*> QStatePrivate::transitionsList
mutable

Definition at line 105 of file qstate_p.h.

◆ transitionsListNeedsRefresh

bool QStatePrivate::transitionsListNeedsRefresh
mutable

Definition at line 104 of file qstate_p.h.


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