TV Class Reference

#include <tv_play.h>

List of all members.


Detailed Description

Definition at line 166 of file tv_play.h.


Public Slots

void HandleOSDClosed (int osdType)
void timerEvent (QTimerEvent *)

Public Member Functions

 TV (void)
 ~TV ()
void InitFromDB (void)
bool Init (bool createWindow=true)
 Performs instance initialization, returns true on success.
void ProcessKeypress (PlayerContext *, QKeyEvent *e)
void ProcessNetworkControlCommand (PlayerContext *, const QString &command)
void customEvent (QEvent *e)
bool HandleTrackAction (PlayerContext *, const QString &action)
bool LiveTV (bool showDialogs=true, bool startInGuide=false)
 Starts LiveTV.
bool StartEmbedding (PlayerContext *, WId wid, const QRect &)
void StopEmbedding (PlayerContext *)
bool IsTunable (const PlayerContext *, uint chanid, bool use_cache=false)
void ClearTunableCache (void)
void ChangeChannel (const PlayerContext *, const DBChanList &options)
void DrawUnusedRects (void)
int PlayFromRecorder (int recordernum)
int Playback (const ProgramInfo &rcinfo)
QString GetRecordingGroup (int player_idx) const
void setInPlayList (bool setting)
void setUnderNetworkControl (bool setting)
void ShowNoRecorderDialog (const PlayerContext *, NoRecorderMsg msgType=kNoRecorders)
void FinishRecording (int player_idx)
 Finishes player's recording.
void AskAllowRecording (PlayerContext *, const QStringList &, int, bool, bool)
bool PromptRecGroupPassword (PlayerContext *)
bool CreatePBP (PlayerContext *lctx, const ProgramInfo *info)
 Setup Picture by Picture.
bool CreatePIP (PlayerContext *lctx, const ProgramInfo *info)
 create PIP.
bool ResizePIPWindow (PlayerContext *)
 resize PIP Window.
bool IsSwitchingCards (void) const
 Returns true if we are currently in the process of switching recorders.
bool IsRunning (void) const
 Returns true if the TV event thread is running.
bool getAllowRerecord (void) const
 Returns true if the user told Mythtv to allow re-recording of the show.
bool getEndOfRecording (void) const
 This is set to true if the player reaches the end of the recording without the user explicitly exiting the player.
bool getJumpToProgram (void) const
 This is set if the user asked MythTV to jump to the previous recording in the playlist.
bool IsSameProgram (int player_idx, const ProgramInfo *p) const
 true iff program is the same as the one in the selected player
bool IsBookmarkAllowed (const PlayerContext *) const
bool IsDeleteAllowed (const PlayerContext *) const
bool IsPBPSupported (const PlayerContext *ctx=NULL) const
bool IsPIPSupported (const PlayerContext *ctx=NULL) const
int GetLastRecorderNum (int player_idx) const
TVState GetState (int player_idx) const
 get tv state of active player context
TVState GetState (const PlayerContext *) const
 get tv state of active player context
OSDGetOSDL (const char *, int)
OSDGetOSDL (const PlayerContext *, const char *, int)
void ReturnOSDLock (OSD *&)
void ReturnOSDLock (const PlayerContext *, OSD *&)
bool ActiveHandleAction (PlayerContext *, const QStringList &actions, bool isDVD, bool isDVDStillFrame)
void GetNextProgram (RemoteEncoder *enc, BrowseDirection direction, InfoMap &infoMap) const
 Fetches information on the desired program from the backend.
void GetNextProgram (BrowseDirection direction, InfoMap &infoMap) const
void ChangeVolume (PlayerContext *, bool up)
void ToggleMute (PlayerContext *, const bool muteIndividualChannels=false)
void SetNextProgPIPState (PIPState state)
bool HasUDPNotifyEvent (void) const
void HandleUDPNotifyEvent (void)
void SaveChannelGroup (void)
 save channel group setting to database
void UpdateChannelList (int groupID)
 update the channel list with channels from the selected channel group

Static Public Member Functions

static void InitKeys (void)
static void ResetKeys (void)
static bool StartTV (ProgramInfo *tvrec=NULL, uint flags=kStartTVNoFlags)
 returns true if the recording completed when exiting.
static void SetFuncPtr (const char *, void *)
 Import pointers to functions used to embed the TV window into other containers e.g.

Static Public Attributes

static const int kInitFFRWSpeed = 0
 1x, default to normal speed
static const uint kInputKeysMax = 6
 When to start discarding early keys.
static const uint kNextSource = 1
static const uint kPreviousSource = 2
static const uint kMaxPIPCount = 4
static const uint kMaxPBPCount = 2
 Timeout for entry modes in msec.
static const uint kInputModeTimeout = 5000
static const uint kLCDTimeout = 1000
 Timeout for updating LCD info in msec.
static const uint kBrowseTimeout = 30000
 Timeout for browse mode exit in msec.
static const uint kKeyRepeatTimeout = 300
 Seek key repeat timeout in msec.
static const uint kPrevChanTimeout = 750
 How long to wait before applying all previous channel keypresses in msec.
static const uint kSleepTimerDialogTimeout = 45000
 How long to display sleep timer dialog in msec.
static const uint kIdleTimerDialogTimeout = 45000
 How long to display idle timer dialog in seconds.
static const uint kVideoExitDialogTimeout = 120000
 How long to display idle timer dialog in msec.
static const uint kEndOfPlaybackCheckFrequency = 250
static const uint kEmbedCheckFrequency = 250
static const uint kSpeedChangeCheckFrequency = 250
static const uint kErrorRecoveryCheckFrequency = 250
static const uint kEndOfRecPromptCheckFrequency = 250
static const uint kEndOfPlaybackFirstCheckTimer = 60000

Protected Slots

void AddUDPNotifyEvent (const QString &name, const UDPNotifyOSDSet *)
void ClearUDPNotifyEvents (void)

Protected Member Functions

void OSDDialogEvent (int result, QString text, QString action)
void DoEditSchedule (int editType=kScheduleProgramGuide)
virtual void run (void)
void TVEventThreadChecks (void)
void PauseAudioUntilBuffered (PlayerContext *ctx)
bool eventFilter (QObject *o, QEvent *e)

Static Protected Attributes

static QStringList lastProgramStringList = QStringList()
 stores last program info.
static EMBEDRETURNVOID RunPlaybackBoxPtr = NULL
 function pointer for RunPlaybackBox in playbackbox.cpp
static EMBEDRETURNVOID RunViewScheduledPtr = NULL
 function pointer for RunViewScheduled in viewscheduled.cpp
static EMBEDRETURNVOIDEPG RunProgramGuidePtr = NULL
 function pointer for RunProgramGuide in guidegrid.cpp
static EMBEDRETURNVOIDFINDER RunProgramFinderPtr = NULL
 function pointer for RunProgramFinder in progfind.cpp
static EMBEDRETURNVOIDSCHEDIT RunScheduleEditorPtr = NULL
 function pointer for RunScheduleEditor in scheduleeditor.cpp

Private Types

enum  ArbSeekWhence { ARBSEEK_SET = 0, ARBSEEK_REWIND, ARBSEEK_FORWARD, ARBSEEK_END }
typedef QMap< int,
PlayerContext * > 
TimerContextMap
typedef QMap< int, const
PlayerContext * > 
TimerContextConstMap

Private Member Functions

void SetActive (PlayerContext *lctx, int index, bool osd_msg)
PlayerContextGetPlayerWriteLock (int which, const char *file, int location)
PlayerContextGetPlayerReadLock (int which, const char *file, int location)
const PlayerContextGetPlayerReadLock (int which, const char *file, int location) const
PlayerContextGetPlayerHaveLock (PlayerContext *, int which, const char *file, int location)
const PlayerContextGetPlayerHaveLock (const PlayerContext *, int which, const char *file, int location) const
void ReturnPlayerLock (PlayerContext *&)
void ReturnPlayerLock (const PlayerContext *&) const
int StartTimer (int interval, int line)
void KillTimer (int id)
void ForceNextStateNone (PlayerContext *)
void ScheduleStateChange (PlayerContext *)
void SetErrored (PlayerContext *)
void PrepToSwitchToRecordedProgram (PlayerContext *, const ProgramInfo &)
void PrepareToExitPlayer (PlayerContext *, int line, bool bookmark=true) const
void SetExitPlayer (bool set_it, bool wants_to) const
void SetUpdateOSDPosition (bool set_it)
bool PxPHandleAction (PlayerContext *, const QStringList &actions)
bool ToggleHandleAction (PlayerContext *, const QStringList &actions, bool isDVD)
bool FFRewHandleAction (PlayerContext *, const QStringList &actions)
bool ActivePostQHandleAction (PlayerContext *, const QStringList &actions, bool isDVD)
bool HandleJumpToProgramAction (PlayerContext *ctx, const QStringList &actions)
bool RequestNextRecorder (PlayerContext *, bool)
void DeleteRecorder ()
bool StartRecorder (PlayerContext *ctx, int maxWait=-1)
 Starts recorder, must be called before StartPlayer().
void StopStuff (PlayerContext *mctx, PlayerContext *ctx, bool stopRingbuffers, bool stopPlayers, bool stopRecorders)
 Can shut down the ringbuffers, the players, and in LiveTV it can shut down the recorders.
void ToggleChannelFavorite (PlayerContext *, QString)
void ChangeChannel (PlayerContext *, int direction)
void ChangeChannel (PlayerContext *, uint chanid, const QString &channum)
void PauseLiveTV (PlayerContext *)
 Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to temporarily stop video output.
void UnpauseLiveTV (PlayerContext *)
 Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to restart video output.
void ShowPreviousChannel (PlayerContext *)
void PopPreviousChannel (PlayerContext *, bool immediate_change)
void ToggleAspectOverride (PlayerContext *, AspectOverrideMode aspectMode=kAspect_Toggle)
void ToggleAdjustFill (PlayerContext *, AdjustFillMode adjustfillMode=kAdjustFill_Toggle)
void SetSpeedChangeTimer (uint when, int line)
void HandleEndOfPlaybackTimerEvent (void)
void HandleIsNearEndWhenEmbeddingTimerEvent (void)
void HandleEndOfRecordingExitPromptTimerEvent (void)
void HandleVideoExitDialogTimerEvent (void)
void HandlePseudoLiveTVTimerEvent (void)
void HandleSpeedChangeTimerEvent (void)
void AddKeyToInputQueue (PlayerContext *, char key)
void ClearInputQueues (const PlayerContext *, bool hideosd)
 Clear channel key buffer of input keys.
bool CommitQueuedInput (PlayerContext *)
bool ProcessSmartChannel (const PlayerContext *, QString &)
bool HasQueuedInput (void) const
bool HasQueuedChannel (void) const
QString GetQueuedInput (void) const
int GetQueuedInputAsInt (bool *ok=NULL, int base=10) const
QString GetQueuedChanNum (void) const
uint GetQueuedChanID (void) const
void SwitchSource (PlayerContext *, uint source_direction)
void SwitchInputs (PlayerContext *, uint inputid)
void ToggleInputs (PlayerContext *, uint inputid=0)
void SwitchCards (PlayerContext *, uint chanid=0, QString channum="", uint inputid=0)
void ToggleSleepTimer (const PlayerContext *)
void ToggleSleepTimer (const PlayerContext *, const QString &time)
void DoPlay (PlayerContext *)
float DoTogglePauseStart (PlayerContext *)
void DoTogglePauseFinish (PlayerContext *, float time, bool showOSD)
void DoTogglePause (PlayerContext *, bool showOSD)
vector< boolDoSetPauseState (PlayerContext *lctx, const vector< bool > &)
bool SeekHandleAction (PlayerContext *actx, const QStringList &actions, const bool isDVD)
void DoSeek (PlayerContext *, float time, const QString &mesg)
bool DoPlayerSeek (PlayerContext *, float time)
void DoArbSeek (PlayerContext *, ArbSeekWhence whence)
void NormalSpeed (PlayerContext *)
void ChangeSpeed (PlayerContext *, int direction)
void ToggleTimeStretch (PlayerContext *)
void ChangeTimeStretch (PlayerContext *, int dir, bool allowEdit=true)
bool TimeStretchHandleAction (PlayerContext *, const QStringList &actions)
void ToggleUpmix (PlayerContext *)
void ChangeAudioSync (PlayerContext *, int dir, bool allowEdit=true)
bool AudioSyncHandleAction (PlayerContext *, const QStringList &actions)
float StopFFRew (PlayerContext *)
void ChangeFFRew (PlayerContext *, int direction)
void SetFFRew (PlayerContext *, int index)
int GetNumChapters (const PlayerContext *) const
void GetChapterTimes (const PlayerContext *, QList< long long > &times) const
int GetCurrentChapter (const PlayerContext *) const
int GetNumTitles (const PlayerContext *ctx) const
int GetCurrentTitle (const PlayerContext *ctx) const
int GetTitleDuration (const PlayerContext *ctx, int title) const
QString GetTitleName (const PlayerContext *ctx, int title) const
void DoSwitchTitle (PlayerContext *, int title)
int GetNumAngles (const PlayerContext *ctx) const
int GetCurrentAngle (const PlayerContext *ctx) const
QString GetAngleName (const PlayerContext *ctx, int angle) const
void DoSwitchAngle (PlayerContext *, int angle)
void DoJumpChapter (PlayerContext *, int direction)
void DoSkipCommercials (PlayerContext *, int direction)
void DoQueueTranscode (PlayerContext *, QString profile)
void SetAutoCommercialSkip (const PlayerContext *, CommSkipMode skipMode=kCommSkipOff)
void SetManualZoom (const PlayerContext *, bool enabled, QString msg)
bool ManualZoomHandleAction (PlayerContext *actx, const QStringList &actions)
bool ClearOSD (const PlayerContext *)
void ToggleOSD (const PlayerContext *, bool includeStatusOSD)
 Cycle through the available Info OSDs.
void UpdateOSDProgInfo (const PlayerContext *, const char *whichInfo)
 Update and display the passed OSD set with programinfo.
void UpdateOSDStatus (const PlayerContext *ctx, QString title, QString desc, QString value, int type, QString units, int position=0, int prev=0, int next=0, enum OSDTimeout timeout=kOSDTimeout_Med)
void UpdateOSDStatus (const PlayerContext *ctx, osdInfo &info, int type, enum OSDTimeout timeout)
void UpdateOSDSeekMessage (const PlayerContext *, const QString &mesg, enum OSDTimeout timeout)
void UpdateOSDInput (const PlayerContext *, QString inputname=QString::null)
void UpdateOSDSignal (const PlayerContext *, const QStringList &strlist)
 Updates Signal portion of OSD.
void UpdateOSDTimeoutMessage (PlayerContext *)
void UpdateOSDAskAllowDialog (PlayerContext *)
void EditSchedule (const PlayerContext *, int editType=kScheduleProgramGuide)
void TeardownPlayer (PlayerContext *mctx, PlayerContext *ctx)
void HandleStateChange (PlayerContext *mctx, PlayerContext *ctx)
 Changes the state to the state on the front of the state change queue.
bool StartPlayer (PlayerContext *mctx, PlayerContext *ctx, TVState desiredState)
vector< long long > TeardownAllPlayers (PlayerContext *)
 Teardown all Player's in preparation for PxP Swap or change from PIP -> PBP or PBP -> PIP.
void RestartAllPlayers (PlayerContext *lctx, const vector< long long > &pos, MuteState mctx_mute)
 Recreate Main and PIP windows.
void RestartMainPlayer (PlayerContext *mctx)
void PxPToggleView (PlayerContext *actx, bool wantPBP)
 start/stop PIP/PBP
void PxPCreateView (PlayerContext *actx, bool wantPBP)
 start PIP/PBP
void PxPTeardownView (PlayerContext *actx)
 stop PIP/PBP
void PxPToggleType (PlayerContext *mctx, bool wantPBP)
 Change PIP View from PIP to PBP and visa versa.
void PxPSwap (PlayerContext *mctx, PlayerContext *pipctx)
bool HandlePxPTimerEvent (void)
bool PIPAddPlayer (PlayerContext *mctx, PlayerContext *ctx)
 Maps Player of software scaled PIP to the main player.
bool PIPRemovePlayer (PlayerContext *mctx, PlayerContext *ctx)
 Unmaps Player of software scaled PIP from the main player.
void PBPRestartMainPlayer (PlayerContext *mctx)
 tear down remaining PBP video and restore fullscreen display
void ToggleAutoExpire (PlayerContext *)
void BrowseStart (PlayerContext *)
 Begins channel browsing.
void BrowseEnd (PlayerContext *, bool change_channel)
 Ends channel browsing.
void BrowseDispInfo (PlayerContext *, BrowseDirection direction)
 Fetches browse info from backend and sends it to the OSD.
void BrowseChannel (PlayerContext *, const QString &channum)
bool BrowseHandleAction (PlayerContext *, const QStringList &actions)
uint BrowseAllGetChanId (const QString &chan) const
void ToggleRecord (PlayerContext *)
void DoTogglePictureAttribute (const PlayerContext *, PictureAdjustType type)
void DoChangePictureAttribute (PlayerContext *, PictureAdjustType type, PictureAttribute attr, bool up)
bool PictureAttributeHandleAction (PlayerContext *, const QStringList &actions)
void StartChannelEditMode (PlayerContext *)
 Starts channel editing mode.
bool HandleOSDChannelEdit (PlayerContext *, QString action)
void ChannelEditAutoFill (const PlayerContext *, InfoMap &) const
 Automatically fills in as much information as possible.
void ChannelEditAutoFill (const PlayerContext *, InfoMap &, const QMap< QString, bool > &) const
 Automatically fills in as much information as possible.
void ChannelEditXDSFill (const PlayerContext *, InfoMap &) const
void ChannelEditDDFill (InfoMap &, const QMap< QString, bool > &, bool) const
QString GetDataDirect (QString key, QString value, QString field, bool allow_partial=false) const
bool LoadDDMap (uint sourceid)
void RunLoadDDMap (uint sourceid)
bool DialogIsVisible (PlayerContext *ctx, const QString &dialog)
void HandleOSDInfo (PlayerContext *ctx, QString action)
void ShowOSDAskAllow (PlayerContext *ctx)
void HandleOSDAskAllow (PlayerContext *ctx, QString action)
void ShowOSDCutpoint (PlayerContext *ctx, const QString &type)
bool HandleOSDCutpoint (PlayerContext *ctx, QString action, long long frame)
void StartProgramEditMode (PlayerContext *)
 Starts Program Cut Map Editing mode.
void ShowOSDAlreadyEditing (PlayerContext *ctx)
void HandleOSDAlreadyEditing (PlayerContext *ctx, QString action)
void ShowOSDSleep (void)
void HandleOSDSleep (PlayerContext *ctx, QString action)
void SleepDialogTimeout (void)
void ShowOSDIdle (void)
 After idleTimer has expired, display a dialogue warning the user that we will exit LiveTV unless they take action. We change idleTimer, to 45 seconds and when it expires for a second time we quit the player. If the user so decides, they may hit ok and we reset the timer back to the default expiry period.
void HandleOSDIdle (PlayerContext *ctx, QString action)
void IdleDialogTimeout (void)
void ShowOSDStopWatchingRecording (PlayerContext *ctx)
void ShowOSDPromptDeleteRecording (PlayerContext *ctx, QString title, bool force=false)
bool HandleOSDVideoExit (PlayerContext *ctx, QString action)
void ShowOSDMenu (const PlayerContext *, const QString category="", const QString selected="")
void FillOSDMenuAudio (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuVideo (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuSubtitles (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuNavigate (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuJobs (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuPlayback (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuSchedule (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuSource (const PlayerContext *ctx, OSD *osd, QString category, const QString selected, QString &currenttext, QString &backaction)
void FillOSDMenuJumpRec (PlayerContext *ctx, const QString category="", int level=0, const QString selected="")
void UpdateLCD (void)
bool HandleLCDTimerEvent (void)
void ShowLCDChannelInfo (const PlayerContext *)
void ShowLCDDVDInfo (const PlayerContext *)
void ITVRestart (PlayerContext *, bool isLive)
 Restart the MHEG/MHP engine.
bool ScreenShot (PlayerContext *, long long frameNumber)
void DVDJumpBack (PlayerContext *)
void DVDJumpForward (PlayerContext *)
bool DVDMenuHandleAction (PlayerContext *, const QStringList &actions, bool isDVD, bool isDVDStill)
void SetLastProgram (const ProgramInfo *rcinfo)
ProgramInfoGetLastProgram (void) const
void RestoreScreenSaver (const PlayerContext *)
void InitUDPNotifyEvent (void)
int find_player_index (const PlayerContext *) const

Static Private Member Functions

static void * load_dd_map_thunk (void *)
static void * load_dd_map_post_thunk (void *)
static bool LoadExternalSubtitles (MythPlayer *player, const QString &videoFile)
static QStringList GetValidRecorderList (uint chanid)
static QStringList GetValidRecorderList (const QString &channum)
static QStringList GetValidRecorderList (uint, const QString &)
 Returns list of the recorders that have chanid or channum in their sources.
static bool StateIsRecording (TVState state)
static bool StateIsPlaying (TVState state)
static bool StateIsLiveTV (TVState state)
static TVState RemoveRecording (TVState state)

Private Attributes

QString baseFilters
QString db_channel_format
QString db_time_format
QString db_short_date_format
uint db_idle_timeout
uint db_udpnotify_port
uint db_browse_max_forward
int db_playback_exit_prompt
uint db_autoexpire_default
bool db_auto_set_watched
bool db_end_of_rec_exit_prompt
bool db_jump_prefer_osd
bool db_use_gui_size_for_tv
bool db_start_in_guide
bool db_toggle_bookmark
bool db_run_jobs_on_remote
bool db_continue_embedded
bool db_use_fixed_size
bool db_browse_always
bool db_browse_all_tuners
DBChanList db_browse_all_channels
bool arrowAccel
CommSkipMode autoCommercialSkip
bool tryUnflaggedSkip
bool smartForward
float ff_rew_repos
bool ff_rew_reverse
bool jumped_back
 Used by PromptDeleteRecording.
vector< int > ff_rew_speeds
uint vbimode
QTime ctorTime
uint switchToInputId
QMutex initFromDBLock
bool initFromDBDone
QWaitCondition initFromDBWait
bool wantsToQuit
 True if the user told MythTV to stop plaback.
bool stretchAdjustment
 True if time stretch is turned on.
bool audiosyncAdjustment
 True if audiosync is turned on.
int64_t audiosyncBaseline
bool editmode
 Are we in video editing mode.
bool zoomMode
bool sigMonMode
 Are we in signal monitoring mode?
bool endOfRecording
 !player->IsPlaying() && StateIsPlaying()
bool requestDelete
 User wants last video deleted.
bool allowRerecord
 User wants to rerecord the last video if deleted.
bool doSmartForward
bool queuedTranscode
PictureAdjustType adjustingPicture
 Picture attribute type to modify.
PictureAttribute adjustingPictureAttribute
 Picture attribute to modify (on arrow left or right).
QMap< QString, AskProgramInfoaskAllowPrograms
QMutex askAllowLock
MythDeque< QString > changePxP
QMutex progListsLock
QMap< QString, ProgramListprogLists
QMutex chanEditMapLock
 Lock for chanEditMap and ddMap.
InfoMap chanEditMap
 Channel Editing initial map.
DDKeyMap ddMap
 DataDirect channel map.
uint ddMapSourceId
 DataDirect channel map sourceid.
bool ddMapLoaderRunning
 Is DataDirect loader thread running.
pthread_t ddMapLoader
 DataDirect map loader thread.
vector< SleepTimerInfosleep_times
 Vector or sleep timer sleep times in seconds, with the appropriate UI message.
uint sleep_index
 Index into sleep_times.
uint sleepTimerTimeout
 Current sleep timeout in msec.
int sleepTimerId
 Timer for turning off playback.
int sleepDialogTimerId
 Timer for sleep dialog.
int idleTimerId
 Timer for turning off playback after idle period.
int idleDialogTimerId
 Timer for idle dialog.
MythDeque< QKeyEvent * > keyList
 Queue of unprocessed key presses.
MythTimer keyRepeatTimer
 Timeout timer for repeat key filtering.
bool ccInputMode
 Are we in CC/Teletext page/stream selection mode?
bool asInputMode
 Are we in Arbitrary seek input mode?
QString queuedInput
 Input key presses queued up so far...
QString queuedChanNum
 Input key presses queued up so far to form a valid ChanNum.
uint queuedChanID
 Queued ChanID (from EPG channel selector).
QTime lockTimer
bool lockTimerOn
QDateTime lastLockSeenTime
bool browsemode
QString browsechannum
uint browsechanid
QString browsestarttime
QMutex browseLock
QMutex lastProgramLock
ProgramInfolastProgram
 last program played with this player
bool inPlaylist
 show is part of a playlist
bool underNetworkControl
 initial show started via by the network control interface
PIPState jumpToProgramPIPState
bool jumpToProgram
vector< PlayerContext * > player
int playerActive
 Video Player to which events are sent to.
QReadWriteLock playerLock
 lock on player and playerActive changes
bool noHardwareDecoders
RemoteEncoderswitchToRec
 Main recorder to use after a successful SwitchCards() call.
QMap< OSD *, const
PlayerContext * > 
osd_lctx
UDPNotifyudpnotify
 UDPNotify instance which shows messages sent to the "UDPNotifyPort" in an OSD dialog.
MythDeque< QString > udpnotifyEventName
MythDeque< const
UDPNotifyOSDSet * > 
udpnotifyEventSet
QString lcdTitle
QString lcdSubtitle
QString lcdCallsign
TvPlayWindowmyWindow
 Our screen, if it exists.
QRect player_bounds
 Prior GUI window bounds, for DoEditSchedule() and player exit().
QRect saved_gui_bounds
bool weDisabledGUI
 true if this instance disabled MythUI drawing.
bool isEmbedded
 are we currently embedded
bool ignoreKeyPresses
 should we ignore keypresses
vector< boolsaved_pause
 saved pause state before embedding
QMutex is_tunable_cache_lock
QMap< uint, vector< InputInfo > > is_tunable_cache_inputs
QMutex recorderPlaybackInfoLock
 Info requested by PlayFromRecorder.
QWaitCondition recorderPlaybackInfoWaitCond
QMap< int, int > recorderPlaybackInfoTimerId
QMap< int, ProgramInforecorderPlaybackInfo
int channel_group_id
uint browse_changrp
ChannelGroupList m_changrplist
DBChanList m_channellist
MythDeque< QString > networkControlCommands
QMutex timerIdLock
volatile int lcdTimerId
volatile int keyListTimerId
volatile int networkControlTimerId
volatile int jumpMenuTimerId
volatile int pipChangeTimerId
volatile int udpNotifyTimerId
volatile int switchToInputTimerId
volatile int ccInputTimerId
volatile int asInputTimerId
volatile int queueInputTimerId
volatile int browseTimerId
volatile int updateOSDPosTimerId
volatile int endOfPlaybackTimerId
volatile int embedCheckTimerId
volatile int endOfRecPromptTimerId
volatile int videoExitDialogTimerId
volatile int pseudoChangeChanTimerId
volatile int speedChangeTimerId
volatile int errorRecoveryTimerId
volatile int exitPlayerTimerId
TimerContextMap stateChangeTimerId
TimerContextMap signalMonitorTimerId
TimerContextMap tvchainUpdateTimerId
QWaitCondition mainLoopCond
 Condition to signal that the Event thread is up and running.
QMutex mainLoopCondLock
QWaitCondition stateChangeCond
 Condition to signal State changes.
QMutex stateChangeCondLock

Friends

class QTVEventThread
class PlaybackBox
class GuideGrid
class TvPlayWindow

Classes

class  SleepTimerInfo
 Helper class for Sleep Timer code. More...

Member Typedef Documentation

typedef QMap<int,PlayerContext*> TV::TimerContextMap [private]

Definition at line 846 of file tv_play.h.

typedef QMap<int,const PlayerContext*> TV::TimerContextConstMap [private]

Definition at line 847 of file tv_play.h.


Member Enumeration Documentation

enum TV::ArbSeekWhence [private]

Enumerator:
ARBSEEK_SET 
ARBSEEK_REWIND 
ARBSEEK_FORWARD 
ARBSEEK_END 

Definition at line 425 of file tv_play.h.


Constructor & Destructor Documentation

TV::TV ( void   ) 

See also:
Init(void)

Definition at line 856 of file tv_play.cpp.

Referenced by StartTV().

TV::~TV ( void   ) 

Definition at line 1188 of file tv_play.cpp.


Member Function Documentation

void TV::InitFromDB ( void   ) 

Definition at line 960 of file tv_play.cpp.

bool TV::Init ( bool  createWindow = true  ) 

Performs instance initialization, returns true on success.

Parameters:
createWindow If true a MythDialog is created for display.
Returns:
Returns true on success, false on failure.

Definition at line 1078 of file tv_play.cpp.

Referenced by main(), and StartTV().

void TV::ProcessKeypress ( PlayerContext actx,
QKeyEvent *  e 
)

Definition at line 3506 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ProcessNetworkControlCommand ( PlayerContext ctx,
const QString &  command 
)

Definition at line 4463 of file tv_play.cpp.

Referenced by timerEvent().

void TV::customEvent ( QEvent *  e  ) 

Definition at line 8378 of file tv_play.cpp.

Referenced by eventFilter().

bool TV::HandleTrackAction ( PlayerContext ctx,
const QString &  action 
)

Definition at line 3391 of file tv_play.cpp.

Referenced by ActiveHandleAction(), CommitQueuedInput(), and OSDDialogEvent().

bool TV::LiveTV ( bool  showDialogs = true,
bool  startInGuide = false 
)

Starts LiveTV.

Parameters:
showDialogs if true error dialogs are shown, if false they are not
startInGuide if true the EPG will be shown upon entering LiveTV

Definition at line 1315 of file tv_play.cpp.

Referenced by StartTV().

bool TV::StartEmbedding ( PlayerContext ctx,
WId  wid,
const QRect &  embedRect 
)

Definition at line 7749 of file tv_play.cpp.

Referenced by GuideGrid::EmbedTVWindow().

void TV::StopEmbedding ( PlayerContext ctx  ) 

Definition at line 7780 of file tv_play.cpp.

Referenced by customEvent().

bool TV::IsTunable ( const PlayerContext ctx,
uint  chanid,
bool  use_cache = false 
)

void TV::ClearTunableCache ( void   ) 

Definition at line 7743 of file tv_play.cpp.

Referenced by GuideGrid::updateChannels().

void TV::ChangeChannel ( const PlayerContext ctx,
const DBChanList options 
)

void TV::DrawUnusedRects ( void   ) 

int TV::PlayFromRecorder ( int  recordernum  ) 

Definition at line 1766 of file tv_play.cpp.

int TV::Playback ( const ProgramInfo rcinfo  ) 

Definition at line 1735 of file tv_play.cpp.

Referenced by PlayFromRecorder(), and StartTV().

QString TV::GetRecordingGroup ( int  player_idx  )  const

Definition at line 11977 of file tv_play.cpp.

Referenced by FillOSDMenuJumpRec(), and PlaybackBox::PlaybackBox().

void TV::setInPlayList ( bool  setting  )  [inline]

Definition at line 217 of file tv_play.h.

Referenced by StartTV().

void TV::setUnderNetworkControl ( bool  setting  )  [inline]

Definition at line 218 of file tv_play.h.

Referenced by StartTV().

void TV::ShowNoRecorderDialog ( const PlayerContext ctx,
NoRecorderMsg  msgType = kNoRecorders 
)

Definition at line 11424 of file tv_play.cpp.

Referenced by ChangeChannel(), RequestNextRecorder(), and StartTV().

void TV::FinishRecording ( int  player_idx  ) 

Finishes player's recording.

Definition at line 1415 of file tv_play.cpp.

void TV::AskAllowRecording ( PlayerContext ctx,
const QStringList &  msg,
int  timeuntil,
bool  hasrec,
bool  haslater 
)

Definition at line 1423 of file tv_play.cpp.

Referenced by customEvent().

bool TV::PromptRecGroupPassword ( PlayerContext ctx  ) 

Definition at line 12010 of file tv_play.cpp.

Referenced by FillOSDMenuJumpRec(), and HandleJumpToProgramAction().

bool TV::CreatePBP ( PlayerContext ctx,
const ProgramInfo info 
)

Setup Picture by Picture.

right side will be the current video.

Parameters:
info programinfo for PBP to use for left Picture. is NULL for Live TV

Definition at line 4822 of file tv_play.cpp.

Referenced by HandleJumpToProgramAction(), and PxPCreateView().

bool TV::CreatePIP ( PlayerContext ctx,
const ProgramInfo info 
)

create PIP.

Parameters:
info programinfo for PIP to create. is NULL for LiveTV PIP

Definition at line 4910 of file tv_play.cpp.

Referenced by HandleJumpToProgramAction(), and PxPCreateView().

bool TV::ResizePIPWindow ( PlayerContext ctx  ) 

resize PIP Window.

done when changing channels or swapping PIP

Definition at line 5272 of file tv_play.cpp.

Referenced by PIPAddPlayer().

bool TV::IsSwitchingCards ( void   )  const [inline]

Returns true if we are currently in the process of switching recorders.

Definition at line 232 of file tv_play.h.

bool TV::IsRunning ( void   )  const [inline]

Returns true if the TV event thread is running.

Should always be true between the end of the constructor and the beginning of the destructor.

Definition at line 235 of file tv_play.h.

Referenced by GuideGrid::aboutToShow(), GuideGrid::GuideGrid(), and GuideGrid::refreshVideo().

bool TV::getAllowRerecord ( void   )  const [inline]

Returns true if the user told Mythtv to allow re-recording of the show.

Definition at line 237 of file tv_play.h.

Referenced by StartTV().

bool TV::getEndOfRecording ( void   )  const [inline]

This is set to true if the player reaches the end of the recording without the user explicitly exiting the player.

Definition at line 240 of file tv_play.h.

Referenced by StartTV().

bool TV::getJumpToProgram ( void   )  const [inline]

This is set if the user asked MythTV to jump to the previous recording in the playlist.

Definition at line 243 of file tv_play.h.

Referenced by StartTV().

bool TV::IsSameProgram ( int  player_idx,
const ProgramInfo p 
) const

true iff program is the same as the one in the selected player

Definition at line 11996 of file tv_play.cpp.

Referenced by extract_main_state(), PlaybackBox::PlayX(), and PlaybackBox::ShowActionPopup().

bool TV::IsBookmarkAllowed ( const PlayerContext ctx  )  const

bool TV::IsDeleteAllowed ( const PlayerContext ctx  )  const

Definition at line 11726 of file tv_play.cpp.

Referenced by HandleOSDVideoExit(), and ShowOSDStopWatchingRecording().

bool TV::IsPBPSupported ( const PlayerContext ctx = NULL  )  const

bool TV::IsPIPSupported ( const PlayerContext ctx = NULL  )  const

Definition at line 5321 of file tv_play.cpp.

Referenced by CreatePIP(), FillOSDMenuPlayback(), and PxPHandleAction().

int TV::GetLastRecorderNum ( int  player_idx  )  const

Definition at line 1369 of file tv_play.cpp.

TVState TV::GetState ( int  player_idx  )  const

TVState TV::GetState ( const PlayerContext actx  )  const

get tv state of active player context

Definition at line 1302 of file tv_play.cpp.

OSD * TV::GetOSDL ( const char *  file,
int  location 
)

Definition at line 12132 of file tv_play.cpp.

OSD * TV::GetOSDL ( const PlayerContext ctx,
const char *  file,
int  location 
)

Definition at line 12143 of file tv_play.cpp.

void TV::ReturnOSDLock ( OSD *&  osd  ) 

void TV::ReturnOSDLock ( const PlayerContext ctx,
OSD *&  osd 
)

Definition at line 12189 of file tv_play.cpp.

bool TV::ActiveHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD,
bool  isDVDStillFrame 
)

Definition at line 3938 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::GetNextProgram ( RemoteEncoder enc,
BrowseDirection  direction,
InfoMap infoMap 
) const

Fetches information on the desired program from the backend.

Parameters:
enc RemoteEncoder to query, if null query the actx->recorder.
direction BrowseDirection to get information on.
infoMap InfoMap to fill in with returned data

Definition at line 7501 of file tv_play.cpp.

Referenced by BrowseDispInfo().

void TV::GetNextProgram ( BrowseDirection  direction,
InfoMap infoMap 
) const

Definition at line 7571 of file tv_play.cpp.

void TV::InitKeys ( void   )  [static]

Definition at line 490 of file tv_play.cpp.

Referenced by InitJumpPoints(), main(), and ResetKeys().

void TV::ResetKeys ( void   )  [static]

Definition at line 834 of file tv_play.cpp.

bool TV::StartTV ( ProgramInfo tvrec = NULL,
uint  flags = kStartTVNoFlags 
) [static]

returns true if the recording completed when exiting.

Definition at line 205 of file tv_play.cpp.

Referenced by internal_play_media(), main(), PlaybackBox::Play(), startTVInGuide(), and startTVNormal().

void TV::SetFuncPtr ( const char *  string,
void *  lptr 
) [static]

Import pointers to functions used to embed the TV window into other containers e.g.

playbackbox

Definition at line 475 of file tv_play.cpp.

Referenced by InitJumpPoints().

void TV::ChangeVolume ( PlayerContext ctx,
bool  up 
)

void TV::ToggleMute ( PlayerContext ctx,
const bool  muteIndividualChannels = false 
)

Definition at line 8142 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and GuideGrid::toggleMute().

void TV::SetNextProgPIPState ( PIPState  state  )  [inline]

Definition at line 281 of file tv_play.h.

bool TV::HasUDPNotifyEvent ( void   )  const

Definition at line 12101 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleUDPNotifyEvent ( void   ) 

Definition at line 12107 of file tv_play.cpp.

Referenced by timerEvent().

void TV::SaveChannelGroup ( void   ) 

save channel group setting to database

Definition at line 1262 of file tv_play.cpp.

Referenced by StartTV().

void TV::UpdateChannelList ( int  groupID  ) 

update the channel list with channels from the selected channel group

Definition at line 1273 of file tv_play.cpp.

Referenced by GuideGrid::~GuideGrid().

void TV::HandleOSDClosed ( int  osdType  )  [slot]

Definition at line 9056 of file tv_play.cpp.

Referenced by customEvent().

void TV::timerEvent ( QTimerEvent *  te  )  [slot]

Definition at line 2427 of file tv_play.cpp.

void TV::AddUDPNotifyEvent ( const QString &  name,
const UDPNotifyOSDSet set 
) [protected, slot]

Definition at line 12080 of file tv_play.cpp.

Referenced by InitUDPNotifyEvent().

void TV::ClearUDPNotifyEvents ( void   )  [protected, slot]

Definition at line 12089 of file tv_play.cpp.

Referenced by InitUDPNotifyEvent().

void TV::OSDDialogEvent ( int  result,
QString  text,
QString  action 
) [protected]

Definition at line 9867 of file tv_play.cpp.

Referenced by customEvent().

void TV::DoEditSchedule ( int  editType = kScheduleProgramGuide  )  [protected]

Definition at line 7847 of file tv_play.cpp.

Referenced by customEvent().

void TV::run ( void   )  [protected, virtual]

Definition at line 2389 of file tv_play.cpp.

void TV::TVEventThreadChecks ( void   )  [protected]

void TV::PauseAudioUntilBuffered ( PlayerContext ctx  )  [protected]

bool TV::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Definition at line 3335 of file tv_play.cpp.

void TV::SetActive ( PlayerContext lctx,
int  index,
bool  osd_msg 
) [private]

PlayerContext * TV::GetPlayerWriteLock ( int  which,
const char *  file,
int  location 
) [private]

Definition at line 12199 of file tv_play.cpp.

Referenced by customEvent(), HandlePxPTimerEvent(), run(), timerEvent(), and ~TV().

PlayerContext * TV::GetPlayerReadLock ( int  which,
const char *  file,
int  location 
) [private]

const PlayerContext * TV::GetPlayerReadLock ( int  which,
const char *  file,
int  location 
) const [private]

Definition at line 12229 of file tv_play.cpp.

PlayerContext * TV::GetPlayerHaveLock ( PlayerContext locked_context,
int  which,
const char *  file,
int  location 
) [private]

Definition at line 12245 of file tv_play.cpp.

const PlayerContext * TV::GetPlayerHaveLock ( const PlayerContext locked_context,
int  which,
const char *  file,
int  location 
) const [private]

Definition at line 12262 of file tv_play.cpp.

void TV::ReturnPlayerLock ( PlayerContext *&  ctx  )  [private]

void TV::ReturnPlayerLock ( const PlayerContext *&  ctx  )  const [private]

Definition at line 12285 of file tv_play.cpp.

int TV::StartTimer ( int  interval,
int  line 
) [private]

void TV::KillTimer ( int  id  )  [private]

void TV::ForceNextStateNone ( PlayerContext ctx  )  [private]

void TV::ScheduleStateChange ( PlayerContext ctx  )  [private]

void TV::SetErrored ( PlayerContext ctx  )  [private]

Definition at line 3055 of file tv_play.cpp.

Referenced by HandleStateChange(), StartRecorder(), SwitchCards(), and timerEvent().

void TV::PrepToSwitchToRecordedProgram ( PlayerContext ctx,
const ProgramInfo p 
) [private]

Definition at line 3065 of file tv_play.cpp.

Referenced by customEvent(), and HandleJumpToProgramAction().

void TV::PrepareToExitPlayer ( PlayerContext ctx,
int  line,
bool  bookmark = true 
) const [private]

void TV::SetExitPlayer ( bool  set_it,
bool  wants_to 
) const [private]

void TV::SetUpdateOSDPosition ( bool  set_it  )  [private]

bool TV::PxPHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 4330 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ProcessKeypress().

bool TV::ToggleHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD 
) [private]

Definition at line 4275 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::FFRewHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 4238 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::ActivePostQHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD 
) [private]

Definition at line 4367 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::HandleJumpToProgramAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 11236 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

bool TV::RequestNextRecorder ( PlayerContext ctx,
bool  showDialogs 
) [private]

Definition at line 1377 of file tv_play.cpp.

Referenced by CreatePBP(), CreatePIP(), and LiveTV().

void TV::DeleteRecorder (  )  [private]

bool TV::StartRecorder ( PlayerContext ctx,
int  maxWait = -1 
) [private]

Starts recorder, must be called before StartPlayer().

Parameters:
maxWait How long to wait for RecorderBase to start recording.
Returns:
true when successful, false otherwise.

Definition at line 2245 of file tv_play.cpp.

Referenced by HandleStateChange(), and SwitchCards().

void TV::StopStuff ( PlayerContext mctx,
PlayerContext ctx,
bool  stopRingbuffers,
bool  stopPlayers,
bool  stopRecorders 
) [private]

Can shut down the ringbuffers, the players, and in LiveTV it can shut down the recorders.

The player needs to be partially shutdown before the recorder, and partially shutdown after the recorder. Hence these are shutdown from within the same method. Also, shutting down things in the right order avoids spewing error messages...

Parameters:
stopRingBuffer Set to true if ringbuffer must be shut down.
stopPlayer Set to true if player must be shut down.
stopRecorder Set to true if recorder must be shut down.

Definition at line 2297 of file tv_play.cpp.

Referenced by customEvent(), HandleStateChange(), and SwitchCards().

void TV::ToggleChannelFavorite ( PlayerContext ctx,
QString  changroup_name 
) [private]

Definition at line 6520 of file tv_play.cpp.

void TV::ChangeChannel ( PlayerContext ctx,
int  direction 
) [private]

Definition at line 6750 of file tv_play.cpp.

void TV::ChangeChannel ( PlayerContext ctx,
uint  chanid,
const QString &  channum 
) [private]

Definition at line 6816 of file tv_play.cpp.

void TV::PauseLiveTV ( PlayerContext ctx  )  [private]

Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to temporarily stop video output.

Definition at line 11472 of file tv_play.cpp.

Referenced by ActiveHandleAction(), ChangeChannel(), and ToggleInputs().

void TV::UnpauseLiveTV ( PlayerContext ctx  )  [private]

Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to restart video output.

Definition at line 11513 of file tv_play.cpp.

Referenced by ActiveHandleAction(), ChangeChannel(), SwitchCards(), and ToggleInputs().

void TV::ShowPreviousChannel ( PlayerContext ctx  )  [private]

Definition at line 6951 of file tv_play.cpp.

Referenced by PopPreviousChannel().

void TV::PopPreviousChannel ( PlayerContext ctx,
bool  immediate_change 
) [private]

Definition at line 6964 of file tv_play.cpp.

Referenced by ActivePostQHandleAction(), and OSDDialogEvent().

void TV::ToggleAspectOverride ( PlayerContext ctx,
AspectOverrideMode  aspectMode = kAspect_Toggle 
) [private]

Definition at line 8334 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ToggleAdjustFill ( PlayerContext ctx,
AdjustFillMode  adjustfillMode = kAdjustFill_Toggle 
) [private]

Definition at line 8349 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::SetSpeedChangeTimer ( uint  when,
int  line 
) [private]

void TV::HandleEndOfPlaybackTimerEvent ( void   )  [private]

Definition at line 3124 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleIsNearEndWhenEmbeddingTimerEvent ( void   )  [private]

Definition at line 3165 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleEndOfRecordingExitPromptTimerEvent ( void   )  [private]

Definition at line 3186 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleVideoExitDialogTimerEvent ( void   )  [private]

Definition at line 3222 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandlePseudoLiveTVTimerEvent ( void   )  [private]

Definition at line 3252 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleSpeedChangeTimerEvent ( void   )  [private]

Definition at line 3303 of file tv_play.cpp.

Referenced by timerEvent().

void TV::AddKeyToInputQueue ( PlayerContext ctx,
char  key 
) [private]

void TV::ClearInputQueues ( const PlayerContext ctx,
bool  hideosd 
) [private]

Clear channel key buffer of input keys.

Parameters:
hideosd if true, hides "channel_number" OSDSet.

Definition at line 6568 of file tv_play.cpp.

Referenced by ActiveHandleAction(), ChangeChannel(), ClearOSD(), CommitQueuedInput(), DoArbSeek(), HandleTrackAction(), run(), and timerEvent().

bool TV::CommitQueuedInput ( PlayerContext ctx  )  [private]

bool TV::ProcessSmartChannel ( const PlayerContext ctx,
QString &  inputStr 
) [private]

Definition at line 6631 of file tv_play.cpp.

Referenced by AddKeyToInputQueue().

bool TV::HasQueuedInput ( void   )  const [inline, private]

bool TV::HasQueuedChannel ( void   )  const [inline, private]

Definition at line 397 of file tv_play.h.

Referenced by ClearOSD(), and timerEvent().

QString TV::GetQueuedInput ( void   )  const [private]

Definition at line 6526 of file tv_play.cpp.

Referenced by AddKeyToInputQueue(), and CommitQueuedInput().

int TV::GetQueuedInputAsInt ( bool ok = NULL,
int  base = 10 
) const [private]

Definition at line 6534 of file tv_play.cpp.

Referenced by DoArbSeek(), and HandleTrackAction().

QString TV::GetQueuedChanNum ( void   )  const [private]

Definition at line 6540 of file tv_play.cpp.

Referenced by CommitQueuedInput(), and ProcessSmartChannel().

uint TV::GetQueuedChanID ( void   )  const [inline, private]

Definition at line 404 of file tv_play.h.

Referenced by CommitQueuedInput().

void TV::SwitchSource ( PlayerContext ctx,
uint  source_direction 
) [private]

Definition at line 6208 of file tv_play.cpp.

Referenced by ActivePostQHandleAction().

void TV::SwitchInputs ( PlayerContext ctx,
uint  inputid 
) [private]

Definition at line 6287 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ToggleInputs ( PlayerContext ctx,
uint  inputid = 0 
) [private]

Definition at line 6465 of file tv_play.cpp.

Referenced by ActivePostQHandleAction(), SwitchInputs(), and ToggleHandleAction().

void TV::SwitchCards ( PlayerContext ctx,
uint  chanid = 0,
QString  channum = "",
uint  inputid = 0 
) [private]

Definition at line 6306 of file tv_play.cpp.

Referenced by ActivePostQHandleAction(), ChangeChannel(), and SwitchInputs().

void TV::ToggleSleepTimer ( const PlayerContext ctx  )  [private]

Definition at line 8177 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ToggleSleepTimer ( const PlayerContext ctx,
const QString &  time 
) [private]

Definition at line 11358 of file tv_play.cpp.

void TV::DoPlay ( PlayerContext ctx  )  [private]

Definition at line 5551 of file tv_play.cpp.

Referenced by ActiveHandleAction().

float TV::DoTogglePauseStart ( PlayerContext ctx  )  [private]

Definition at line 5584 of file tv_play.cpp.

Referenced by DoSetPauseState(), and DoTogglePause().

void TV::DoTogglePauseFinish ( PlayerContext ctx,
float  time,
bool  showOSD 
) [private]

Definition at line 5623 of file tv_play.cpp.

Referenced by DoSetPauseState(), and DoTogglePause().

void TV::DoTogglePause ( PlayerContext ctx,
bool  showOSD 
) [private]

vector< bool > TV::DoSetPauseState ( PlayerContext lctx,
const vector< bool > &  pause 
) [private]

Definition at line 7825 of file tv_play.cpp.

Referenced by customEvent(), and DoEditSchedule().

bool TV::SeekHandleAction ( PlayerContext actx,
const QStringList &  actions,
const bool  isDVD 
) [private]

Definition at line 5709 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::DoSeek ( PlayerContext ctx,
float  time,
const QString &  mesg 
) [private]

bool TV::DoPlayerSeek ( PlayerContext ctx,
float  time 
) [private]

void TV::DoArbSeek ( PlayerContext ctx,
ArbSeekWhence  whence 
) [private]

Definition at line 5785 of file tv_play.cpp.

Referenced by ActiveHandleAction(), CommitQueuedInput(), and SeekHandleAction().

void TV::NormalSpeed ( PlayerContext ctx  )  [private]

void TV::ChangeSpeed ( PlayerContext ctx,
int  direction 
) [private]

Definition at line 5833 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and ProcessNetworkControlCommand().

void TV::ToggleTimeStretch ( PlayerContext ctx  )  [private]

Definition at line 8004 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ChangeTimeStretch ( PlayerContext ctx,
int  dir,
bool  allowEdit = true 
) [private]

bool TV::TimeStretchHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 3840 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::ToggleUpmix ( PlayerContext ctx  )  [private]

Definition at line 8072 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ChangeAudioSync ( PlayerContext ctx,
int  dir,
bool  allowEdit = true 
) [private]

Definition at line 8087 of file tv_play.cpp.

Referenced by AudioSyncHandleAction(), OSDDialogEvent(), and ToggleHandleAction().

bool TV::AudioSyncHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 3864 of file tv_play.cpp.

Referenced by ProcessKeypress().

float TV::StopFFRew ( PlayerContext ctx  )  [private]

void TV::ChangeFFRew ( PlayerContext ctx,
int  direction 
) [private]

Definition at line 5906 of file tv_play.cpp.

Referenced by SeekHandleAction().

void TV::SetFFRew ( PlayerContext ctx,
int  index 
) [private]

Definition at line 5940 of file tv_play.cpp.

Referenced by ChangeFFRew(), FFRewHandleAction(), and ProcessNetworkControlCommand().

int TV::GetNumChapters ( const PlayerContext ctx  )  const [private]

Definition at line 6027 of file tv_play.cpp.

Referenced by ActiveHandleAction(), ActivePostQHandleAction(), and FillOSDMenuNavigate().

void TV::GetChapterTimes ( const PlayerContext ctx,
QList< long long > &  times 
) const [private]

Definition at line 6037 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

int TV::GetCurrentChapter ( const PlayerContext ctx  )  const [private]

Definition at line 6045 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

int TV::GetNumTitles ( const PlayerContext ctx  )  const [private]

Definition at line 6074 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

int TV::GetCurrentTitle ( const PlayerContext ctx  )  const [private]

Definition at line 6084 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

int TV::GetTitleDuration ( const PlayerContext ctx,
int  title 
) const [private]

Definition at line 6124 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

QString TV::GetTitleName ( const PlayerContext ctx,
int  title 
) const [private]

Definition at line 6135 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

void TV::DoSwitchTitle ( PlayerContext ctx,
int  title 
) [private]

Definition at line 6145 of file tv_play.cpp.

Referenced by OSDDialogEvent().

int TV::GetNumAngles ( const PlayerContext ctx  )  const [private]

Definition at line 6094 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

int TV::GetCurrentAngle ( const PlayerContext ctx  )  const [private]

Definition at line 6104 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

QString TV::GetAngleName ( const PlayerContext ctx,
int  angle 
) const [private]

Definition at line 6114 of file tv_play.cpp.

Referenced by FillOSDMenuNavigate().

void TV::DoSwitchAngle ( PlayerContext ctx,
int  angle 
) [private]

Definition at line 6166 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::DoJumpChapter ( PlayerContext ctx,
int  direction 
) [private]

Definition at line 6055 of file tv_play.cpp.

Referenced by ActiveHandleAction(), ActivePostQHandleAction(), and OSDDialogEvent().

void TV::DoSkipCommercials ( PlayerContext ctx,
int  direction 
) [private]

Definition at line 6185 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::DoQueueTranscode ( PlayerContext ctx,
QString  profile 
) [private]

Definition at line 5977 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

void TV::SetAutoCommercialSkip ( const PlayerContext ctx,
CommSkipMode  skipMode = kCommSkipOff 
) [private]

Definition at line 11206 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

void TV::SetManualZoom ( const PlayerContext ctx,
bool  enabled,
QString  msg 
) [private]

Definition at line 11223 of file tv_play.cpp.

Referenced by ManualZoomHandleAction(), and OSDDialogEvent().

bool TV::ManualZoomHandleAction ( PlayerContext actx,
const QStringList &  actions 
) [private]

Definition at line 3755 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::ClearOSD ( const PlayerContext ctx  )  [private]

void TV::ToggleOSD ( const PlayerContext ctx,
bool  includeStatusOSD 
) [private]

Cycle through the available Info OSDs.

Definition at line 7032 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::UpdateOSDProgInfo ( const PlayerContext ctx,
const char *  whichInfo 
) [private]

Update and display the passed OSD set with programinfo.

Definition at line 7106 of file tv_play.cpp.

Referenced by ToggleOSD(), and UnpauseLiveTV().

void TV::UpdateOSDStatus ( const PlayerContext ctx,
QString  title,
QString  desc,
QString  value,
int  type,
QString  units,
int  position = 0,
int  prev = 0,
int  next = 0,
enum OSDTimeout  timeout = kOSDTimeout_Med 
) [private]

void TV::UpdateOSDStatus ( const PlayerContext ctx,
osdInfo info,
int  type,
enum OSDTimeout  timeout 
) [private]

Definition at line 7121 of file tv_play.cpp.

void TV::UpdateOSDSeekMessage ( const PlayerContext ctx,
const QString &  mesg,
enum OSDTimeout  timeout 
) [private]

void TV::UpdateOSDInput ( const PlayerContext ctx,
QString  inputname = QString::null 
) [private]

Definition at line 7167 of file tv_play.cpp.

Referenced by ChangeChannel(), HandleStateChange(), SwitchCards(), and ToggleInputs().

void TV::UpdateOSDSignal ( const PlayerContext ctx,
const QStringList &  strlist 
) [private]

Updates Signal portion of OSD.

..

Definition at line 7188 of file tv_play.cpp.

Referenced by customEvent(), and timerEvent().

void TV::UpdateOSDTimeoutMessage ( PlayerContext ctx  )  [private]

Definition at line 7345 of file tv_play.cpp.

Referenced by timerEvent().

void TV::UpdateOSDAskAllowDialog ( PlayerContext  )  [private]

void TV::EditSchedule ( const PlayerContext ctx,
int  editType = kScheduleProgramGuide 
) [private]

void TV::TeardownPlayer ( PlayerContext mctx,
PlayerContext ctx 
) [private]

Definition at line 2349 of file tv_play.cpp.

Referenced by run(), and timerEvent().

void TV::HandleStateChange ( PlayerContext mctx,
PlayerContext ctx 
) [private]

Changes the state to the state on the front of the state change queue.

Note: There must exist a state transition from any state we can enter to the kState_None state, as this is used to shutdown TV in RunTV.

Definition at line 1893 of file tv_play.cpp.

Referenced by run(), and timerEvent().

bool TV::StartPlayer ( PlayerContext mctx,
PlayerContext ctx,
TVState  desiredState 
) [private]

Definition at line 4968 of file tv_play.cpp.

Referenced by HandleStateChange(), and RestartAllPlayers().

vector< long long > TV::TeardownAllPlayers ( PlayerContext lctx  )  [private]

Teardown all Player's in preparation for PxP Swap or change from PIP -> PBP or PBP -> PIP.

Definition at line 5340 of file tv_play.cpp.

Referenced by PxPSwap(), PxPToggleType(), and RestartMainPlayer().

void TV::RestartAllPlayers ( PlayerContext lctx,
const vector< long long > &  pos,
MuteState  mctx_mute 
) [private]

Recreate Main and PIP windows.

Could be either PIP or PBP views.

Definition at line 5405 of file tv_play.cpp.

Referenced by PxPSwap(), PxPToggleType(), and RestartMainPlayer().

void TV::RestartMainPlayer ( PlayerContext mctx  )  [private]

Definition at line 5521 of file tv_play.cpp.

Referenced by timerEvent().

void TV::PxPToggleView ( PlayerContext actx,
bool  wantPBP 
) [private]

start/stop PIP/PBP

Definition at line 5089 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

void TV::PxPCreateView ( PlayerContext actx,
bool  wantPBP 
) [private]

start PIP/PBP

Definition at line 5105 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent(), and PxPToggleView().

void TV::PxPTeardownView ( PlayerContext actx  )  [private]

stop PIP/PBP

Definition at line 5149 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and PxPToggleView().

void TV::PxPToggleType ( PlayerContext mctx,
bool  wantPBP 
) [private]

Change PIP View from PIP to PBP and visa versa.

Definition at line 5185 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

void TV::PxPSwap ( PlayerContext mctx,
PlayerContext pipctx 
) [private]

Definition at line 5475 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

bool TV::HandlePxPTimerEvent ( void   )  [private]

Definition at line 2937 of file tv_play.cpp.

Referenced by timerEvent().

bool TV::PIPAddPlayer ( PlayerContext mctx,
PlayerContext ctx 
) [private]

Maps Player of software scaled PIP to the main player.

Definition at line 5026 of file tv_play.cpp.

Referenced by StartPlayer(), and SwitchCards().

bool TV::PIPRemovePlayer ( PlayerContext mctx,
PlayerContext ctx 
) [private]

Unmaps Player of software scaled PIP from the main player.

Definition at line 5071 of file tv_play.cpp.

Referenced by SwitchCards(), and TeardownPlayer().

void TV::PBPRestartMainPlayer ( PlayerContext mctx  )  [private]

tear down remaining PBP video and restore fullscreen display

Definition at line 5364 of file tv_play.cpp.

Referenced by TeardownPlayer().

void TV::ToggleAutoExpire ( PlayerContext ctx  )  [private]

Definition at line 11183 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::BrowseStart ( PlayerContext ctx  )  [private]

Begins channel browsing.

Definition at line 8777 of file tv_play.cpp.

Referenced by BrowseDispInfo(), OSDDialogEvent(), and ToggleHandleAction().

void TV::BrowseEnd ( PlayerContext ctx,
bool  change_channel 
) [private]

Ends channel browsing.

Changing the channel if change is true.

Parameters:
change_channel iff true we call ChangeChannel()

Definition at line 8821 of file tv_play.cpp.

Referenced by BrowseHandleAction(), ShowOSDAskAllow(), and timerEvent().

void TV::BrowseDispInfo ( PlayerContext ctx,
BrowseDirection  direction 
) [private]

Fetches browse info from backend and sends it to the OSD.

Parameters:
direction BrowseDirection to get information on.

Definition at line 8847 of file tv_play.cpp.

Referenced by ActivePostQHandleAction(), BrowseChannel(), BrowseHandleAction(), and BrowseStart().

void TV::BrowseChannel ( PlayerContext ctx,
const QString &  channum 
) [private]

Definition at line 9042 of file tv_play.cpp.

Referenced by CommitQueuedInput().

bool TV::BrowseHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 3694 of file tv_play.cpp.

Referenced by ProcessKeypress().

uint TV::BrowseAllGetChanId ( const QString &  chan  )  const [private]

Definition at line 8950 of file tv_play.cpp.

Referenced by BrowseChannel(), and GetNextProgram().

void TV::ToggleRecord ( PlayerContext ctx  )  [private]

Definition at line 8962 of file tv_play.cpp.

Referenced by BrowseHandleAction(), and ToggleHandleAction().

void TV::DoTogglePictureAttribute ( const PlayerContext ctx,
PictureAdjustType  type 
) [private]

Definition at line 9109 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::DoChangePictureAttribute ( PlayerContext ctx,
PictureAdjustType  type,
PictureAttribute  attr,
bool  up 
) [private]

Definition at line 9158 of file tv_play.cpp.

Referenced by PictureAttributeHandleAction().

bool TV::PictureAttributeHandleAction ( PlayerContext ctx,
const QStringList &  actions 
) [private]

Definition at line 3817 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::StartChannelEditMode ( PlayerContext ctx  )  [private]

Starts channel editing mode.

Definition at line 9484 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

bool TV::HandleOSDChannelEdit ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 9534 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ChannelEditAutoFill ( const PlayerContext ctx,
InfoMap infoMap 
) const [private]

Automatically fills in as much information as possible.

Definition at line 9570 of file tv_play.cpp.

Referenced by HandleOSDChannelEdit(), RunLoadDDMap(), and StartChannelEditMode().

void TV::ChannelEditAutoFill ( const PlayerContext ctx,
InfoMap infoMap,
const QMap< QString, bool > &  changed 
) const [private]

Automatically fills in as much information as possible.

Definition at line 9579 of file tv_play.cpp.

void TV::ChannelEditXDSFill ( const PlayerContext ctx,
InfoMap infoMap 
) const [private]

Definition at line 9617 of file tv_play.cpp.

Referenced by ChannelEditAutoFill().

void TV::ChannelEditDDFill ( InfoMap infoMap,
const QMap< QString, bool > &  changed,
bool  check_unchanged 
) const [private]

Definition at line 9653 of file tv_play.cpp.

Referenced by ChannelEditAutoFill().

QString TV::GetDataDirect ( QString  key,
QString  value,
QString  field,
bool  allow_partial = false 
) const [private]

Definition at line 9713 of file tv_play.cpp.

Referenced by ChannelEditDDFill().

bool TV::LoadDDMap ( uint  sourceid  )  [private]

Definition at line 9814 of file tv_play.cpp.

Referenced by RunLoadDDMap().

void TV::RunLoadDDMap ( uint  sourceid  )  [private]

Definition at line 9776 of file tv_play.cpp.

Referenced by load_dd_map_thunk().

void * TV::load_dd_map_thunk ( void *  param  )  [static, private]

Definition at line 9465 of file tv_play.cpp.

Referenced by StartChannelEditMode().

void * TV::load_dd_map_post_thunk ( void *  param  )  [static, private]

Definition at line 9473 of file tv_play.cpp.

Referenced by ~TV().

bool TV::DialogIsVisible ( PlayerContext ctx,
const QString &  dialog 
) [private]

void TV::HandleOSDInfo ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 10171 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDAskAllow ( PlayerContext ctx  )  [private]

Definition at line 1465 of file tv_play.cpp.

Referenced by AskAllowRecording().

void TV::HandleOSDAskAllow ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 1695 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDCutpoint ( PlayerContext ctx,
const QString &  type 
) [private]

Definition at line 9232 of file tv_play.cpp.

Referenced by HandleOSDCutpoint(), and ProcessKeypress().

bool TV::HandleOSDCutpoint ( PlayerContext ctx,
QString  action,
long long  frame 
) [private]

Definition at line 9353 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::StartProgramEditMode ( PlayerContext ctx  )  [private]

Starts Program Cut Map Editing mode.

Definition at line 9388 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ShowOSDAlreadyEditing ( PlayerContext ctx  )  [private]

Definition at line 9406 of file tv_play.cpp.

Referenced by StartProgramEditMode().

void TV::HandleOSDAlreadyEditing ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 9423 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDSleep ( void   )  [private]

Definition at line 8205 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleOSDSleep ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 8230 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::SleepDialogTimeout ( void   )  [private]

Definition at line 8252 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ShowOSDIdle ( void   )  [private]

After idleTimer has expired, display a dialogue warning the user that we will exit LiveTV unless they take action. We change idleTimer, to 45 seconds and when it expires for a second time we quit the player. If the user so decides, they may hit ok and we reset the timer back to the default expiry period.

Definition at line 8271 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleOSDIdle ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 8295 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::IdleDialogTimeout ( void   )  [private]

Definition at line 8319 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ShowOSDStopWatchingRecording ( PlayerContext ctx  )  [private]

Definition at line 11741 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::ShowOSDPromptDeleteRecording ( PlayerContext ctx,
QString  title,
bool  force = false 
) [private]

bool TV::HandleOSDVideoExit ( PlayerContext ctx,
QString  action 
) [private]

Definition at line 11908 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDMenu ( const PlayerContext ctx,
const QString  category = "",
const QString  selected = "" 
) [private]

Definition at line 10182 of file tv_play.cpp.

Referenced by ActiveHandleAction(), OSDDialogEvent(), and ToggleHandleAction().

void TV::FillOSDMenuAudio ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10211 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuVideo ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10258 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuSubtitles ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10399 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuNavigate ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10555 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuJobs ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10849 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuPlayback ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10911 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuSchedule ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 11043 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuSource ( const PlayerContext ctx,
OSD osd,
QString  category,
const QString  selected,
QString &  currenttext,
QString &  backaction 
) [private]

Definition at line 10700 of file tv_play.cpp.

Referenced by ShowOSDMenu().

void TV::FillOSDMenuJumpRec ( PlayerContext ctx,
const QString  category = "",
int  level = 0,
const QString  selected = "" 
) [private]

Definition at line 11064 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and timerEvent().

void TV::UpdateLCD ( void   )  [private]

Definition at line 7405 of file tv_play.cpp.

Referenced by HandleStateChange(), and UnpauseLiveTV().

bool TV::HandleLCDTimerEvent ( void   )  [private]

Definition at line 2989 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ShowLCDChannelInfo ( const PlayerContext ctx  )  [private]

Definition at line 7414 of file tv_play.cpp.

Referenced by HandleLCDTimerEvent().

void TV::ShowLCDDVDInfo ( const PlayerContext ctx  )  [private]

Definition at line 7451 of file tv_play.cpp.

Referenced by HandleLCDTimerEvent().

void TV::ITVRestart ( PlayerContext ctx,
bool  isLive 
) [private]

Restart the MHEG/MHP engine.

Definition at line 11544 of file tv_play.cpp.

Referenced by HandleStateChange(), SwitchCards(), and UnpauseLiveTV().

bool TV::ScreenShot ( PlayerContext ctx,
long long  frameNumber 
) [private]

Definition at line 11569 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::DVDJumpBack ( PlayerContext ctx  )  [private]

Definition at line 11613 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and ActivePostQHandleAction().

void TV::DVDJumpForward ( PlayerContext ctx  )  [private]

Definition at line 11653 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and ActivePostQHandleAction().

bool TV::DVDMenuHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD,
bool  isDVDStill 
) [private]

Definition at line 3892 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::SetLastProgram ( const ProgramInfo rcinfo  )  [private]

ProgramInfo * TV::GetLastProgram ( void   )  const [private]

Definition at line 11969 of file tv_play.cpp.

Referenced by FillOSDMenuJumpRec(), and StartTV().

static bool TV::LoadExternalSubtitles ( MythPlayer player,
const QString &  videoFile 
) [static, private]

static QStringList TV::GetValidRecorderList ( uint  chanid  )  [static, private]

static QStringList TV::GetValidRecorderList ( const QString &  channum  )  [static, private]

TV::GetValidRecorderList ( uint  ,
const QString &   
) [static, private]

Returns list of the recorders that have chanid or channum in their sources.

Parameters:
chanid Channel ID of channel we are querying recorders for.
channum Channel "number" we are querying recorders for.
Returns:
List of cardid's for recorders with channel.