Mercurial > hg > svcore
comparison data/model/Model.h @ 1450:a12fd0456f0c streaming-csv-writer
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 17 Apr 2018 10:35:42 +0100 |
parents | 48e9f538e6e9 |
children | b40f67578976 |
comparison
equal
deleted
inserted
replaced
1449:deabf9fd3d28 | 1450:a12fd0456f0c |
---|---|
31 * Model is the base class for all data models that represent any sort | 31 * Model is the base class for all data models that represent any sort |
32 * of data on a time scale based on an audio frame rate. | 32 * of data on a time scale based on an audio frame rate. |
33 */ | 33 */ |
34 | 34 |
35 class Model : public QObject, | 35 class Model : public QObject, |
36 public XmlExportable, | 36 public XmlExportable, |
37 public Playable | 37 public Playable |
38 { | 38 { |
39 Q_OBJECT | 39 Q_OBJECT |
40 | 40 |
41 public: | 41 public: |
123 * reporting). If it has no way to calculate progress, it may | 123 * reporting). If it has no way to calculate progress, it may |
124 * return the special value COMPLETION_UNKNOWN. See also | 124 * return the special value COMPLETION_UNKNOWN. See also |
125 * getCompletion(). | 125 * getCompletion(). |
126 */ | 126 */ |
127 virtual bool isReady(int *completion = 0) const { | 127 virtual bool isReady(int *completion = 0) const { |
128 bool ok = isOK(); | 128 bool ok = isOK(); |
129 if (completion) *completion = (ok ? 100 : 0); | 129 if (completion) *completion = (ok ? 100 : 0); |
130 return ok; | 130 return ok; |
131 } | 131 } |
132 static const int COMPLETION_UNKNOWN; | 132 static const int COMPLETION_UNKNOWN; |
133 | 133 |
134 /** | 134 /** |
135 * If this model imposes a zoom constraint, i.e. some limit to the | 135 * If this model imposes a zoom constraint, i.e. some limit to the |