Go to the documentation of this file.
30 return QObject::tr(
"Single Record");
32 return QObject::tr(
"Record All");
34 return QObject::tr(
"Record One");
36 return QObject::tr(
"Record Daily");
38 return QObject::tr(
"Record Weekly");
41 return QObject::tr(
"Override Recording");
43 return QObject::tr(
"Recording Template");
45 return QObject::tr(
"Not Recording");
55 return QObject::tr(
"Record only this showing");
57 return QObject::tr(
"Record all showings");
59 return QObject::tr(
"Record only one showing");
61 return QObject::tr(
"Record one showing every day");
63 return QObject::tr(
"Record one showing every week");
65 return QObject::tr(
"Record this showing with override options");
67 return QObject::tr(
"Do not record this showing");
69 return QObject::tr(
"Modify this recording rule template");
71 return QObject::tr(
"Do not record this program");
81 return QString(
"Single Record");
83 return QString(
"Record All");
85 return QString(
"Record One");
87 return QString(
"Record Daily");
89 return QString(
"Record Weekly");
91 return QString(
"Override Recording");
93 return QString(
"Do not Record");
95 return QString(
"Recording Template");
97 return QString(
"Not Recording");
103 if (
type.toLower() ==
"not recording" ||
type.toLower() ==
"not")
105 if (
type.toLower() ==
"single record" ||
type.toLower() ==
"single")
107 if (
type.toLower() ==
"record all" ||
type.toLower() ==
"all")
109 if (
type.toLower() ==
"record one" ||
type.toLower() ==
"one" ||
110 type.toLower() ==
"find one" ||
type.toLower() ==
"findone")
112 if (
type.toLower() ==
"record daily" ||
type.toLower() ==
"daily" ||
113 type.toLower() ==
"find daily" ||
type.toLower() ==
"finddaily")
115 if (
type.toLower() ==
"record weekly" ||
type.toLower() ==
"weekly" ||
116 type.toLower() ==
"find weekly" ||
type.toLower() ==
"findweekly")
118 if (
type.toLower() ==
"recording template" ||
type.toLower() ==
"template")
120 if (
type.toLower() ==
"override recording" ||
type.toLower() ==
"override")
132 ret = QObject::tr(
"S",
"RecTypeChar kSingleRecord");
break;
134 ret = QObject::tr(
"A",
"RecTypeChar kAllRecord");
break;
136 ret = QObject::tr(
"1",
"RecTypeChar kOneRecord");
break;
138 ret = QObject::tr(
"D",
"RecTypeChar kDailyRecord");
break;
140 ret = QObject::tr(
"W",
"RecTypeChar kWeeklyRecord");
break;
143 ret = QObject::tr(
"O",
"RecTypeChar kOverrideRecord/kDontRecord");
146 ret = QObject::tr(
"T",
"RecTypeChar kTemplateRecord");
break;
151 return (ret.isEmpty()) ? QChar(
' ') : ret[0];
159 return QObject::tr(
"Current Recordings");
161 return QObject::tr(
"Previous Recordings");
163 return QObject::tr(
"All Recordings");
167 return QObject::tr(
"New Episodes Only");
178 return QObject::tr(
"Look for duplicates in current recordings only");
180 return QObject::tr(
"Look for duplicates in previous recordings only");
182 return QObject::tr(
"Look for duplicates in current and previous "
187 return QObject::tr(
"Record new episodes only");
200 return QString(
"Current Recordings");
202 return QString(
"Previous Recordings");
204 return QString(
"All Recordings");
206 return QString(
"Unknown");
218 if (
type.toLower() ==
"current recordings" ||
type.toLower() ==
"current")
220 if (
type.toLower() ==
"previous recordings" ||
type.toLower() ==
"previous")
222 if (
type.toLower() ==
"all recordings" ||
type.toLower() ==
"all")
224 if (
type.toLower() ==
"new episodes only" ||
type.toLower() ==
"new")
241 return QObject::tr(
"None");
243 return QObject::tr(
"Subtitle");
245 return QObject::tr(
"Description");
247 return QObject::tr(
"Subtitle and Description");
249 return QObject::tr(
"Subtitle then Description");
260 return QObject::tr(
"Don't match duplicates");
262 return QObject::tr(
"Match duplicates using subtitle");
264 return QObject::tr(
"Match duplicates using description");
266 return QObject::tr(
"Match duplicates using subtitle & description");
268 return QObject::tr(
"Match duplicates using subtitle then description");
279 return QString(
"None");
281 return QString(
"Subtitle");
283 return QString(
"Description");
285 return QString(
"Subtitle and Description");
287 return QString(
"Subtitle then Description");
289 return QString(
"Unknown");
295 if (
type.toLower() ==
"none")
297 if (
type.toLower() ==
"subtitle")
299 if (
type.toLower() ==
"description")
301 if (
type.toLower() ==
"subtitle and description" ||
type.toLower() ==
"subtitleanddescription")
303 if (
type.toLower() ==
"subtitle then description" ||
type.toLower() ==
"subtitlethendescription")
313 return QString(
"None");
315 return QString(
"Power Search");
317 return QString(
"Title Search");
319 return QString(
"Keyword Search");
321 return QString(
"People Search");
323 return QString(
"Manual Search");
325 return QString(
"Unknown");
331 if (
type.toLower() ==
"none")
333 if (
type.toLower() ==
"power search" ||
type.toLower() ==
"power")
335 if (
type.toLower() ==
"title search" ||
type.toLower() ==
"title")
337 if (
type.toLower() ==
"keyword search" ||
type.toLower() ==
"keyword")
339 if (
type.toLower() ==
"people search" ||
type.toLower() ==
"people")
341 if (
type.toLower() ==
"manual search" ||
type.toLower() ==
"manual")
QString toRawString(RecordingType rectype)
Converts "rectype" into an untranslated string.
RecSearchType searchTypeFromString(const QString &type)
RecordingDupInType dupInFromString(const QString &type)
bool newEpifromDupIn(RecordingDupInType recdupin)
RecordingDupMethodType dupMethodFromString(const QString &type)
RecordingType recTypeFromString(const QString &type)
RecordingDupInType dupInFromStringAndBool(const QString &type, bool newEpisodesOnly)
QString toDescription(RecordingType rectype)
Converts "rectype" into a human readable description.
QChar toQChar(RecordingType rectype)
Converts "rectype" into a human readable character.
int RecTypePrecedence(RecordingType rectype)
Converts a RecordingType to a simple integer so it's specificity can be compared to another.
QString toString(RecordingType rectype)
Converts "rectype" into a human readable string.