comparison data/model/Model.h @ 1429:48e9f538e6e9

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents e994747fb9dd
children b40f67578976
comparison
equal deleted inserted replaced
1428:87ae75da6527 1429:48e9f538e6e9
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