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 {
"Single Record"};
83 return {
"Record All"};
85 return {
"Record One"};
87 return {
"Record Daily"};
89 return {
"Record Weekly"};
91 return {
"Override Recording"};
93 return {
"Do not Record"};
95 return {
"Recording Template"};
97 return {
"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 {
"Current Recordings"};
202 return {
"Previous Recordings"};
204 return {
"All Recordings"};
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");
283 return {
"Description"};
285 return {
"Subtitle and Description"};
287 return {
"Subtitle then Description"};
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")
315 return {
"Power Search"};
317 return {
"Title Search"};
319 return {
"Keyword Search"};
321 return {
"People Search"};
323 return {
"Manual Search"};
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")
353 return QStringLiteral(u
"None");
355 return QStringLiteral(u
"ESPN");
357 return QStringLiteral(u
"MLB");
368 return QObject::tr(
"Do not automatically extend recording");
370 return QObject::tr(
"Automatically extend recording using ESPN");
372 return QObject::tr(
"Automatically extend recording using MLB");
385 if (
type.toLower() ==
"espn")
387 if (
type.toLower() ==
"mlb")
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.
AutoExtendType autoExtendTypeFromString(const QString &type)
AutoExtendType autoExtendTypeFromInt(uint8_t type)
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.