MythTV  master
recordingtypes.h
Go to the documentation of this file.
1 #ifndef RECORDINGTYPES_H_
2 #define RECORDINGTYPES_H_
3 
5 //
6 // WARNING
7 //
8 // The enums in this header are used in libmythservicecontracts,
9 // and for database values: hence when removing something from
10 // these enums leave a gap, and when adding a new value give it
11 // a explicit integer value.
12 //
14 
15 #include <QString>
16 
17 #include "mythbaseexp.h"
18 
20 {
24  //kChannelRecord = 3, (Obsolete)
30  //kFindDailyRecord = 9, (Obsolete)
31  //kFindWeeklyRecord = 10, (Obsolete)
33 }; // note stored in uint8_t in ProgramInfo
34 MBASE_PUBLIC QString toString(RecordingType rectype);
36 MBASE_PUBLIC QString toRawString(RecordingType rectype);
37 MBASE_PUBLIC QChar toQChar( RecordingType rectype);
39 
41 
43 {
44  kDupsUnset = 0x00,
47  kDupsInAll = 0x0F,
48  kDupsNewEpi = 0x10
49 }; // note stored in uint8_t in ProgramInfo
55 MBASE_PUBLIC RecordingDupInType dupInFromStringAndBool(const QString& type, bool newEpisodesOnly);
56 
58 {
60  kDupCheckNone = 0x01,
61  kDupCheckSub = 0x02,
62  kDupCheckDesc = 0x04,
65 }; // note stored in uint8_t in ProgramInfo
70 
72 {
73  kNoSearch = 0,
79 };
80 MBASE_PUBLIC QString toString(RecSearchType rectype);
81 MBASE_PUBLIC QString toRawString(RecSearchType rectype);
83 
84 enum class AutoExtendType : uint8_t
85 {
86  None = 0,
87  ESPN,
88  MLB,
89  Last
90 };
91 MBASE_PUBLIC QString toString(AutoExtendType extType);
95 
96 #endif
97 
kDupCheckDesc
@ kDupCheckDesc
Definition: recordingtypes.h:62
dupInFromString
MBASE_PUBLIC RecordingDupInType dupInFromString(const QString &type)
Definition: recordingtypes.cpp:216
kDailyRecord
@ kDailyRecord
Definition: recordingtypes.h:23
kDupCheckSubThenDesc
@ kDupCheckSubThenDesc
Definition: recordingtypes.h:64
newEpifromDupIn
MBASE_PUBLIC bool newEpifromDupIn(RecordingDupInType recdupin)
Definition: recordingtypes.cpp:211
mythbaseexp.h
kDupCheckSub
@ kDupCheckSub
Definition: recordingtypes.h:61
recTypeFromString
MBASE_PUBLIC RecordingType recTypeFromString(const QString &type)
Definition: recordingtypes.cpp:101
RecordingDupMethodType
RecordingDupMethodType
Definition: recordingtypes.h:57
kKeywordSearch
@ kKeywordSearch
Definition: recordingtypes.h:76
AutoExtendType
AutoExtendType
Definition: recordingtypes.h:84
RecTypePrecedence
MBASE_PUBLIC int RecTypePrecedence(RecordingType rectype)
Converts a RecordingType to a simple integer so it's specificity can be compared to another.
Definition: recordingtypes.cpp:7
kDupsInAll
@ kDupsInAll
Definition: recordingtypes.h:47
AutoExtendType::None
@ None
kDupsInRecorded
@ kDupsInRecorded
Definition: recordingtypes.h:45
RecordingDupInType
RecordingDupInType
Definition: recordingtypes.h:42
toRawString
MBASE_PUBLIC QString toRawString(RecordingType rectype)
Converts "rectype" into an untranslated string.
Definition: recordingtypes.cpp:76
MBASE_PUBLIC
#define MBASE_PUBLIC
Definition: mythbaseexp.h:15
toString
MBASE_PUBLIC QString toString(RecordingType rectype)
Converts "rectype" into a human readable string.
Definition: recordingtypes.cpp:25
AutoExtendType::Last
@ Last
kPowerSearch
@ kPowerSearch
Definition: recordingtypes.h:74
toQChar
MBASE_PUBLIC QChar toQChar(RecordingType rectype)
Converts "rectype" into a human readable character.
Definition: recordingtypes.cpp:126
kTemplateRecord
@ kTemplateRecord
Definition: recordingtypes.h:32
kDupsInOldRecorded
@ kDupsInOldRecorded
Definition: recordingtypes.h:46
kDupCheckUnset
@ kDupCheckUnset
Definition: recordingtypes.h:59
RecSearchType
RecSearchType
Definition: recordingtypes.h:71
kNoSearch
@ kNoSearch
Definition: recordingtypes.h:73
kManualSearch
@ kManualSearch
Definition: recordingtypes.h:78
autoExtendTypeFromString
MBASE_PUBLIC AutoExtendType autoExtendTypeFromString(const QString &type)
Definition: recordingtypes.cpp:383
kTitleSearch
@ kTitleSearch
Definition: recordingtypes.h:75
kOneRecord
@ kOneRecord
Definition: recordingtypes.h:27
AutoExtendType::MLB
@ MLB
kWeeklyRecord
@ kWeeklyRecord
Definition: recordingtypes.h:26
AutoExtendType::ESPN
@ ESPN
kOverrideRecord
@ kOverrideRecord
Definition: recordingtypes.h:28
dupInFromStringAndBool
MBASE_PUBLIC RecordingDupInType dupInFromStringAndBool(const QString &type, bool newEpisodesOnly)
Definition: recordingtypes.cpp:229
kNotRecording
@ kNotRecording
Definition: recordingtypes.h:21
kDupCheckNone
@ kDupCheckNone
Definition: recordingtypes.h:60
kSingleRecord
@ kSingleRecord
Definition: recordingtypes.h:22
kAllRecord
@ kAllRecord
Definition: recordingtypes.h:25
toDescription
MBASE_PUBLIC QString toDescription(RecordingType rectype)
Converts "rectype" into a human readable description.
Definition: recordingtypes.cpp:50
kDupsNewEpi
@ kDupsNewEpi
Definition: recordingtypes.h:48
dupMethodFromString
MBASE_PUBLIC RecordingDupMethodType dupMethodFromString(const QString &type)
Definition: recordingtypes.cpp:293
searchTypeFromString
MBASE_PUBLIC RecSearchType searchTypeFromString(const QString &type)
Definition: recordingtypes.cpp:329
autoExtendTypeFromInt
MBASE_PUBLIC AutoExtendType autoExtendTypeFromInt(uint8_t type)
Definition: recordingtypes.cpp:376
RecordingType
RecordingType
Definition: recordingtypes.h:19
kDupCheckSubDesc
@ kDupCheckSubDesc
Definition: recordingtypes.h:63
kPeopleSearch
@ kPeopleSearch
Definition: recordingtypes.h:77
kDontRecord
@ kDontRecord
Definition: recordingtypes.h:29
kDupsUnset
@ kDupsUnset
Definition: recordingtypes.h:44