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

◆ RecordingType

Enumerator
kNotRecording 
kSingleRecord 
kDailyRecord 
kAllRecord 
kWeeklyRecord 
kOneRecord 
kOverrideRecord 
kDontRecord 
kTemplateRecord 

Definition at line 20 of file recordingtypes.h.

◆ RecordingDupInType

Enumerator
kDupsUnset 
kDupsInRecorded 
kDupsInOldRecorded 
kDupsInAll 
kDupsNewEpi 

Definition at line 45 of file recordingtypes.h.

◆ RecordingDupMethodType

Enumerator
kDupCheckUnset 
kDupCheckNone 
kDupCheckSub 
kDupCheckDesc 
kDupCheckSubDesc 
kDupCheckSubThenDesc 

Definition at line 62 of file recordingtypes.h.

◆ RecSearchType

Enumerator
kNoSearch 
kPowerSearch 
kTitleSearch 
kKeywordSearch 
kPeopleSearch 
kManualSearch 

Definition at line 78 of file recordingtypes.h.

◆ AutoExtendType

enum AutoExtendType : uint8_t
strong
Enumerator
None 
ESPN 
MLB 
Last 

Definition at line 93 of file recordingtypes.h.

Function Documentation

◆ toString() [1/5]

MBASE_PUBLIC QString toString ( RecordingType  rectype)

Converts "rectype" into a human readable string.

Definition at line 25 of file recordingtypes.cpp.

◆ toDescription() [1/4]

MBASE_PUBLIC QString toDescription ( RecordingType  rectype)

◆ toRawString() [1/4]

MBASE_PUBLIC QString toRawString ( RecordingType  rectype)

Converts "rectype" into an untranslated string.

Definition at line 76 of file recordingtypes.cpp.

Referenced by FillChannelInfo(), FillRecRuleInfo(), V2FillChannelInfo(), and V2FillRecRuleInfo().

◆ 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().

◆ recTypeFromString()

MBASE_PUBLIC RecordingType recTypeFromString ( const QString &  type)

◆ toVariant() [1/5]

static QVariant toVariant ( RecordingType  rectype)
inlinestatic

Definition at line 40 of file recordingtypes.h.

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

◆ 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()().

◆ toString() [2/5]

MBASE_PUBLIC QString toString ( RecordingDupInType  rectype)

Definition at line 154 of file recordingtypes.cpp.

◆ toDescription() [2/4]

MBASE_PUBLIC QString toDescription ( RecordingDupInType  rectype)

Definition at line 173 of file recordingtypes.cpp.

◆ toRawString() [2/4]

MBASE_PUBLIC QString toRawString ( RecordingDupInType  rectype)

Definition at line 193 of file recordingtypes.cpp.

◆ newEpifromDupIn()

MBASE_PUBLIC bool newEpifromDupIn ( RecordingDupInType  recdupin)

Definition at line 211 of file recordingtypes.cpp.

Referenced by FillRecRuleInfo(), and V2FillRecRuleInfo().

◆ dupInFromString()

MBASE_PUBLIC RecordingDupInType dupInFromString ( const QString &  type)

◆ dupInFromStringAndBool()

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

◆ toVariant() [2/5]

static QVariant toVariant ( RecordingDupInType  recdupin)
inlinestatic

Definition at line 59 of file recordingtypes.h.

◆ toString() [3/5]

MBASE_PUBLIC QString toString ( RecordingDupMethodType  rectype)

Definition at line 236 of file recordingtypes.cpp.

◆ toDescription() [3/4]

MBASE_PUBLIC QString toDescription ( RecordingDupMethodType  rectype)

Definition at line 255 of file recordingtypes.cpp.

◆ toRawString() [3/4]

MBASE_PUBLIC QString toRawString ( RecordingDupMethodType  rectype)

Definition at line 274 of file recordingtypes.cpp.

◆ dupMethodFromString()

MBASE_PUBLIC RecordingDupMethodType dupMethodFromString ( const QString &  type)

◆ toVariant() [3/5]

static QVariant toVariant ( RecordingDupMethodType  recdupmeth)
inlinestatic

Definition at line 75 of file recordingtypes.h.

◆ toString() [4/5]

MBASE_PUBLIC QString toString ( RecSearchType  rectype)

◆ toRawString() [4/4]

MBASE_PUBLIC QString toRawString ( RecSearchType  rectype)

Definition at line 308 of file recordingtypes.cpp.

◆ searchTypeFromString()

MBASE_PUBLIC RecSearchType searchTypeFromString ( const QString &  type)

◆ toVariant() [4/5]

static QVariant toVariant ( RecSearchType  recsearch)
inlinestatic

Definition at line 90 of file recordingtypes.h.

◆ toString() [5/5]

MBASE_PUBLIC QString toString ( AutoExtendType  extType)

Definition at line 346 of file recordingtypes.cpp.

◆ toDescription() [4/4]

MBASE_PUBLIC QString toDescription ( AutoExtendType  extType)

Definition at line 361 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().

◆ autoExtendTypeFromInt()

MBASE_PUBLIC AutoExtendType autoExtendTypeFromInt ( uint8_t  type)

Definition at line 376 of file recordingtypes.cpp.

◆ toVariant() [5/5]

static QVariant toVariant ( AutoExtendType  extType)
inlinestatic

Definition at line 104 of file recordingtypes.h.