Go to the source code of this file.
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 | TVState { kState_Error = -1, kState_None = 0, kState_WatchingLiveTV, kState_WatchingPreRecorded, kState_WatchingRecording, kState_RecordingOnly, kState_ChangingState } |
| TVState is an enumeration of the states used by TV and TVRec. More... | |
| enum | PictureAdjustType { kAdjustingPicture_None = 0, kAdjustingPicture_Playback, kAdjustingPicture_Channel, kAdjustingPicture_Recording } |
Functions | |
| QString | StateToString (TVState state) |
| Returns a human readable QString representing a TVState. | |
| QString | toTypeString (PictureAdjustType type) |
| QString | toTitleString (PictureAdjustType type) |
| enum TVState |
TVState is an enumeration of the states used by TV and TVRec.
| 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_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 actualy enter, but is returned by GetState() when we are in the process of changing the state. |
| enum PictureAdjustType |
| QString StateToString | ( | TVState | state | ) |
Returns a human readable QString representing a TVState.
| state | State to print. |
Definition at line 12 of file tv.cpp.
Referenced by TVRec::HandleStateChange(), TV::HandleStateChange(), TVRec::RemovePlaying(), TVRec::RemoveRecording(), and TVRec::StartRecording().
| QString toTypeString | ( | PictureAdjustType | type | ) |
Definition at line 28 of file tv.cpp.
Referenced by TV::DoChangePictureAttribute(), and TV::DoTogglePictureAttribute().
| QString toTitleString | ( | PictureAdjustType | type | ) |
Definition at line 41 of file tv.cpp.
Referenced by TV::DoChangePictureAttribute(), and TV::DoTogglePictureAttribute().
1.5.5