Mercurial > hg > svcore
comparison base/Model.cpp @ 30:a6ef94ecbe74
* As previous commit
author | Chris Cannam |
---|---|
date | Fri, 17 Feb 2006 18:11:08 +0000 |
parents | 149bb02a41ba |
children | b8aae4f883b7 |
comparison
equal
deleted
inserted
replaced
29:8460b3bf8f04 | 30:a6ef94ecbe74 |
---|---|
6 | 6 |
7 This is experimental software. Not for distribution. | 7 This is experimental software. Not for distribution. |
8 */ | 8 */ |
9 | 9 |
10 #include "Model.h" | 10 #include "Model.h" |
11 #include "PlayParameterRepository.h" | |
11 | 12 |
12 const int Model::COMPLETION_UNKNOWN = -1; | 13 const int Model::COMPLETION_UNKNOWN = -1; |
14 | |
15 Model::~Model() | |
16 { | |
17 // Subclasses have to handle adding themselves to the repository, | |
18 // if they want to be played. We can't do it from here because | |
19 // the repository would be unable to tell whether we were playable | |
20 // or not (because dynamic_cast won't work from the base class ctor) | |
21 PlayParameterRepository::instance()->removeModel(this); | |
22 } | |
13 | 23 |
14 QString | 24 QString |
15 Model::toXmlString(QString indent, QString extraAttributes) const | 25 Model::toXmlString(QString indent, QString extraAttributes) const |
16 { | 26 { |
17 QString s; | 27 QString s; |