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 "mythexp.h"
18 
20 {
24  //kChannelRecord = 3, (Obsolete)
30  //kFindDailyRecord = 9, (Obsolete)
31  //kFindWeeklyRecord = 10, (Obsolete)
32  kTemplateRecord = 11
33 }; // note stored in uint8_t in ProgramInfo
34 MPUBLIC QString toString(RecordingType rectype);
35 MPUBLIC QString toDescription(RecordingType rectype);
36 MPUBLIC QString toRawString(RecordingType rectype);
37 MPUBLIC QChar toQChar( RecordingType rectype);
39 
41 
43 {
44  kDupsUnset = 0x00,
47  kDupsInAll = 0x0F,
48  kDupsNewEpi = 0x10
49 }; // note stored in uint8_t in ProgramInfo
50 MPUBLIC QString toString(RecordingDupInType rectype);
52 MPUBLIC QString toRawString(RecordingDupInType rectype);
55 MPUBLIC 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
66 MPUBLIC QString toString(RecordingDupMethodType rectype);
70 
72 {
73  kNoSearch = 0,
79 };
80 MPUBLIC QString toString(RecSearchType rectype);
81 MPUBLIC QString toRawString(RecSearchType rectype);
83 
84 #endif
85 
kDupCheckDesc
@ kDupCheckDesc
Definition: recordingtypes.h:62
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
toRawString
MPUBLIC QString toRawString(RecordingType rectype)
Converts "rectype" into an untranslated string.
Definition: recordingtypes.cpp:76
toDescription
MPUBLIC QString toDescription(RecordingType rectype)
Converts "rectype" into a human readable description.
Definition: recordingtypes.cpp:50
RecTypePrecedence
MPUBLIC int RecTypePrecedence(RecordingType rectype)
Converts a RecordingType to a simple integer so it's specificity can be compared to another.
Definition: recordingtypes.cpp:7
kDailyRecord
@ kDailyRecord
Definition: recordingtypes.h:23
kDupCheckSubThenDesc
@ kDupCheckSubThenDesc
Definition: recordingtypes.h:64
mythexp.h
kDupCheckSub
@ kDupCheckSub
Definition: recordingtypes.h:61
RecordingDupMethodType
RecordingDupMethodType
Definition: recordingtypes.h:58
dupInFromString
MPUBLIC RecordingDupInType dupInFromString(const QString &type)
Definition: recordingtypes.cpp:216
kKeywordSearch
@ kKeywordSearch
Definition: recordingtypes.h:76
kDupsInAll
@ kDupsInAll
Definition: recordingtypes.h:47
kDupsInRecorded
@ kDupsInRecorded
Definition: recordingtypes.h:45
RecordingDupInType
RecordingDupInType
Definition: recordingtypes.h:43
toQChar
MPUBLIC QChar toQChar(RecordingType rectype)
Converts "rectype" into a human readable character.
Definition: recordingtypes.cpp:126
dupInFromStringAndBool
MPUBLIC RecordingDupInType dupInFromStringAndBool(const QString &type, bool newEpisodesOnly)
Definition: recordingtypes.cpp:229
kPowerSearch
@ kPowerSearch
Definition: recordingtypes.h:74
toString
MPUBLIC QString toString(RecordingType rectype)
Converts "rectype" into a human readable string.
Definition: recordingtypes.cpp:25
kTemplateRecord
@ kTemplateRecord
Definition: recordingtypes.h:32
dupMethodFromString
MPUBLIC RecordingDupMethodType dupMethodFromString(const QString &type)
Definition: recordingtypes.cpp:293
kDupsInOldRecorded
@ kDupsInOldRecorded
Definition: recordingtypes.h:46
kDupCheckUnset
@ kDupCheckUnset
Definition: recordingtypes.h:59
RecSearchType
RecSearchType
Definition: recordingtypes.h:72
kNoSearch
@ kNoSearch
Definition: recordingtypes.h:73
kManualSearch
@ kManualSearch
Definition: recordingtypes.h:78
recTypeFromString
MPUBLIC RecordingType recTypeFromString(const QString &type)
Definition: recordingtypes.cpp:101
kTitleSearch
@ kTitleSearch
Definition: recordingtypes.h:75
kOneRecord
@ kOneRecord
Definition: recordingtypes.h:27
kWeeklyRecord
@ kWeeklyRecord
Definition: recordingtypes.h:26
kOverrideRecord
@ kOverrideRecord
Definition: recordingtypes.h:28
kNotRecording
@ kNotRecording
Definition: recordingtypes.h:21
kDupCheckNone
@ kDupCheckNone
Definition: recordingtypes.h:60
kSingleRecord
@ kSingleRecord
Definition: recordingtypes.h:22
kAllRecord
@ kAllRecord
Definition: recordingtypes.h:25
kDupsNewEpi
@ kDupsNewEpi
Definition: recordingtypes.h:48
searchTypeFromString
MPUBLIC RecSearchType searchTypeFromString(const QString &type)
Definition: recordingtypes.cpp:329
newEpifromDupIn
MPUBLIC bool newEpifromDupIn(RecordingDupInType recdupin)
Definition: recordingtypes.cpp:211
kDupCheckSubDesc
@ kDupCheckSubDesc
Definition: recordingtypes.h:63
kPeopleSearch
@ kPeopleSearch
Definition: recordingtypes.h:77
kDontRecord
@ kDontRecord
Definition: recordingtypes.h:29
kDupsUnset
@ kDupsUnset
Definition: recordingtypes.h:44
RecordingType
Definition: recordingprofile.cpp:1225