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

#include <recStatus.h>

Inheritance diagram for RecStatus:
Inheritance graph
[legend]
Collaboration diagram for RecStatus:
Collaboration graph
[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 (Type)
 
static QString toString (Type, uint id)
 Converts "recstatus" into a short (unreadable) string. More...
 
static QString toString (Type, const QString &name)
 Converts "recstatus" into a short (unreadable) string. More...
 
static QString toString (Type, RecordingType type=kNotRecording)
 Converts "recstatus" into a human readable string. More...
 
static QString toDescription (Type, RecordingType, const QDateTime &recstartts)
 Converts "recstatus" into a long human readable description. More...
 
static void InitializeCustomTypes ()
 

Detailed Description

Definition at line 11 of file recStatus.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 recStatus.h.

Constructor & Destructor Documentation

◆ RecStatus()

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

Definition at line 59 of file recStatus.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 45 of file recStatus.cpp.

◆ toString() [3/3]

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

Converts "recstatus" into a human readable string.

Definition at line 131 of file recStatus.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 195 of file recStatus.cpp.

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

◆ InitializeCustomTypes()

void RecStatus::InitializeCustomTypes ( )
inlinestatic

Definition at line 65 of file recStatus.h.

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


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