VR-Forces 4.0.4 Class Documentation
Public Slots | Signals | Public Member Functions | Protected Attributes | Private Member Functions
DtModelDataDict Class Reference

An extension of a QDict that includes signals for when model gets added or removed from itself. More...

Inheritance diagram for DtModelDataDict:
Inheritance graph
[legend]

List of all members.

Public Slots

virtual void updateModelData (const DtModelData &data, int changedFlags)
virtual void modelDataDestroyed (const QString &)

Signals

void modelDataAdded (const DtModelKey &)
 Sent when a modelData is added to the dictionary.
void modelDataAboutToBeRemoved (const DtModelKey &)
 Sent right before a modelData is to be removed from the dictionary.
void modelDataUpdated (const DtModelData &data, int iChangedFlags)
 Sent in response to the updateModelData() method being called.

Public Member Functions

 DtModelDataDict ()
virtual ~DtModelDataDict ()
virtual void insert (const QString &key, const DtModelData *item)
virtual void replace (const QString &key, const DtModelData *item)
virtual bool remove (const QString &key)
virtual DtModelDatatake (const QString &key)
virtual void setAutoDelete (bool b)
 Call with true to delete data when removed from dictionary.
virtual void removeDataOfType (int)
 Removes all model data from dictionary that matches the particular type.
DtModelDatafind (const QString &key) const
virtual void clear ()
 Implement clear() method to respect auto-delete flag.

Protected Attributes

bool myAutoDelete

Private Member Functions

 DtModelDataDict (const DtModelDataDict &orig)
DtModelDataDictoperator= (const DtModelDataDict &orig)

Detailed Description

An extension of a QDict that includes signals for when model gets added or removed from itself.


Constructor & Destructor Documentation

virtual DtModelDataDict::~DtModelDataDict ( ) [virtual]

Member Function Documentation

virtual void DtModelDataDict::insert ( const QString &  key,
const DtModelData item 
) [virtual]
virtual void DtModelDataDict::replace ( const QString &  key,
const DtModelData item 
) [virtual]
virtual bool DtModelDataDict::remove ( const QString &  key) [virtual]
virtual DtModelData* DtModelDataDict::take ( const QString &  key) [virtual]
virtual void DtModelDataDict::setAutoDelete ( bool  b) [virtual]

Call with true to delete data when removed from dictionary.

By default it is not

virtual void DtModelDataDict::removeDataOfType ( int  ) [virtual]

Removes all model data from dictionary that matches the particular type.

Note that the modelDataAboutToBeRemoved signal will be emitted for each removal

DtModelData* DtModelDataDict::find ( const QString &  key) const [inline]
virtual void DtModelDataDict::clear ( ) [virtual]

Implement clear() method to respect auto-delete flag.

virtual void DtModelDataDict::updateModelData ( const DtModelData data,
int  changedFlags 
) [virtual, slot]
virtual void DtModelDataDict::modelDataDestroyed ( const QString &  ) [virtual, slot]
void DtModelDataDict::modelDataAdded ( const DtModelKey ) [signal]

Sent when a modelData is added to the dictionary.

Sent right before a modelData is to be removed from the dictionary.

void DtModelDataDict::modelDataUpdated ( const DtModelData data,
int  iChangedFlags 
) [signal]

Sent in response to the updateModelData() method being called.

DtModelDataDict& DtModelDataDict::operator= ( const DtModelDataDict orig) [private]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)