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(QString vbiformat)
17  {
18  QString fmt = vbiformat.toLower().left(3);
19  vbimode_t mode;
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*) { return (TVState)(0); }
92 
93 QString StateToString(TVState state);
94 
118 };
119 
121 {
126 };
129 
131 {
137 };
138 QString toString(CommSkipMode type);
139 #endif
Error State, if we ever try to enter this state errored is set.
Definition: tv.h:54
Fetch browse information on current channel and time.
Definition: tv.h:40
TVState myth_deque_init(const TVState *)
Definition: tv.h:91
Watching LiveTV is the state for when we are watching a recording and the user has control over the c...
Definition: tv.h:63
ChannelChangeDirection
ChannelChangeDirection is an enumeration of possible channel changing directions.
Definition: tv.h:28
Fetch information on current channel in the past.
Definition: tv.h:43
Watching Recording is the state for when we are watching an in progress recording,...
Definition: tv.h:80
Watching Pre-recorded is a TV only state for when we are watching a pre-existing recording.
Definition: tv.h:67
Watching DVD is the state when we are watching a DVD.
Definition: tv.h:73
TVState
TVState is an enumeration of the states used by TV and TVRec.
Definition: tv.h:50
Definition: tv.h:6
Recording Only is a TVRec only state for when we are recording a program, but there is no one current...
Definition: tv.h:84
QString toString(CommSkipMode type)
Definition: tv.cpp:74
Watching Video is the state when we are watching a video and is not a dvd or BD.
Definition: tv.h:71
CommSkipMode
Definition: tv.h:130
QString toTypeString(PictureAdjustType type)
Definition: tv.cpp:48
vbimode_t
Definition: tv.h:9
A slave is awake when it is connected to the master.
Definition: tv.h:100
SleepStatus
SleepStatus is an enumeration of the awake/sleep status of a slave.
Definition: tv.h:97
Watching BD is the state when we are watching a BD.
Definition: tv.h:75
unsigned int uint
Definition: compat.h:140
QString StateToString(TVState state)
Returns a human readable QString representing a TVState.
Definition: tv.cpp:10
A slave is considered asleep when it is not awake and not undefined.
Definition: tv.h:104
None State, this is the initial state in both TV and TVRec, it indicates that we are ready to change ...
Definition: tv.h:58
BrowseDirection
Used to request ProgramInfo for channel browsing.
Definition: tv.h:37
Fetch information on the next favorite channel.
Definition: tv.h:45
Fetch information on next channel.
Definition: tv.h:42
PictureAdjustType
Definition: tv.h:120
This is a placeholder state which we never actually enter, but is returned by GetState() when we are ...
Definition: tv.h:89
Fetch information on previous channel.
Definition: tv.h:41
A slave's sleep status is undefined when it has never connected to the master backend or is not able ...
Definition: tv.h:117
static uint Parse(QString vbiformat)
Definition: tv.h:16
A slave is marked as falling asleep when told to shutdown by the master.
Definition: tv.h:108
QString toTitleString(PictureAdjustType type)
Definition: tv.cpp:61
Fetch information on current channel in the future.
Definition: tv.h:44
A slave is marked as waking when the master runs the slave's wakeup command.
Definition: tv.h:112