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)
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);
54 
56 {
58  kDupCheckNone = 0x01,
59  kDupCheckSub = 0x02,
60  kDupCheckDesc = 0x04,
63 }; // note stored in uint8_t in ProgramInfo
64 MPUBLIC QString toString(RecordingDupMethodType rectype);
68 
70 {
71  kNoSearch = 0,
77 };
78 MPUBLIC QString toString(RecSearchType rectype);
79 MPUBLIC QString toRawString(RecSearchType rectype);
81 
82 #endif
83 
RecordingDupInType
MPUBLIC RecordingDupMethodType dupMethodFromString(const QString &type)
#define MPUBLIC
Definition: mythexp.h:10
MPUBLIC QString toDescription(RecordingType rectype)
Converts "rectype" into a human readable description.
RecordingDupMethodType
MPUBLIC RecordingDupInType dupInFromString(const QString &type)
RecSearchType
MPUBLIC RecordingType recTypeFromString(const QString &type)
MPUBLIC int RecTypePrecedence(RecordingType rectype)
Converts a RecordingType to a simple integer so it's specificity can be compared to another.
MPUBLIC QString toRawString(RecordingType rectype)
Converts "rectype" into an untranslated string.
MPUBLIC QString toString(RecordingType rectype)
Converts "rectype" into a human readable string.
MPUBLIC QChar toQChar(RecordingType rectype)
Converts "rectype" into a human readable character.
MPUBLIC RecSearchType searchTypeFromString(const QString &type)