00001 #include "storabledata.h"
00002
00003 #include <QList>
00004 #include <QDebug>
00005
00006 using namespace domain;
00007
00008 StorableData::StorableData()
00009 {
00010 connect(this, SIGNAL(destroyed(QObject*)), this, SIGNAL(dataChanged()));
00011 }
00012
00013 unsigned StorableData::id() const
00014 {
00015 return (unsigned)this;
00016 }
00017
00018 StorableData::~StorableData()
00019 {
00020
00021 }
00022
00023 void StorableData::notify()
00024 {
00025 }
00026
00027 QList<StorableData*> StorableData::dependentData() const
00028 {
00029 return QList<StorableData*>();
00030 }
00031
00032 void StorableData::deleteDependentData()
00033 {
00034 Q_FOREACH (StorableData* data, dependentData())
00035 delete data;
00036 }