Commit afda557b authored by Jan Möbius's avatar Jan Möbius

Added functions to get and set perObjectData Map

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9536 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3cd62c30
......@@ -790,6 +790,15 @@ deleteData() {
}
QMap<QString, PerObjectData*>* BaseObject::getPerObjectDataMap() {
return dataMap_;
}
void BaseObject::getPerObjectDataMap( QMap<QString, PerObjectData*>* _map ) {
dataMap_ = _map;
}
ObjectManager::ObjectManager() {
......
......@@ -466,6 +466,28 @@ class DLLEXPORTONLY BaseObject : public QObject {
/// Delete all data attached to this object ( calls delete on each object )
void deleteData();
/** @} */
//===========================================================================
/** @name Object Payload functions for internal use only!
* @{ */
//===========================================================================
/** \brief get map of all perObject Datas
*
* Don't use this function! It's only for the backup Plugin to store and restore
* perObjectDatas!
*/
QMap<QString, PerObjectData*>* getPerObjectDataMap();
/** \brief set map of all perObject Datas
*
* Don't use this function! It's only for the backup Plugin to store and restore
* perObjectDatas!
*/
void getPerObjectDataMap( QMap<QString, PerObjectData*>* _map );
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment