42 return toString(recstatus, QString::number(
id));
52 ret = QObject::tr(
"A",
"RecStatusChar RecStatus::Aborted");
55 ret = QObject::tr(
"R",
"RecStatusChar RecStatus::Recorded");
65 ret = QObject::tr(
"X",
"RecStatusChar RecStatus::DontRecord");
68 ret = QObject::tr(
"P",
"RecStatusChar RecStatus::PreviousRecording");
71 ret = QObject::tr(
"R",
"RecStatusChar RecStatus::CurrentRecording");
74 ret = QObject::tr(
"E",
"RecStatusChar RecStatus::EarlierShowing");
77 ret = QObject::tr(
"T",
"RecStatusChar RecStatus::TooManyRecordings");
80 ret = QObject::tr(
"c",
"RecStatusChar RecStatus::Cancelled");
84 ret = QObject::tr(
"M",
"RecStatusChar RecStatus::Missed");
87 ret = QObject::tr(
"C",
"RecStatusChar RecStatus::Conflict");
90 ret = QObject::tr(
"L",
"RecStatusChar RecStatus::LaterShowing");
93 ret = QObject::tr(
"r",
"RecStatusChar RecStatus::Repeat");
96 ret = QObject::tr(
"x",
"RecStatusChar RecStatus::Inactive");
99 ret = QObject::tr(
"K",
"RecStatusChar RecStatus::LowDiskSpace");
102 ret = QObject::tr(
"B",
"RecStatusChar RecStatus::TunerBusy");
105 ret = QObject::tr(
"f",
"RecStatusChar RecStatus::Failed");
108 ret = QObject::tr(
"N",
"RecStatusChar RecStatus::NotListed");
111 ret = QObject::tr(
"V",
"RecStatusChar RecStatus::NeverRecord");
114 ret = QObject::tr(
"F",
"RecStatusChar RecStatus::Offline");
120 return (ret.isEmpty()) ? QString(
"-") : ret;
127 return QObject::tr(
"Not Recording");
132 return QObject::tr(
"Aborted");
134 return QObject::tr(
"Recorded");
136 return QObject::tr(
"Recording");
138 return QObject::tr(
"Tuning");
140 return QObject::tr(
"Failing");
142 return QObject::tr(
"Will Record");
144 return QObject::tr(
"Pending");
146 return QObject::tr(
"Don't Record");
148 return QObject::tr(
"Previously Recorded");
150 return QObject::tr(
"Currently Recorded");
152 return QObject::tr(
"Earlier Showing");
154 return QObject::tr(
"Max Recordings");
156 return QObject::tr(
"Manual Cancel");
159 return QObject::tr(
"Missed");
161 return QObject::tr(
"Conflicting");
163 return QObject::tr(
"Later Showing");
165 return QObject::tr(
"Repeat");
167 return QObject::tr(
"Inactive");
169 return QObject::tr(
"Low Disk Space");
171 return QObject::tr(
"Tuner Busy");
173 return QObject::tr(
"Recorder Failed");
175 return QObject::tr(
"Not Listed");
177 return QObject::tr(
"Never Record");
179 return QObject::tr(
"Recorder Off-Line");
181 return QObject::tr(
"Unknown");
184 return QObject::tr(
"Unknown");
189 const QDateTime &recstartts)
192 return QObject::tr(
"This showing is not scheduled to record");
202 message = QObject::tr(
"This showing will be recorded.");
205 message = QObject::tr(
"This showing is about to record.");
208 message = QObject::tr(
"This showing is being recorded.");
211 message = QObject::tr(
"The showing is being tuned.");
214 message = QObject::tr(
"The showing is failing to record "
215 "because of errors.");
218 message = QObject::tr(
"This showing was recorded.");
221 message = QObject::tr(
"This showing was recorded but was "
222 "aborted before completion.");
226 message = QObject::tr(
"This showing was not recorded because "
227 "the master backend was not running.");
230 message = QObject::tr(
"This showing was not recorded because "
231 "it was manually cancelled.");
234 message = QObject::tr(
"This showing was not recorded because "
235 "there wasn't enough disk space.");
238 message = QObject::tr(
"This showing was not recorded because "
239 "the recorder was already in use.");
242 message = QObject::tr(
"This showing was not recorded because "
243 "the recorder failed.");
246 message = QObject::tr(
"The status of this showing is unknown.");
253 if (recstartts > now)
254 message = QObject::tr(
"This showing will not be recorded because ");
256 message = QObject::tr(
"This showing was not recorded because ");
261 message += QObject::tr(
"it was manually set to not record.");
264 message += QObject::tr(
"this episode was previously recorded "
265 "according to the duplicate policy chosen "
269 message += QObject::tr(
"this episode was previously recorded and "
270 "is still available in the list of "
274 message += QObject::tr(
"this episode will be recorded at an "
275 "earlier time instead.");
278 message += QObject::tr(
"too many recordings of this program have "
279 "already been recorded.");
282 message += QObject::tr(
"another program with a higher priority "
283 "will be recorded.");
286 message += QObject::tr(
"this episode will be recorded at a "
287 "later time instead.");
290 message += QObject::tr(
"this episode is a repeat.");
293 message += QObject::tr(
"this recording rule is inactive.");
296 message += QObject::tr(
"this rule does not match any showings in "
297 "the current program listings.");
300 message += QObject::tr(
"it was marked to never be recorded.");
303 message += QObject::tr(
"the required recorder is off-line.");
306 if (recstartts > now)
307 message = QObject::tr(
"This showing will not be recorded.");
309 message = QObject::tr(
"This showing was not recorded.");
static QString toDescription(Type recstatus, RecordingType rectype, const QDateTime &recstartts)
Converts "recstatus" into a long human readable description.
static QString toString(RecStatus::Type recstatus, uint id)
Converts "recstatus" into a short (unreadable) string.
static QString toUIState(RecStatus::Type recstatus)
QDateTime current(bool stripped)
Returns current Date and Time in UTC.