MythTV  master
Classes | Enumerations | Functions
tv.h File Reference
#include <QString>
Include dependency graph for tv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VBIMode
 

Enumerations

enum  ChannelChangeDirection { CHANNEL_DIRECTION_UP = 0, CHANNEL_DIRECTION_DOWN = 1, CHANNEL_DIRECTION_FAVORITE = 2, CHANNEL_DIRECTION_SAME = 3 }
 ChannelChangeDirection is an enumeration of possible channel changing directions. More...
 
enum  BrowseDirection {
  BROWSE_INVALID = -1, BROWSE_SAME = 0, BROWSE_UP, BROWSE_DOWN,
  BROWSE_LEFT, BROWSE_RIGHT, BROWSE_FAVORITE
}
 Used to request ProgramInfo for channel browsing. More...
 
enum  TVState {
  kState_Error = -1, kState_None = 0, kState_WatchingLiveTV, kState_WatchingPreRecorded,
  kState_WatchingVideo, kState_WatchingDVD, kState_WatchingBD, kState_WatchingRecording,
  kState_RecordingOnly, kState_ChangingState
}
 TVState is an enumeration of the states used by TV and TVRec. More...
 
enum  SleepStatus {
  sStatus_Awake = 0x0, sStatus_Asleep = 0x1, sStatus_FallingAsleep = 0x3, sStatus_Waking = 0x5,
  sStatus_Undefined = 0x8
}
 SleepStatus is an enumeration of the awake/sleep status of a slave. More...
 
enum  PictureAdjustType { kAdjustingPicture_None = 0, kAdjustingPicture_Playback, kAdjustingPicture_Channel, kAdjustingPicture_Recording }
 
enum  CommSkipMode {
  kCommSkipOff = 0, kCommSkipOn = 1, kCommSkipNotify = 2, kCommSkipCount,
  kCommSkipIncr
}
 

Functions

TVState myth_deque_init (const TVState *)
 
QString StateToString (TVState state)
 Returns a human readable QString representing a TVState. More...
 
QString toTypeString (PictureAdjustType type)
 
QString toTitleString (PictureAdjustType type)
 
QString toString (CommSkipMode type)
 

Enumeration Type Documentation

◆ ChannelChangeDirection

ChannelChangeDirection is an enumeration of possible channel changing directions.

Enumerator
CHANNEL_DIRECTION_UP 
CHANNEL_DIRECTION_DOWN 
CHANNEL_DIRECTION_FAVORITE 
CHANNEL_DIRECTION_SAME 

Definition at line 28 of file tv.h.

◆ BrowseDirection

Used to request ProgramInfo for channel browsing.

Enumerator
BROWSE_INVALID 
BROWSE_SAME 

Fetch browse information on current channel and time.

BROWSE_UP 

Fetch information on previous channel.

BROWSE_DOWN 

Fetch information on next channel.

BROWSE_LEFT 

Fetch information on current channel in the past.

BROWSE_RIGHT 

Fetch information on current channel in the future.

BROWSE_FAVORITE 

Fetch information on the next favorite channel.

Definition at line 37 of file tv.h.

◆ TVState

enum TVState

TVState is an enumeration of the states used by TV and TVRec.

Enumerator
kState_Error 

Error State, if we ever try to enter this state errored is set.

kState_None 

None State, this is the initial state in both TV and TVRec, it indicates that we are ready to change to some other state.

kState_WatchingLiveTV 

Watching LiveTV is the state for when we are watching a recording and the user has control over the channel and the recorder to use.

kState_WatchingPreRecorded 

Watching Pre-recorded is a TV only state for when we are watching a pre-existing recording.

kState_WatchingVideo 

Watching Video is the state when we are watching a video and is not a dvd or BD.

kState_WatchingDVD 

Watching DVD is the state when we are watching a DVD.

kState_WatchingBD 

Watching BD is the state when we are watching a BD.

kState_WatchingRecording 

Watching Recording is the state for when we are watching an in progress recording, but the user does not have control over the channel and recorder to use.

kState_RecordingOnly 

Recording Only is a TVRec only state for when we are recording a program, but there is no one currently watching it.

kState_ChangingState 

This is a placeholder state which we never actually enter, but is returned by GetState() when we are in the process of changing the state.

Definition at line 50 of file tv.h.

◆ SleepStatus

SleepStatus is an enumeration of the awake/sleep status of a slave.

Enumerator
sStatus_Awake 

A slave is awake when it is connected to the master.

sStatus_Asleep 

A slave is considered asleep when it is not awake and not undefined.

sStatus_FallingAsleep 

A slave is marked as falling asleep when told to shutdown by the master.

sStatus_Waking 

A slave is marked as waking when the master runs the slave's wakeup command.

sStatus_Undefined 

A slave's sleep status is undefined when it has never connected to the master backend or is not able to be put to sleep and awakened.

Definition at line 97 of file tv.h.

◆ PictureAdjustType

Enumerator
kAdjustingPicture_None 
kAdjustingPicture_Playback 
kAdjustingPicture_Channel 
kAdjustingPicture_Recording 

Definition at line 120 of file tv.h.

◆ CommSkipMode

Enumerator
kCommSkipOff 
kCommSkipOn 
kCommSkipNotify 
kCommSkipCount 
kCommSkipIncr 

Definition at line 130 of file tv.h.

Function Documentation

◆ myth_deque_init()

TVState myth_deque_init ( const TVState )
inline

Definition at line 91 of file tv.h.

◆ StateToString()

QString StateToString ( TVState  state)

Returns a human readable QString representing a TVState.

Parameters
stateState to print.

Definition at line 10 of file tv.cpp.

Referenced by PlayerContext::GetPlayingInfoMap(), TV::GetStatus(), TVRec::HandleStateChange(), TV::HandleStateChange(), TVRec::RemovePlaying(), TVRec::RemoveRecording(), TV::StartPlayer(), and TVRec::StartRecording().

◆ toTypeString()

QString toTypeString ( PictureAdjustType  type)

Definition at line 48 of file tv.cpp.

Referenced by TV::DoChangePictureAttribute(), and TV::DoTogglePictureAttribute().

◆ toTitleString()

QString toTitleString ( PictureAdjustType  type)

Definition at line 61 of file tv.cpp.

Referenced by TV::DoChangePictureAttribute(), and TV::DoTogglePictureAttribute().

◆ toString()

QString toString ( CommSkipMode  type)

Definition at line 74 of file tv.cpp.