MythTV master
Enumerations | Functions
recordingtypes.h File Reference
#include <QString>
#include <QVariant>
#include "mythbaseexp.h"
Include dependency graph for recordingtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  RecordingType : std::uint8_t {
  kNotRecording = 0 , kSingleRecord = 1 , kDailyRecord = 2 , kAllRecord = 4 ,
  kWeeklyRecord = 5 , kOneRecord = 6 , kOverrideRecord = 7 , kDontRecord = 8 ,
  kTemplateRecord = 11
}
 
enum  RecordingDupInType : std::uint8_t {
  kDupsUnset = 0x00 , kDupsInRecorded = 0x01 , kDupsInOldRecorded = 0x02 , kDupsInAll = 0x0F ,
  kDupsNewEpi = 0x10
}
 
enum  RecordingDupMethodType : std::uint8_t {
  kDupCheckUnset = 0x00 , kDupCheckNone = 0x01 , kDupCheckSub = 0x02 , kDupCheckDesc = 0x04 ,
  kDupCheckSubDesc = 0x06 , kDupCheckSubThenDesc = 0x08
}
 
enum  RecSearchType : std::uint8_t {
  kNoSearch = 0 , kPowerSearch , kTitleSearch , kKeywordSearch ,
  kPeopleSearch , kManualSearch
}
 
enum class  AutoExtendType : uint8_t { None = 0 , ESPN , MLB , Last }
 

Functions

MBASE_PUBLIC QString toString (RecordingType rectype)
 Converts "rectype" into a human readable string. More...
 
MBASE_PUBLIC QString toDescription (RecordingType rectype)
 Converts "rectype" into a human readable description. More...
 
MBASE_PUBLIC QString toRawString (RecordingType rectype)
 Converts "rectype" into an untranslated string. More...
 
MBASE_PUBLIC QChar toQChar (RecordingType rectype)
 Converts "rectype" into a human readable character. More...
 
MBASE_PUBLIC RecordingType recTypeFromString (const QString &type)
 
static QVariant toVariant (RecordingType rectype)
 
MBASE_PUBLIC int RecTypePrecedence (RecordingType rectype)
 Converts a RecordingType to a simple integer so it's specificity can be compared to another. More...
 
MBASE_PUBLIC QString toString (RecordingDupInType rectype)
 
MBASE_PUBLIC QString toDescription (RecordingDupInType rectype)
 
MBASE_PUBLIC QString toRawString (RecordingDupInType rectype)
 
MBASE_PUBLIC bool newEpifromDupIn (RecordingDupInType recdupin)
 
MBASE_PUBLIC RecordingDupInType dupInFromString (const QString &type)
 
MBASE_PUBLIC RecordingDupInType dupInFromStringAndBool (const QString &type, bool newEpisodesOnly)
 
static QVariant toVariant (RecordingDupInType recdupin)
 
MBASE_PUBLIC QString toString (RecordingDupMethodType rectype)
 
MBASE_PUBLIC QString toDescription (RecordingDupMethodType rectype)
 
MBASE_PUBLIC QString toRawString (RecordingDupMethodType rectype)
 
MBASE_PUBLIC RecordingDupMethodType dupMethodFromString (const QString &type)
 
static QVariant toVariant (RecordingDupMethodType recdupmeth)
 
MBASE_PUBLIC QString toString (RecSearchType rectype)
 
MBASE_PUBLIC QString toRawString (RecSearchType rectype)
 
MBASE_PUBLIC RecSearchType searchTypeFromString (const QString &type)
 
static QVariant toVariant (RecSearchType recsearch)
 
MBASE_PUBLIC QString toString (AutoExtendType extType)
 
MBASE_PUBLIC QString toDescription (AutoExtendType extType)
 
MBASE_PUBLIC AutoExtendType autoExtendTypeFromString (const QString &type)
 
MBASE_PUBLIC AutoExtendType autoExtendTypeFromInt (uint8_t type)
 
static QVariant toVariant (AutoExtendType extType)
 

Enumeration Type Documentation

◆ AutoExtendType

enum class AutoExtendType : uint8_t
strong
Enumerator
None 
ESPN 
MLB 
Last 

Definition at line 92 of file recordingtypes.h.

◆ RecordingDupInType

enum RecordingDupInType : std::uint8_t
Enumerator
kDupsUnset 
kDupsInRecorded 
kDupsInOldRecorded 
kDupsInAll 
kDupsNewEpi 

Definition at line 44 of file recordingtypes.h.

◆ RecordingDupMethodType

enum RecordingDupMethodType : std::uint8_t
Enumerator
kDupCheckUnset 
kDupCheckNone 
kDupCheckSub 
kDupCheckDesc 
kDupCheckSubDesc 
kDupCheckSubThenDesc 

Definition at line 61 of file recordingtypes.h.

◆ RecordingType

enum RecordingType : std::uint8_t
Enumerator
kNotRecording 
kSingleRecord 
kDailyRecord 
kAllRecord 
kWeeklyRecord 
kOneRecord 
kOverrideRecord 
kDontRecord 
kTemplateRecord 

Definition at line 19 of file recordingtypes.h.

◆ RecSearchType

enum RecSearchType : std::uint8_t
Enumerator
kNoSearch 
kPowerSearch 
kTitleSearch 
kKeywordSearch 
kPeopleSearch 
kManualSearch 

Definition at line 77 of file recordingtypes.h.

Function Documentation

◆ autoExtendTypeFromInt()

MBASE_PUBLIC AutoExtendType autoExtendTypeFromInt ( uint8_t  type)

Definition at line 376 of file recordingtypes.cpp.

◆ autoExtendTypeFromString()

MBASE_PUBLIC AutoExtendType autoExtendTypeFromString ( const QString &  type)

Definition at line 383 of file recordingtypes.cpp.

Referenced by V2Dvr::AddRecordSchedule(), and V2Dvr::UpdateRecordSchedule().

◆ dupInFromString()

MBASE_PUBLIC RecordingDupInType dupInFromString ( const QString &  type)

◆ dupInFromStringAndBool()

MBASE_PUBLIC RecordingDupInType dupInFromStringAndBool ( const QString &  type,
bool  newEpisodesOnly 
)

Definition at line 229 of file recordingtypes.cpp.

Referenced by V2Dvr::AddRecordSchedule(), and V2Dvr::UpdateRecordSchedule().

◆ dupMethodFromString()

MBASE_PUBLIC RecordingDupMethodType dupMethodFromString ( const QString &  type)

◆ newEpifromDupIn()

MBASE_PUBLIC bool newEpifromDupIn ( RecordingDupInType  recdupin)

Definition at line 211 of file recordingtypes.cpp.

Referenced by V2FillRecRuleInfo().

◆ recTypeFromString()

MBASE_PUBLIC RecordingType recTypeFromString ( const QString &  type)

◆ RecTypePrecedence()

MBASE_PUBLIC int RecTypePrecedence ( RecordingType  rectype)

Converts a RecordingType to a simple integer so it's specificity can be compared to another.

Lower number means more specific.

Definition at line 7 of file recordingtypes.cpp.

Referenced by comp_overlap(), TitleSort::operator()(), ProgramRecPrioritySort::operator()(), and ProgramRecTypeSort::operator()().

◆ searchTypeFromString()

MBASE_PUBLIC RecSearchType searchTypeFromString ( const QString &  type)

◆ toDescription() [1/4]

MBASE_PUBLIC QString toDescription ( AutoExtendType  extType)

Definition at line 361 of file recordingtypes.cpp.

◆ toDescription() [2/4]

MBASE_PUBLIC QString toDescription ( RecordingDupInType  rectype)

Definition at line 173 of file recordingtypes.cpp.

◆ toDescription() [3/4]

MBASE_PUBLIC QString toDescription ( RecordingDupMethodType  rectype)

Definition at line 255 of file recordingtypes.cpp.

◆ toDescription() [4/4]

MBASE_PUBLIC QString toDescription ( RecordingType  rectype)

Converts "rectype" into a human readable description.

Definition at line 50 of file recordingtypes.cpp.

Referenced by V2Dvr::DupInToDescription(), V2Dvr::DupMethodToDescription(), SchedOptMixin::Load(), ScheduleEditor::Load(), and V2Dvr::RecTypeToDescription().

◆ toQChar()

MBASE_PUBLIC QChar toQChar ( RecordingType  rectype)

Converts "rectype" into a human readable character.

Definition at line 126 of file recordingtypes.cpp.

Referenced by Scheduler::PrintRec(), and ProgramInfo::ToMap().

◆ toRawString() [1/4]

MBASE_PUBLIC QString toRawString ( RecordingDupInType  rectype)

Definition at line 193 of file recordingtypes.cpp.

◆ toRawString() [2/4]

MBASE_PUBLIC QString toRawString ( RecordingDupMethodType  rectype)

Definition at line 274 of file recordingtypes.cpp.

◆ toRawString() [3/4]

MBASE_PUBLIC QString toRawString ( RecordingType  rectype)

Converts "rectype" into an untranslated string.

Definition at line 76 of file recordingtypes.cpp.

Referenced by V2FillChannelInfo(), and V2FillRecRuleInfo().

◆ toRawString() [4/4]

MBASE_PUBLIC QString toRawString ( RecSearchType  rectype)

Definition at line 308 of file recordingtypes.cpp.

◆ toString() [1/5]

MBASE_PUBLIC QString toString ( AutoExtendType  extType)

Definition at line 346 of file recordingtypes.cpp.

◆ toString() [2/5]

MBASE_PUBLIC QString toString ( RecordingDupInType  rectype)

Definition at line 154 of file recordingtypes.cpp.

◆ toString() [3/5]

MBASE_PUBLIC QString toString ( RecordingDupMethodType  rectype)

Definition at line 236 of file recordingtypes.cpp.

◆ toString() [4/5]

MBASE_PUBLIC QString toString ( RecordingType  rectype)

Converts "rectype" into a human readable string.

Definition at line 25 of file recordingtypes.cpp.

◆ toString() [5/5]

MBASE_PUBLIC QString toString ( RecSearchType  rectype)

◆ toVariant() [1/5]

static QVariant toVariant ( AutoExtendType  extType)
inlinestatic

Definition at line 103 of file recordingtypes.h.

◆ toVariant() [2/5]

static QVariant toVariant ( RecordingDupInType  recdupin)
inlinestatic

Definition at line 58 of file recordingtypes.h.

◆ toVariant() [3/5]

static QVariant toVariant ( RecordingDupMethodType  recdupmeth)
inlinestatic

Definition at line 74 of file recordingtypes.h.

◆ toVariant() [4/5]

static QVariant toVariant ( RecordingType  rectype)
inlinestatic

Definition at line 39 of file recordingtypes.h.

Referenced by SchedOptMixin::Load(), and ScheduleEditor::Load().

◆ toVariant() [5/5]

static QVariant toVariant ( RecSearchType  recsearch)
inlinestatic

Definition at line 89 of file recordingtypes.h.