comparison data/model/Model.h @ 1669:f9b6e99e0520 single-point

Remove COMPLETION_UNKNOWN, which is never used (and never handled)
author Chris Cannam
date Wed, 27 Mar 2019 11:26:06 +0000
parents 8bf3a52a1604
children 82d03c9661f9
comparison
equal deleted inserted replaced
1663:a77a7e8c085c 1669:f9b6e99e0520
138 * all its calculation from the constructor or accessors. 138 * all its calculation from the constructor or accessors.
139 * 139 *
140 * If "completion" is non-NULL, this function should return 140 * If "completion" is non-NULL, this function should return
141 * through it an estimated percentage value showing how far 141 * through it an estimated percentage value showing how far
142 * through the background operation it thinks it is (for progress 142 * through the background operation it thinks it is (for progress
143 * reporting). If it has no way to calculate progress, it may 143 * reporting).
144 * return the special value COMPLETION_UNKNOWN. See also 144 *
145 * getCompletion(). 145 * See also getCompletion().
146 */ 146 */
147 virtual bool isReady(int *completion = 0) const { 147 virtual bool isReady(int *completion = 0) const {
148 bool ok = isOK(); 148 bool ok = isOK();
149 if (completion) *completion = (ok ? 100 : 0); 149 if (completion) *completion = (ok ? 100 : 0);
150 return ok; 150 return ok;
151 } 151 }
152 static const int COMPLETION_UNKNOWN;
153 152
154 /** 153 /**
155 * If this model imposes a zoom constraint, i.e. some limit to the 154 * If this model imposes a zoom constraint, i.e. some limit to the
156 * set of resolutions at which its data can meaningfully be 155 * set of resolutions at which its data can meaningfully be
157 * displayed, then return it. 156 * displayed, then return it.