MythTV  master
Enumerations | Functions
recordingtypes.h File Reference
#include <QString>
#include "mythexp.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
}
 

Functions

MPUBLIC QString toString (RecordingType)
 Converts "rectype" into a human readable string. More...
 
MPUBLIC QString toDescription (RecordingType)
 Converts "rectype" into a human readable description. More...
 
MPUBLIC QString toRawString (RecordingType)
 Converts "rectype" into an untranslated string. More...
 
MPUBLIC QChar toQChar (RecordingType)
 Converts "rectype" into a human readable character. More...
 
MPUBLIC RecordingType recTypeFromString (const QString &)
 
MPUBLIC int RecTypePrecedence (RecordingType rectype)
 Converts a RecordingType to a simple integer so it's specificity can be compared to another. More...
 
MPUBLIC QString toString (RecordingDupInType)
 
MPUBLIC QString toDescription (RecordingDupInType)
 
MPUBLIC QString toRawString (RecordingDupInType)
 
MPUBLIC RecordingDupInType dupInFromString (const QString &)
 
MPUBLIC QString toString (RecordingDupMethodType)
 
MPUBLIC QString toDescription (RecordingDupMethodType)
 
MPUBLIC QString toRawString (RecordingDupMethodType)
 
MPUBLIC RecordingDupMethodType dupMethodFromString (const QString &)
 
MPUBLIC QString toString (RecSearchType)
 
MPUBLIC QString toRawString (RecSearchType)
 
MPUBLIC RecSearchType searchTypeFromString (const QString &)
 

Enumeration Type Documentation

◆ RecordingType

Enumerator
kNotRecording 
kSingleRecord 
kDailyRecord 
kAllRecord 
kWeeklyRecord 
kOneRecord 
kOverrideRecord 
kDontRecord 
kTemplateRecord 

Definition at line 19 of file recordingtypes.h.

◆ RecordingDupInType

Enumerator
kDupsUnset 
kDupsInRecorded 
kDupsInOldRecorded 
kDupsInAll 
kDupsNewEpi 

Definition at line 42 of file recordingtypes.h.

◆ RecordingDupMethodType

Enumerator
kDupCheckUnset 
kDupCheckNone 
kDupCheckSub 
kDupCheckDesc 
kDupCheckSubDesc 
kDupCheckSubThenDesc 

Definition at line 55 of file recordingtypes.h.

◆ RecSearchType

Enumerator
kNoSearch 
kPowerSearch 
kTitleSearch 
kKeywordSearch 
kPeopleSearch 
kManualSearch 

Definition at line 69 of file recordingtypes.h.

Function Documentation

◆ toString() [1/4]

MPUBLIC QString toString ( RecordingType  )

Converts "rectype" into a human readable string.

Definition at line 25 of file recordingtypes.cpp.

◆ toDescription() [1/3]

MPUBLIC QString toDescription ( RecordingType  )

Converts "rectype" into a human readable description.

Definition at line 50 of file recordingtypes.cpp.

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

◆ toRawString() [1/4]

MPUBLIC QString toRawString ( RecordingType  )

Converts "rectype" into an untranslated string.

Definition at line 76 of file recordingtypes.cpp.

Referenced by FillRecRuleInfo().

◆ toQChar()

MPUBLIC QChar toQChar ( RecordingType  )

Converts "rectype" into a human readable character.

Definition at line 126 of file recordingtypes.cpp.

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

◆ recTypeFromString()

MPUBLIC RecordingType recTypeFromString ( const QString &  )

◆ RecTypePrecedence()

MPUBLIC 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/4]

MPUBLIC QString toString ( RecordingDupInType  )

Definition at line 154 of file recordingtypes.cpp.

◆ toDescription() [2/3]

MPUBLIC QString toDescription ( RecordingDupInType  )

Definition at line 171 of file recordingtypes.cpp.

◆ toRawString() [2/4]

MPUBLIC QString toRawString ( RecordingDupInType  )

Definition at line 189 of file recordingtypes.cpp.

◆ dupInFromString()

MPUBLIC RecordingDupInType dupInFromString ( const QString &  )

◆ toString() [3/4]

MPUBLIC QString toString ( RecordingDupMethodType  )

Definition at line 219 of file recordingtypes.cpp.

◆ toDescription() [3/3]

MPUBLIC QString toDescription ( RecordingDupMethodType  )

Definition at line 238 of file recordingtypes.cpp.

◆ toRawString() [3/4]

MPUBLIC QString toRawString ( RecordingDupMethodType  )

Definition at line 257 of file recordingtypes.cpp.

◆ dupMethodFromString()

MPUBLIC RecordingDupMethodType dupMethodFromString ( const QString &  )

◆ toString() [4/4]

MPUBLIC QString toString ( RecSearchType  )

◆ toRawString() [4/4]

MPUBLIC QString toRawString ( RecSearchType  )

Definition at line 291 of file recordingtypes.cpp.

◆ searchTypeFromString()

MPUBLIC RecSearchType searchTypeFromString ( const QString &  )