MythTV  master
tv.h
Go to the documentation of this file.
1 #ifndef TV_H
2 #define TV_H
3 
4 #include <QString>
5 
6 class VBIMode
7 {
8  public:
9  enum vbimode_t
10  {
11  None = 0,
12  PAL_TT = 1,
13  NTSC_CC = 2,
14  };
15 
16  static uint Parse(const QString& vbiformat)
17  {
18  QString fmt = vbiformat.toLower().left(3);
19  vbimode_t mode = None;
20  mode = (fmt == "pal") ? PAL_TT : ((fmt == "nts") ? NTSC_CC : None);
21  return (uint) mode;
22  }
23 };
24 
29 {
34 };
35 
38 {
46 };
47 
50 enum TVState
51 {
90 };
91 inline TVState myth_deque_init(const TVState */*state*/) { return (TVState)(0); }
92 
93 QString StateToString(TVState state);
94 
117  sStatus_Undefined = 0x8
118 };
119 
121 {
126 };
129 
131 {
137 };
138 QString toString(CommSkipMode type);
139 #endif
BROWSE_LEFT
@ BROWSE_LEFT
Fetch information on current channel in the past.
Definition: tv.h:43
CommSkipMode
CommSkipMode
Definition: tv.h:131
BROWSE_UP
@ BROWSE_UP
Fetch information on previous channel.
Definition: tv.h:41
kAdjustingPicture_Channel
@ kAdjustingPicture_Channel
Definition: tv.h:124
CHANNEL_DIRECTION_DOWN
@ CHANNEL_DIRECTION_DOWN
Definition: tv.h:31
ChannelChangeDirection
ChannelChangeDirection
ChannelChangeDirection is an enumeration of possible channel changing directions.
Definition: tv.h:29
CHANNEL_DIRECTION_UP
@ CHANNEL_DIRECTION_UP
Definition: tv.h:30
SleepStatus
SleepStatus
SleepStatus is an enumeration of the awake/sleep status of a slave.
Definition: tv.h:97
myth_deque_init
TVState myth_deque_init(const TVState *)
Definition: tv.h:91
VBIMode::vbimode_t
vbimode_t
Definition: tv.h:10
PictureAdjustType
PictureAdjustType
Definition: tv.h:121
VBIMode
Definition: tv.h:7
kCommSkipOn
@ kCommSkipOn
Definition: tv.h:133
VBIMode::None
@ None
Definition: tv.h:11
VBIMode::Parse
static uint Parse(const QString &vbiformat)
Definition: tv.h:16
sStatus_Waking
@ sStatus_Waking
A slave is marked as waking when the master runs the slave's wakeup command.
Definition: tv.h:112
VBIMode::PAL_TT
@ PAL_TT
Definition: tv.h:12
kState_Error
@ kState_Error
Error State, if we ever try to enter this state errored is set.
Definition: tv.h:54
kState_ChangingState
@ kState_ChangingState
This is a placeholder state which we never actually enter, but is returned by GetState() when we are ...
Definition: tv.h:89
kState_WatchingRecording
@ kState_WatchingRecording
Watching Recording is the state for when we are watching an in progress recording,...
Definition: tv.h:80
kState_None
@ 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:58
BROWSE_INVALID
@ BROWSE_INVALID
Definition: tv.h:39
toTitleString
QString toTitleString(PictureAdjustType type)
Definition: tv.cpp:62
kCommSkipCount
@ kCommSkipCount
Definition: tv.h:135
kCommSkipNotify
@ kCommSkipNotify
Definition: tv.h:134
VBIMode::NTSC_CC
@ NTSC_CC
Definition: tv.h:13
kState_WatchingVideo
@ kState_WatchingVideo
Watching Video is the state when we are watching a video and is not a dvd or BD.
Definition: tv.h:71
kAdjustingPicture_Playback
@ kAdjustingPicture_Playback
Definition: tv.h:123
sStatus_Asleep
@ sStatus_Asleep
A slave is considered asleep when it is not awake and not undefined.
Definition: tv.h:104
CHANNEL_DIRECTION_FAVORITE
@ CHANNEL_DIRECTION_FAVORITE
Definition: tv.h:32
StateToString
QString StateToString(TVState state)
Returns a human readable QString representing a TVState.
Definition: tv.cpp:11
uint
unsigned int uint
Definition: compat.h:140
toTypeString
QString toTypeString(PictureAdjustType type)
Definition: tv.cpp:49
BROWSE_DOWN
@ BROWSE_DOWN
Fetch information on next channel.
Definition: tv.h:42
BROWSE_RIGHT
@ BROWSE_RIGHT
Fetch information on current channel in the future.
Definition: tv.h:44
BROWSE_FAVORITE
@ BROWSE_FAVORITE
Fetch information on the next favorite channel.
Definition: tv.h:45
kState_WatchingPreRecorded
@ kState_WatchingPreRecorded
Watching Pre-recorded is a TV only state for when we are watching a pre-existing recording.
Definition: tv.h:67
sStatus_Undefined
@ 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:117
kState_WatchingBD
@ kState_WatchingBD
Watching BD is the state when we are watching a BD.
Definition: tv.h:75
kState_WatchingDVD
@ kState_WatchingDVD
Watching DVD is the state when we are watching a DVD.
Definition: tv.h:73
TVState
TVState
TVState is an enumeration of the states used by TV and TVRec.
Definition: tv.h:51
kAdjustingPicture_Recording
@ kAdjustingPicture_Recording
Definition: tv.h:125
BROWSE_SAME
@ BROWSE_SAME
Fetch browse information on current channel and time.
Definition: tv.h:40
kCommSkipIncr
@ kCommSkipIncr
Definition: tv.h:136
sStatus_FallingAsleep
@ sStatus_FallingAsleep
A slave is marked as falling asleep when told to shutdown by the master.
Definition: tv.h:108
kState_WatchingLiveTV
@ 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:63
toString
QString toString(CommSkipMode type)
Definition: tv.cpp:75
BrowseDirection
BrowseDirection
Used to request ProgramInfo for channel browsing.
Definition: tv.h:38
kCommSkipOff
@ kCommSkipOff
Definition: tv.h:132
CHANNEL_DIRECTION_SAME
@ CHANNEL_DIRECTION_SAME
Definition: tv.h:33
kAdjustingPicture_None
@ kAdjustingPicture_None
Definition: tv.h:122
sStatus_Awake
@ sStatus_Awake
A slave is awake when it is connected to the master.
Definition: tv.h:100
kState_RecordingOnly
@ 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:84