MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | List of all members
RecStatus Class Reference

#include <libmythbase/recordingstatus.h>

Inheritance diagram for RecStatus:
[legend]
Collaboration diagram for RecStatus:
[legend]

Public Types

enum  Type {
  Pending = -15, Failing = -14, MissedFuture = -11, Tuning = -10,
  Failed = -9, TunerBusy = -8, LowDiskSpace = -7, Cancelled = -6,
  Missed = -5, Aborted = -4, Recorded = -3, Recording = -2,
  WillRecord = -1, Unknown = 0, DontRecord = 1, PreviousRecording = 2,
  CurrentRecording = 3, EarlierShowing = 4, TooManyRecordings = 5, NotListed = 6,
  Conflict = 7, LaterShowing = 8, Repeat = 9, Inactive = 10,
  NeverRecord = 11, Offline = 12
}
 

Public Member Functions

Q_INVOKABLE RecStatus (QObject *parent=nullptr)
 

Static Public Member Functions

static QString toUIState (RecStatus::Type recstatus)
 
static QString toString (RecStatus::Type recstatus, uint id)
 Converts "recstatus" into a short (unreadable) string. More...
 
static QString toString (RecStatus::Type recstatus, const QString &name)
 Converts "recstatus" into a short (unreadable) string. More...
 
static QString toString (RecStatus::Type recstatus, RecordingType type=kNotRecording)
 Converts "recstatus" into a human readable string. More...
 
static QString toDescription (Type recstatus, RecordingType rectype, const QDateTime &recstartts)
 Converts "recstatus" into a long human readable description. More...
 
static void InitializeCustomTypes ()
 

Detailed Description

Definition at line 10 of file recordingstatus.h.

Member Enumeration Documentation

◆ Type

Enumerator
Pending 
Failing 
MissedFuture 
Tuning 
Failed 
TunerBusy 
LowDiskSpace 
Cancelled 
Missed 
Aborted 
Recorded 
Recording 
WillRecord 
Unknown 
DontRecord 
PreviousRecording 
CurrentRecording 
EarlierShowing 
TooManyRecordings 
NotListed 
Conflict 
LaterShowing 
Repeat 
Inactive 
NeverRecord 
Offline 

Definition at line 16 of file recordingstatus.h.

Constructor & Destructor Documentation

◆ RecStatus()

Q_INVOKABLE RecStatus::RecStatus ( QObject *  parent = nullptr)
inlineexplicit

Definition at line 59 of file recordingstatus.h.

Member Function Documentation

◆ toUIState()

QString RecStatus::toUIState ( RecStatus::Type  recstatus)
static

◆ toString() [1/3]

QString RecStatus::toString ( RecStatus::Type  recstatus,
uint  id 
)
static

◆ toString() [2/3]

QString RecStatus::toString ( RecStatus::Type  recstatus,
const QString &  name 
)
static

Converts "recstatus" into a short (unreadable) string.

Definition at line 46 of file recordingstatus.cpp.

◆ toString() [3/3]

QString RecStatus::toString ( RecStatus::Type  recstatus,
RecordingType  type = kNotRecording 
)
static

Converts "recstatus" into a human readable string.

Definition at line 124 of file recordingstatus.cpp.

◆ toDescription()

QString RecStatus::toDescription ( RecStatus::Type  recstatus,
RecordingType  rectype,
const QDateTime &  recstartts 
)
static

Converts "recstatus" into a long human readable description.

Definition at line 188 of file recordingstatus.cpp.

Referenced by ScheduleCommon::EditRecording(), Dvr::RecStatusToDescription(), V2Dvr::RecStatusToDescription(), ViewScheduleDiff::showStatus(), and ProgramInfo::ToMap().

◆ InitializeCustomTypes()

void RecStatus::InitializeCustomTypes ( )
inlinestatic

Definition at line 65 of file recordingstatus.h.

Referenced by DTC::RecordingInfo::InitializeCustomTypes().


The documentation for this class was generated from the following files: