MythTV master
tv.h
Go to the documentation of this file.
1#ifndef TV_H
2#define TV_H
3
4#include <cstdint>
5#include <QString>
6
7class VBIMode
8{
9 public:
10 enum vbimode_t : std::uint8_t
11 {
12 None = 0,
13 PAL_TT = 1,
15 };
16
17 static uint Parse(const QString& vbiformat)
18 {
19 QString fmt = vbiformat.toLower().left(3);
20 if (fmt == "pal")
21 return PAL_TT;
22 if (fmt == "nts")
23 return NTSC_CC;
24 return None;
25 }
26};
27
31enum ChannelChangeDirection : std::uint8_t
32{
37};
38
40enum BrowseDirection : std::int8_t
41{
49};
50
53enum TVState : std::int8_t
54{
93};
94inline TVState myth_deque_init(const TVState */*state*/) { return (TVState)(0); }
95
96QString StateToString(TVState state);
97
100enum SleepStatus : std::uint8_t {
122
123enum PictureAdjustType : std::uint8_t
124{
129};
132
133enum CommSkipMode : std::uint8_t
134{
140};
141QString toString(CommSkipMode type);
142#endif
Definition: tv.h:8
static uint Parse(const QString &vbiformat)
Definition: tv.h:17
vbimode_t
Definition: tv.h:11
@ None
Definition: tv.h:12
@ NTSC_CC
Definition: tv.h:14
@ PAL_TT
Definition: tv.h:13
unsigned int uint
Definition: freesurround.h:24
SleepStatus
SleepStatus is an enumeration of the awake/sleep status of a slave.
Definition: tv.h:100
@ sStatus_Asleep
A slave is considered asleep when it is not awake and not undefined.
Definition: tv.h:107
@ sStatus_Awake
A slave is awake when it is connected to the master.
Definition: tv.h:103
@ sStatus_Waking
A slave is marked as waking when the master runs the slave's wakeup command.
Definition: tv.h:115
@ sStatus_Undefined
A slave's sleep status is undefined when it has never connected to the master backend or is not able ...
Definition: tv.h:120
@ sStatus_FallingAsleep
A slave is marked as falling asleep when told to shutdown by the master.
Definition: tv.h:111
QString toTypeString(PictureAdjustType type)
Definition: tv.cpp:49
CommSkipMode
Definition: tv.h:134
@ kCommSkipCount
Definition: tv.h:138
@ kCommSkipIncr
Definition: tv.h:139
@ kCommSkipOn
Definition: tv.h:136
@ kCommSkipNotify
Definition: tv.h:137
@ kCommSkipOff
Definition: tv.h:135
BrowseDirection
Used to request ProgramInfo for channel browsing.
Definition: tv.h:41
@ BROWSE_INVALID
Definition: tv.h:42
@ BROWSE_SAME
Fetch browse information on current channel and time.
Definition: tv.h:43
@ BROWSE_RIGHT
Fetch information on current channel in the future.
Definition: tv.h:47
@ BROWSE_LEFT
Fetch information on current channel in the past.
Definition: tv.h:46
@ BROWSE_UP
Fetch information on previous channel.
Definition: tv.h:44
@ BROWSE_FAVORITE
Fetch information on the next favorite channel.
Definition: tv.h:48
@ BROWSE_DOWN
Fetch information on next channel.
Definition: tv.h:45
TVState myth_deque_init(const TVState *)
Definition: tv.h:94
PictureAdjustType
Definition: tv.h:124
@ kAdjustingPicture_None
Definition: tv.h:125
@ kAdjustingPicture_Playback
Definition: tv.h:126
@ kAdjustingPicture_Recording
Definition: tv.h:128
@ kAdjustingPicture_Channel
Definition: tv.h:127
QString StateToString(TVState state)
Returns a human readable QString representing a TVState.
Definition: tv.cpp:11
QString toTitleString(PictureAdjustType type)
Definition: tv.cpp:62
ChannelChangeDirection
ChannelChangeDirection is an enumeration of possible channel changing directions.
Definition: tv.h:32
@ CHANNEL_DIRECTION_SAME
Definition: tv.h:36
@ CHANNEL_DIRECTION_DOWN
Definition: tv.h:34
@ CHANNEL_DIRECTION_FAVORITE
Definition: tv.h:35
@ CHANNEL_DIRECTION_UP
Definition: tv.h:33
QString toString(CommSkipMode type)
Definition: tv.cpp:75
TVState
TVState is an enumeration of the states used by TV and TVRec.
Definition: tv.h:54
@ kState_WatchingDVD
Watching DVD is the state when we are watching a DVD.
Definition: tv.h:76
@ kState_None
None State, this is the initial state in both TV and TVRec, it indicates that we are ready to change ...
Definition: tv.h:61
@ kState_RecordingOnly
Recording Only is a TVRec only state for when we are recording a program, but there is no one current...
Definition: tv.h:87
@ kState_WatchingLiveTV
Watching LiveTV is the state for when we are watching a recording and the user has control over the c...
Definition: tv.h:66
@ kState_Error
Error State, if we ever try to enter this state errored is set.
Definition: tv.h:57
@ kState_WatchingPreRecorded
Watching Pre-recorded is a TV only state for when we are watching a pre-existing recording.
Definition: tv.h:70
@ kState_WatchingRecording
Watching Recording is the state for when we are watching an in progress recording,...
Definition: tv.h:83
@ kState_WatchingBD
Watching BD is the state when we are watching a BD.
Definition: tv.h:78
@ kState_ChangingState
This is a placeholder state which we never actually enter, but is returned by GetState() when we are ...
Definition: tv.h:92
@ kState_WatchingVideo
Watching Video is the state when we are watching a video and is not a dvd or BD.
Definition: tv.h:74