Qt 4.8
Public Functions | Public Variables | List of all members
QDeclarativeStatePrivate::OperationGuard Struct Reference

#include <qdeclarativestate_p_p.h>

Inheritance diagram for QDeclarativeStatePrivate::OperationGuard:
QDeclarativeGuard< QDeclarativeStateOperation > QDeclarativeGuardImpl

Public Functions

void objectDestroyed (QDeclarativeStateOperation *)
 
 OperationGuard (QObject *obj, QList< OperationGuard > *l)
 
- Public Functions inherited from QDeclarativeGuard< QDeclarativeStateOperation >
QDeclarativeStateOperationdata () const
 
bool isNull () const
 
QDeclarativeStateOperationobject () const
 
 operator QDeclarativeStateOperation * () const
 
QDeclarativeStateOperationoperator* () const
 
QDeclarativeStateOperationoperator-> () const
 
QDeclarativeGuard< QDeclarativeStateOperation > & operator= (const QDeclarativeGuard< QDeclarativeStateOperation > &o)
 
QDeclarativeGuard< QDeclarativeStateOperation > & operator= (QDeclarativeStateOperation *)
 
 QDeclarativeGuard ()
 
 QDeclarativeGuard (QDeclarativeStateOperation *)
 
 QDeclarativeGuard (const QDeclarativeGuard< QDeclarativeStateOperation > &)
 
void setObject (QDeclarativeStateOperation *g)
 
virtual ~QDeclarativeGuard ()
 

Public Variables

QList< OperationGuard > * list
 

Additional Inherited Members

Detailed Description

Definition at line 207 of file qdeclarativestate_p_p.h.

Constructors and Destructors

◆ OperationGuard()

QDeclarativeStatePrivate::OperationGuard::OperationGuard ( QObject obj,
QList< OperationGuard > *  l 
)
inline

Definition at line 209 of file qdeclarativestate_p_p.h.

209  : list(l) {
210  setObject(static_cast<QDeclarativeStateOperation *>(obj));
211  }
void setObject(QDeclarativeStateOperation *g)

Functions

◆ objectDestroyed()

void QDeclarativeStatePrivate::OperationGuard::objectDestroyed ( QDeclarativeStateOperation )
inlinevirtual

Reimplemented from QDeclarativeGuard< QDeclarativeStateOperation >.

Definition at line 213 of file qdeclarativestate_p_p.h.

213  {
214  // we assume priv will always be destroyed after objectDestroyed calls
215  list->removeOne(*this);
216  }

Properties

◆ list

QList<OperationGuard>* QDeclarativeStatePrivate::OperationGuard::list

Definition at line 212 of file qdeclarativestate_p_p.h.


The documentation for this struct was generated from the following file: