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 rectype)
 Converts "rectype" into a human readable string. More...
 
MPUBLIC QString toDescription (RecordingType rectype)
 Converts "rectype" into a human readable description. More...
 
MPUBLIC QString toRawString (RecordingType rectype)
 Converts "rectype" into an untranslated string. More...
 
MPUBLIC QChar toQChar (RecordingType rectype)
 Converts "rectype" into a human readable character. More...
 
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. More...
 
MPUBLIC QString toString (RecordingDupInType rectype)
 
MPUBLIC QString toDescription (RecordingDupInType rectype)
 
MPUBLIC QString toRawString (RecordingDupInType rectype)
 
MPUBLIC RecordingDupInType dupInFromString (const QString &type)
 
MPUBLIC QString toString (RecordingDupMethodType rectype)
 
MPUBLIC QString toDescription (RecordingDupMethodType rectype)
 
MPUBLIC QString toRawString (RecordingDupMethodType rectype)
 
MPUBLIC RecordingDupMethodType dupMethodFromString (const QString &type)
 
MPUBLIC QString toString (RecSearchType rectype)
 
MPUBLIC QString toRawString (RecSearchType rectype)
 
MPUBLIC RecSearchType searchTypeFromString (const QString &type)
 

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  rectype)

Converts "rectype" into a human readable string.

Definition at line 25 of file recordingtypes.cpp.

◆ toDescription() [1/3]

MPUBLIC QString toDescription ( RecordingType  rectype)

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  rectype)

Converts "rectype" into an untranslated string.

Definition at line 76 of file recordingtypes.cpp.

Referenced by FillChannelInfo(), and FillRecRuleInfo().

◆ toQChar()

MPUBLIC 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()

MPUBLIC RecordingType recTypeFromString ( const QString &  type)

◆ 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  rectype)

Definition at line 154 of file recordingtypes.cpp.

◆ toDescription() [2/3]

MPUBLIC QString toDescription ( RecordingDupInType  rectype)

Definition at line 171 of file recordingtypes.cpp.

◆ toRawString() [2/4]

MPUBLIC QString toRawString ( RecordingDupInType  rectype)

Definition at line 189 of file recordingtypes.cpp.

◆ dupInFromString()

MPUBLIC RecordingDupInType dupInFromString ( const QString &  type)

◆ toString() [3/4]

MPUBLIC QString toString ( RecordingDupMethodType  rectype)

Definition at line 219 of file recordingtypes.cpp.

◆ toDescription() [3/3]

MPUBLIC QString toDescription ( RecordingDupMethodType  rectype)

Definition at line 238 of file recordingtypes.cpp.

◆ toRawString() [3/4]

MPUBLIC QString toRawString ( RecordingDupMethodType  rectype)

Definition at line 257 of file recordingtypes.cpp.

◆ dupMethodFromString()

MPUBLIC RecordingDupMethodType dupMethodFromString ( const QString &  type)

◆ toString() [4/4]

MPUBLIC QString toString ( RecSearchType  rectype)

◆ toRawString() [4/4]

MPUBLIC QString toRawString ( RecSearchType  rectype)

Definition at line 291 of file recordingtypes.cpp.

◆ searchTypeFromString()

MPUBLIC RecSearchType searchTypeFromString ( const QString &  type)