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 bool newEpifromDupIn (RecordingDupInType recdupin)
 
MPUBLIC RecordingDupInType dupInFromString (const QString &type)
 
MPUBLIC RecordingDupInType dupInFromStringAndBool (const QString &type, bool newEpisodesOnly)
 
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 57 of file recordingtypes.h.

◆ RecSearchType

Enumerator
kNoSearch 
kPowerSearch 
kTitleSearch 
kKeywordSearch 
kPeopleSearch 
kManualSearch 

Definition at line 71 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 173 of file recordingtypes.cpp.

◆ toRawString() [2/4]

MPUBLIC QString toRawString ( RecordingDupInType  rectype)

Definition at line 193 of file recordingtypes.cpp.

◆ newEpifromDupIn()

MPUBLIC bool newEpifromDupIn ( RecordingDupInType  recdupin)

Definition at line 211 of file recordingtypes.cpp.

Referenced by FillRecRuleInfo().

◆ dupInFromString()

MPUBLIC RecordingDupInType dupInFromString ( const QString &  type)

◆ dupInFromStringAndBool()

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

Definition at line 229 of file recordingtypes.cpp.

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

◆ toString() [3/4]

MPUBLIC QString toString ( RecordingDupMethodType  rectype)

Definition at line 236 of file recordingtypes.cpp.

◆ toDescription() [3/3]

MPUBLIC QString toDescription ( RecordingDupMethodType  rectype)

Definition at line 255 of file recordingtypes.cpp.

◆ toRawString() [3/4]

MPUBLIC QString toRawString ( RecordingDupMethodType  rectype)

Definition at line 274 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 308 of file recordingtypes.cpp.

◆ searchTypeFromString()

MPUBLIC RecSearchType searchTypeFromString ( const QString &  type)