MythTV  0.28pre
Classes | Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
TV Class Reference

Control TV playback TVPlaybackAborted(void) More...

#include <tv_play.h>

Inheritance diagram for TV:
Inheritance graph
[legend]
Collaboration diagram for TV:
Collaboration graph
[legend]

Classes

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

Public Slots

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

Public Member Functions

bool event (QEvent *e)
 This handles all standard events. More...
 
bool eventFilter (QObject *o, QEvent *e)
 This selectively blocks KeyPress and Resize events. More...
 
bool IsSameProgram (int player_idx, const ProgramInfo *p) const
 true iff program is the same as the one in the selected player More...
 
void FinishRecording (int player_idx)
 Finishes player's recording. More...
 

Static Public Member Functions

static bool IsTVRunning (void)
 
static TVCurrentTVInstance (void)
 
static bool StartTV (ProgramInfo *tvrec, uint flags, const ChannelInfoList &selection=ChannelInfoList())
 returns true if the recording completed when exiting. More...
 
static bool IsPaused (void)
 Returns true if a TV playback is currently going; otherwise returns false. More...
 
static void InitKeys (void)
 
static void ReloadKeys (void)
 
static void SetFuncPtr (const char *, void *)
 Import pointers to functions used to embed the TV window into other containers e.g. More...
 
static int ConfiguredTunerCards (void)
 
static bool IsTunable (uint chanid)
 

Static Public Attributes

static const int kInitFFRWSpeed = 0
 1x, default to normal speed More...
 
static const uint kInputKeysMax = 6
 When to start discarding early keys. More...
 
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. More...
 
static const uint kInputModeTimeout = 5000
 
static const uint kLCDTimeout = 1000
 Timeout for updating LCD info in msec. More...
 
static const uint kBrowseTimeout = 30000
 Timeout for browse mode exit in msec. More...
 
static const uint kKeyRepeatTimeout = 300
 Seek key repeat timeout in msec. More...
 
static const uint kPrevChanTimeout = 750
 How long to wait before applying all previous channel keypresses in msec. More...
 
static const uint kSleepTimerDialogTimeout = 45000
 How long to display sleep timer dialog in msec. More...
 
static const uint kIdleTimerDialogTimeout = 45000
 How long to display idle timer dialog in seconds. More...
 
static const uint kVideoExitDialogTimeout = 120000
 How long to display idle timer dialog in msec. More...
 
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
 
static const uint kSaveLastPlayPosTimeout = 30000
 

Protected Member Functions

void customEvent (QEvent *e)
 This handles all custom events. More...
 

Static Protected Attributes

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

Private Types

enum  BookmarkAction { kBookmarkAlways, kBookmarkNever, kBookmarkAuto }
 
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

 TV ()
 
 ~TV ()
 
bool Init (bool createWindow=true)
 Performs instance initialization, returns true on success. More...
 
void InitFromDB (void)
 
bool LiveTV (bool showDialogs, const ChannelInfoList &selection)
 Starts LiveTV. More...
 
int Playback (const ProgramInfo &rcinfo)
 
void PlaybackLoop (void)
 The main playback loop. More...
 
bool ProcessKeypress (PlayerContext *, QKeyEvent *e)
 
void ProcessNetworkControlCommand (PlayerContext *, const QString &command)
 
bool HandleTrackAction (PlayerContext *, const QString &action)
 
bool ActiveHandleAction (PlayerContext *, const QStringList &actions, bool isDVD, bool isDVDStillFrame)
 
bool BrowseHandleAction (PlayerContext *, const QStringList &actions)
 
void OSDDialogEvent (int result, QString text, QString action)
 
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 HandleJumpToProgramAction (PlayerContext *ctx, const QStringList &actions)
 
bool SeekHandleAction (PlayerContext *actx, const QStringList &actions, const bool isDVD)
 
bool TimeStretchHandleAction (PlayerContext *, const QStringList &actions)
 
bool DiscMenuHandleAction (PlayerContext *, const QStringList &actions)
 
bool Handle3D (PlayerContext *ctx, const QString &action)
 
int StartTimer (int interval, int line)
 
void KillTimer (int id)
 
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 ToggleSleepTimer (const PlayerContext *)
 
void ToggleSleepTimer (const PlayerContext *, const QString &time)
 
bool HandlePxPTimerEvent (void)
 
bool HandleLCDTimerEvent (void)
 
void HandleLCDVolumeTimerEvent (void)
 
void HandleSaveLastPlayPosEvent ()
 
void EditSchedule (const PlayerContext *, int editType=kScheduleProgramGuide)
 
bool StartEmbedding (const QRect &)
 
void StopEmbedding (void)
 
bool IsTunable (const PlayerContext *, uint chanid, bool use_cache=false)
 
QSet< uintIsTunableOn (const PlayerContext *, uint chanid, bool use_cache, bool early_exit)
 
void ClearTunableCache (void)
 
void ChangeChannel (const PlayerContext *, const ChannelInfoList &options)
 
void DrawUnusedRects (void)
 
void DoEditSchedule (int editType=kScheduleProgramGuide)
 
QString GetRecordingGroup (int player_idx) const
 
void ChangeVolume (PlayerContext *, bool up, int newvolume=-1)
 
void ToggleMute (PlayerContext *, const bool muteIndividualChannels=false)
 
void UpdateChannelList (int groupID)
 update the channel list with channels from the selected channel group More...
 
OSDGetOSDL (const char *, int)
 
OSDGetOSDL (const PlayerContext *, const char *, int)
 
void ReturnOSDLock (const PlayerContext *, OSD *&)
 
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
 
void ToggleAutoExpire (PlayerContext *)
 
void QuickRecord (PlayerContext *)
 
TVState GetState (int player_idx) const
 get tv state of active player context More...
 
TVState GetState (const PlayerContext *) const
 get tv state of active player context More...
 
void HandleStateChange (PlayerContext *mctx, PlayerContext *ctx)
 Changes the state to the state on the front of the state change queue. More...
 
void GetStatus (void)
 
void ForceNextStateNone (PlayerContext *)
 
void ScheduleStateChange (PlayerContext *)
 
void SetErrored (PlayerContext *)
 
void setInPlayList (bool setting)
 
void setUnderNetworkControl (bool setting)
 
void PrepToSwitchToRecordedProgram (PlayerContext *, const ProgramInfo &)
 
void PrepareToExitPlayer (PlayerContext *, int line, BookmarkAction bookmark=kBookmarkAuto)
 
void SetExitPlayer (bool set_it, bool wants_to)
 
bool RequestNextRecorder (PlayerContext *, bool, const ChannelInfoList &sel=ChannelInfoList())
 
void DeleteRecorder ()
 
bool StartRecorder (PlayerContext *ctx, int maxWait=-1)
 Starts recorder, must be called before StartPlayer(). More...
 
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. More...
 
void TeardownPlayer (PlayerContext *mctx, PlayerContext *ctx)
 
bool StartPlayer (PlayerContext *mctx, PlayerContext *ctx, TVState desiredState)
 
vector< long longTeardownAllPlayers (PlayerContext *)
 Teardown all Player's in preparation for PxP Swap or change from PIP -> PBP or PBP -> PIP. More...
 
void RestartAllPlayers (PlayerContext *lctx, const vector< long long > &pos, MuteState mctx_mute)
 Recreate Main and PIP windows. More...
 
void RestartMainPlayer (PlayerContext *mctx)
 
bool IsSwitchingCards (void) const
 Returns true if we are currently in the process of switching recorders. More...
 
bool getAllowRerecord (void) const
 Returns true if the user told Mythtv to allow re-recording of the show. More...
 
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. More...
 
bool getJumpToProgram (void) const
 This is set if the user asked MythTV to jump to the previous recording in the playlist. More...
 
bool IsDeleteAllowed (const PlayerContext *) const
 
void ToggleChannelFavorite (PlayerContext *ctx)
 
void ToggleChannelFavorite (PlayerContext *, QString)
 
void ChangeChannel (PlayerContext *, ChannelChangeDirection direction)
 
void ChangeChannel (PlayerContext *, uint chanid, const QString &channum)
 
void ShowPreviousChannel (PlayerContext *)
 
void PopPreviousChannel (PlayerContext *, bool immediate_change)
 
void AddKeyToInputQueue (PlayerContext *, char key)
 
void ClearInputQueues (const PlayerContext *, bool hideosd)
 Clear channel key buffer of input keys. More...
 
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 PauseLiveTV (PlayerContext *)
 Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to temporarily stop video output. More...
 
void UnpauseLiveTV (PlayerContext *, bool bQuietly=false)
 Used in ChangeChannel(), ChangeChannel(), and ToggleInputs() to restart video output. More...
 
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 ContextIsPaused (PlayerContext *ctx, const char *file, int location)
 
void SetLastProgram (const ProgramInfo *rcinfo)
 
ProgramInfoGetLastProgram (void) const
 
void DoSeek (PlayerContext *, float time, const QString &mesg, bool timeIsOffset, bool honorCutlist)
 
bool DoPlayerSeek (PlayerContext *, float time)
 
bool DoPlayerSeekToFrame (PlayerContext *ctx, uint64_t target)
 
void DoSeekAbsolute (PlayerContext *ctx, long long seconds, bool honorCutlist)
 
void DoArbSeek (PlayerContext *, ArbSeekWhence whence, bool honorCutlist)
 
void DoJumpFFWD (PlayerContext *ctx)
 
void DoJumpRWND (PlayerContext *ctx)
 
void NormalSpeed (PlayerContext *)
 
void ChangeSpeed (PlayerContext *, int direction)
 
void ToggleTimeStretch (PlayerContext *)
 
void ChangeTimeStretch (PlayerContext *, int dir, bool allowEdit=true)
 
void DVDJumpBack (PlayerContext *)
 
void DVDJumpForward (PlayerContext *)
 
float StopFFRew (PlayerContext *)
 
void ChangeFFRew (PlayerContext *, int direction)
 
void SetFFRew (PlayerContext *, int index)
 
void EnableUpmix (PlayerContext *, bool enable, bool toggle=false)
 
void ChangeAudioSync (PlayerContext *, int dir, int newsync=-9999)
 
bool AudioSyncHandleAction (PlayerContext *, const QStringList &actions)
 
void PauseAudioUntilBuffered (PlayerContext *ctx)
 
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 chapter)
 
void DoSkipCommercials (PlayerContext *, int direction)
 
void SetAutoCommercialSkip (const PlayerContext *, CommSkipMode skipMode=kCommSkipOff)
 
void DoQueueTranscode (PlayerContext *, QString profile)
 
bool IsBookmarkAllowed (const PlayerContext *) const
 
void SetBookmark (PlayerContext *ctx, bool clear=false)
 
bool ClearOSD (const PlayerContext *)
 
void ToggleOSD (PlayerContext *, bool includeStatusOSD)
 Cycle through the available Info OSDs. More...
 
void ToggleOSDDebug (PlayerContext *)
 
void UpdateOSDDebug (const PlayerContext *ctx)
 
void UpdateOSDProgInfo (const PlayerContext *, const char *whichInfo)
 Update and display the passed OSD set with programinfo. More...
 
void UpdateOSDStatus (const PlayerContext *ctx, QString title, QString desc, QString value, int type, QString units, int position=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... More...
 
void UpdateOSDTimeoutMessage (PlayerContext *)
 
void UpdateOSDAskAllowDialog (PlayerContext *)
 
void SetUpdateOSDPosition (bool set_it)
 
bool SubtitleZoomHandleAction (PlayerContext *ctx, const QStringList &actions)
 
void ChangeSubtitleZoom (PlayerContext *ctx, int dir)
 
bool SubtitleDelayHandleAction (PlayerContext *ctx, const QStringList &actions)
 
void ChangeSubtitleDelay (PlayerContext *ctx, int dir)
 
bool CreatePBP (PlayerContext *lctx, const ProgramInfo *info)
 Setup Picture by Picture. More...
 
bool CreatePIP (PlayerContext *lctx, const ProgramInfo *info)
 create PIP. More...
 
bool ResizePIPWindow (PlayerContext *)
 resize PIP Window. More...
 
bool IsPBPSupported (const PlayerContext *ctx=NULL) const
 
bool IsPIPSupported (const PlayerContext *ctx=NULL) const
 
void PxPToggleView (PlayerContext *actx, bool wantPBP)
 start/stop PIP/PBP More...
 
void PxPCreateView (PlayerContext *actx, bool wantPBP)
 start PIP/PBP More...
 
void PxPTeardownView (PlayerContext *actx)
 stop PIP/PBP More...
 
void PxPToggleType (PlayerContext *mctx, bool wantPBP)
 Change PIP View from PIP to PBP and visa versa. More...
 
void PxPSwap (PlayerContext *mctx, PlayerContext *pipctx)
 
bool PIPAddPlayer (PlayerContext *mctx, PlayerContext *ctx)
 Maps Player of software scaled PIP to the main player. More...
 
bool PIPRemovePlayer (PlayerContext *mctx, PlayerContext *ctx)
 Unmaps Player of software scaled PIP from the main player. More...
 
void PBPRestartMainPlayer (PlayerContext *mctx)
 tear down remaining PBP video and restore fullscreen display More...
 
void SetActive (PlayerContext *lctx, int index, bool osd_msg)
 
void ToggleAspectOverride (PlayerContext *, AspectOverrideMode aspectMode=kAspect_Toggle)
 
void ToggleAdjustFill (PlayerContext *, AdjustFillMode adjustfillMode=kAdjustFill_Toggle)
 
void DoToggleStudioLevels (const PlayerContext *ctx)
 
void DoToggleNightMode (const PlayerContext *)
 
void DoTogglePictureAttribute (const PlayerContext *, PictureAdjustType type)
 
void DoChangePictureAttribute (PlayerContext *, PictureAdjustType type, PictureAttribute attr, bool up, int newvalue=-1)
 
bool PictureAttributeHandleAction (PlayerContext *, const QStringList &actions)
 
void HandleDeinterlacer (PlayerContext *ctx, const QString &action)
 
void ITVRestart (PlayerContext *, bool isLive)
 Restart the MHEG/MHP engine. More...
 
void EnableVisualisation (const PlayerContext *, bool enable, bool toggle=false, const QString &action=QString(""))
 
void SetManualZoom (const PlayerContext *, bool enabled, QString msg)
 
bool ManualZoomHandleAction (PlayerContext *actx, const QStringList &actions)
 
void StartChannelEditMode (PlayerContext *)
 Starts channel editing mode. More...
 
bool HandleOSDChannelEdit (PlayerContext *, QString action)
 
void ChannelEditAutoFill (const PlayerContext *, InfoMap &) const
 Automatically fills in as much information as possible. More...
 
void ChannelEditAutoFill (const PlayerContext *, InfoMap &, const QMap< QString, bool > &) const
 Automatically fills in as much information as possible. More...
 
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 ShowNoRecorderDialog (const PlayerContext *, NoRecorderMsg msgType=kNoRecorders)
 
void ShowOSDAskAllow (PlayerContext *ctx)
 
void HandleOSDAskAllow (PlayerContext *ctx, QString action)
 
void AskAllowRecording (PlayerContext *, const QStringList &, int, bool, bool)
 
void ShowOSDCutpoint (PlayerContext *ctx, const QString &type)
 
bool HandleOSDCutpoint (PlayerContext *ctx, QString action)
 
void StartProgramEditMode (PlayerContext *)
 Starts Program Cut Map Editing mode. More...
 
void ShowOSDAlreadyEditing (PlayerContext *ctx)
 
void HandleOSDAlreadyEditing (PlayerContext *ctx, QString action, bool was_paused)
 
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. More...
 
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 *, bool isCompact=false)
 
void FillOSDMenuJumpRec (PlayerContext *ctx, const QString &category="", int level=0, const QString &selected="")
 
void PlaybackMenuShow (const MenuBase &menu, const QDomNode &node, const QDomNode &selected)
 
void CutlistMenuShow (const MenuBase &menu, const QDomNode &node, const QDomNode &selected)
 
virtual bool MenuItemDisplay (const MenuItemContext &c)
 
bool MenuItemDisplayPlayback (const MenuItemContext &c)
 
bool MenuItemDisplayCutlist (const MenuItemContext &c)
 
void PlaybackMenuInit (const MenuBase &menu)
 
void PlaybackMenuDeinit (const MenuBase &menu)
 
void MenuStrings (void) const
 
void MenuLazyInit (void *field)
 
void UpdateLCD (void)
 
void ShowLCDChannelInfo (const PlayerContext *)
 
void ShowLCDDVDInfo (const PlayerContext *)
 
int GetLastRecorderNum (int player_idx) const
 
void RestoreScreenSaver (const PlayerContext *)
 
int find_player_index (const PlayerContext *) const
 
QString GetLiveTVIndex (const PlayerContext *) const
 

Static Private Member Functions

static TVGetTV (void)
 
static void ReleaseTV (TV *tv)
 
static QSet< uintIsTunableOn (TV *tv, const PlayerContext *, uint chanid, bool use_cache, bool early_exit)
 
static bool StateIsRecording (TVState state)
 
static bool StateIsPlaying (TVState state)
 
static bool StateIsLiveTV (TVState state)
 
static PictureAttribute NextPictureAdjustType (PictureAdjustType type, MythPlayer *mp, PictureAttribute attr)
 
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. More...
 
static TVState RemoveRecording (TVState state)
 

Private Attributes

QString baseFilters
 
QString db_channel_format
 
uint db_idle_timeout
 
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_clear_saved_position
 
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
 
bool db_use_channel_groups
 
bool db_remember_last_channel_group
 
ChannelGroupList db_channel_groups
 
CommSkipMode autoCommercialSkip
 
bool tryUnflaggedSkip
 
bool smartForward
 
float ff_rew_repos
 
bool ff_rew_reverse
 
bool jumped_back
 Used by PromptDeleteRecording. More...
 
vector< intff_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. More...
 
bool stretchAdjustment
 True if time stretch is turned on. More...
 
bool audiosyncAdjustment
 True if audiosync is turned on. More...
 
bool subtitleZoomAdjustment
 True if subtitle zoom is turned on. More...
 
bool subtitleDelayAdjustment
 True if subtitle delay is turned on. More...
 
bool editmode
 Are we in video editing mode. More...
 
bool zoomMode
 
bool sigMonMode
 Are we in signal monitoring mode? More...
 
bool endOfRecording
 !player->IsPlaying() && StateIsPlaying() More...
 
bool requestDelete
 User wants last video deleted. More...
 
bool allowRerecord
 User wants to rerecord the last video if deleted. More...
 
bool doSmartForward
 
bool queuedTranscode
 
PictureAdjustType adjustingPicture
 Picture attribute type to modify. More...
 
PictureAttribute adjustingPictureAttribute
 Picture attribute to modify (on arrow left or right) More...
 
QMap< QString, AskProgramInfoaskAllowPrograms
 
QMutex askAllowLock
 
MythDeque< QString > changePxP
 
QMutex progListsLock
 
QMap< QString, ProgramListprogLists
 
QMutex chanEditMapLock
 Lock for chanEditMap and ddMap. More...
 
InfoMap chanEditMap
 Channel Editing initial map. More...
 
DDKeyMap ddMap
 DataDirect channel map. More...
 
uint ddMapSourceId
 DataDirect channel map sourceid. More...
 
DDLoaderddMapLoader
 DataDirect map loader runnable. More...
 
vector< SleepTimerInfosleep_times
 Vector or sleep timer sleep times in seconds, with the appropriate UI message. More...
 
uint sleep_index
 Index into sleep_times. More...
 
uint sleepTimerTimeout
 Current sleep timeout in msec. More...
 
int sleepTimerId
 Timer for turning off playback. More...
 
int sleepDialogTimerId
 Timer for sleep dialog. More...
 
int idleTimerId
 Timer for turning off playback after idle period. More...
 
int idleDialogTimerId
 Timer for idle dialog. More...
 
MythTimer keyRepeatTimer
 Queue of unprocessed key presses. More...
 
bool ccInputMode
 Are we in CC/Teletext page/stream selection mode? More...
 
bool asInputMode
 Are we in Arbitrary seek input mode? More...
 
QString queuedInput
 Input key presses queued up so far... More...
 
QString queuedChanNum
 Input key presses queued up so far to form a valid ChanNum. More...
 
uint queuedChanID
 Queued ChanID (from EPG channel selector) More...
 
uint initialChanID
 Initial chanid override for Live TV. More...
 
QTime lockTimer
 
bool lockTimerOn
 
QDateTime lastLockSeenTime
 
TVBrowseHelperbrowsehelper
 
QMutex lastProgramLock
 
ProgramInfolastProgram
 last program played with this player More...
 
bool inPlaylist
 show is part of a playlist More...
 
bool underNetworkControl
 initial show started via by the network control interface More...
 
PIPState jumpToProgramPIPState
 
bool jumpToProgram
 
vector< PlayerContext * > player
 
int playerActive
 Video Player to which events are sent to. More...
 
QReadWriteLock playerLock
 lock on player and playerActive changes More...
 
bool noHardwareDecoders
 
RemoteEncoderswitchToRec
 Main recorder to use after a successful SwitchCards() call. More...
 
QMap< OSD *, const PlayerContext * > osd_lctx
 
QString lcdTitle
 
QString lcdSubtitle
 
QString lcdCallsign
 
TvPlayWindowmyWindow
 Our screen, if it exists. More...
 
QRect player_bounds
 Prior GUI window bounds, for DoEditSchedule() and player exit(). More...
 
QRect saved_gui_bounds
 
bool weDisabledGUI
 true if this instance disabled MythUI drawing. More...
 
bool disableDrawUnusedRects
 true if video chromakey and frame should not be drawn More...
 
bool isEmbedded
 are we currently embedded More...
 
bool ignoreKeyPresses
 should we ignore keypresses More...
 
vector< boolsaved_pause
 saved pause state before embedding More...
 
QMutex is_tunable_cache_lock
 
QMap< uint, vector< InputInfo > > is_tunable_cache_inputs
 
QMutex channelGroupLock
 Lock necessary when modifying channel group variables. More...
 
volatile int channelGroupId
 
ChannelInfoList channelGroupChannelList
 
MythDeque< QString > networkControlCommands
 
QMutex timerIdLock
 
volatile int lcdTimerId
 
volatile int lcdVolumeTimerId
 
volatile int networkControlTimerId
 
volatile int jumpMenuTimerId
 
volatile int pipChangeTimerId
 
volatile int switchToInputTimerId
 
volatile int ccInputTimerId
 
volatile int asInputTimerId
 
volatile int queueInputTimerId
 
volatile int browseTimerId
 
volatile int updateOSDPosTimerId
 
volatile int updateOSDDebugTimerId
 
volatile int endOfPlaybackTimerId
 
volatile int embedCheckTimerId
 
volatile int endOfRecPromptTimerId
 
volatile int videoExitDialogTimerId
 
volatile int pseudoChangeChanTimerId
 
volatile int speedChangeTimerId
 
volatile int errorRecoveryTimerId
 
volatile int exitPlayerTimerId
 
volatile int saveLastPlayPosTimerId
 
TimerContextMap stateChangeTimerId
 
TimerContextMap signalMonitorTimerId
 
PlayerContextm_tvmCtx
 
OSDm_tvmOsd
 
QStringList m_tvm_tracks [kTrackTypeCount]
 
int m_tvm_curtrack [kTrackTypeCount]
 
bool m_tvm_avsync
 
bool m_tvm_visual
 
QString m_tvm_active
 
bool m_tvm_upmixing
 
bool m_tvm_canupmix
 
QStringList m_tvm_visualisers
 
AspectOverrideMode m_tvm_aspectoverride
 
AdjustFillMode m_tvm_adjustfill
 
bool m_tvm_fill_autodetect
 
uint m_tvm_sup
 
bool m_tvm_studio_levels
 
bool m_tvm_stereoallowed
 
StereoscopicMode m_tvm_stereomode
 
FrameScanType m_tvm_scan_type
 
FrameScanType m_tvm_scan_type_unlocked
 
bool m_tvm_scan_type_locked
 
QString m_tvm_cur_mode
 
QStringList m_tvm_deinterlacers
 
QString m_tvm_currentdeinterlacer
 
bool m_tvm_doublerate
 
int m_tvm_speedX100
 
TVState m_tvm_state
 
bool m_tvm_isrecording
 
bool m_tvm_isrecorded
 
bool m_tvm_isvideo
 
CommSkipMode m_tvm_curskip
 
bool m_tvm_ispaused
 
bool m_tvm_allowPIP
 
bool m_tvm_allowPBP
 
bool m_tvm_hasPIP
 
bool m_tvm_hasPBP
 
int m_tvm_freerecordercount
 
bool m_tvm_isdvd
 
bool m_tvm_isbd
 
bool m_tvm_jump
 
bool m_tvm_islivetv
 
bool m_tvm_previouschan
 
int m_tvm_num_chapters
 
int m_tvm_current_chapter
 
QList< long longm_tvm_chapter_times
 
int m_tvm_num_angles
 
int m_tvm_current_angle
 
int m_tvm_num_titles
 
int m_tvm_current_title
 
uint m_tvm_subs_capmode
 
bool m_tvm_subs_havetext
 
bool m_tvm_subs_forcedon
 
bool m_tvm_subs_enabled
 
bool m_tvm_subs_have_subs
 
bool m_tvm_is_on
 
bool m_tvm_transcoding
 
QVariant m_tvm_jumprec_back_hack
 
MenuBase m_playbackMenu
 
MenuBase m_playbackCompactMenu
 
MenuBase m_cutlistMenu
 
MenuBase m_cutlistCompactMenu
 

Static Private Attributes

static QMutex * gTVLock = new QMutex()
 
static TVgTV = NULL
 

Friends

class PlaybackBox
 
class GuideGrid
 
class ProgFinder
 
class ViewScheduled
 
class ScheduleEditor
 
class TvPlayWindow
 
class TVBrowseHelper
 
class DDLoader
 

Detailed Description

Control TV playback TVPlaybackAborted(void)

TV playback failed to start (typically, TV playback was started when another playback is currently going) TVPlaybackStarted(void) TV playback has started, video is now playing TVPlaybackStopped(void) TV playback has stopped and playback has exited TVPlaybackUnpaused(void) TV playback has resumed, following a Pause action TVPlaybackPaused(void) TV playback has been paused TVPlaybackSought(qint position_seconds) Absolute seek has completed to position_seconds

Definition at line 291 of file tv_play.h.

Member Typedef Documentation

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

Definition at line 962 of file tv_play.h.

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

Definition at line 963 of file tv_play.h.

Member Enumeration Documentation

enum TV::BookmarkAction
private
Enumerator
kBookmarkAlways 
kBookmarkNever 
kBookmarkAuto 

Definition at line 475 of file tv_play.h.

enum TV::ArbSeekWhence
private
Enumerator
ARBSEEK_SET 
ARBSEEK_REWIND 
ARBSEEK_FORWARD 
ARBSEEK_END 

Definition at line 568 of file tv_play.h.

Constructor & Destructor Documentation

TV::TV ( void  )
private
See also
Init(void)

Definition at line 989 of file tv_play.cpp.

TV::~TV ( void  )
private

Definition at line 1339 of file tv_play.cpp.

Member Function Documentation

bool TV::IsTVRunning ( void  )
static
static TV* TV::CurrentTVInstance ( void  )
inlinestatic

Definition at line 306 of file tv_play.h.

Referenced by MythAirplayServer::PausePlayback().

bool TV::StartTV ( ProgramInfo tvrec,
uint  flags,
const ChannelInfoList selection = ChannelInfoList() 
)
static

returns true if the recording completed when exiting.

Definition at line 322 of file tv_play.cpp.

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

bool TV::IsPaused ( void  )
static

Returns true if a TV playback is currently going; otherwise returns false.

Definition at line 6336 of file tv_play.cpp.

bool TV::event ( QEvent *  e)

This handles all standard events.

Definition at line 3644 of file tv_play.cpp.

Referenced by eventFilter().

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

This selectively blocks KeyPress and Resize events.

Definition at line 3609 of file tv_play.cpp.

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 13521 of file tv_play.cpp.

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

void TV::FinishRecording ( int  player_idx)

Finishes player's recording.

Definition at line 1798 of file tv_play.cpp.

void TV::InitKeys ( void  )
static

Definition at line 532 of file tv_play.cpp.

Referenced by main().

void TV::ReloadKeys ( void  )
static

Definition at line 976 of file tv_play.cpp.

Referenced by ReloadKeys().

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 517 of file tv_play.cpp.

Referenced by SetFuncPtrs().

static int TV::ConfiguredTunerCards ( void  )
static

Referenced by isLiveTVAvailable().

bool TV::IsTunable ( uint  chanid)
static
void TV::HandleOSDClosed ( int  osdType)
slot

Definition at line 10010 of file tv_play.cpp.

Referenced by customEvent().

void TV::timerEvent ( QTimerEvent *  te)
slot

Definition at line 2745 of file tv_play.cpp.

void TV::StopPlayback ( void  )
slot

Definition at line 305 of file tv_play.cpp.

Referenced by InitFromDB().

void TV::customEvent ( QEvent *  e)
protected

This handles all custom events.

Definition at line 9341 of file tv_play.cpp.

Referenced by eventFilter().

TV * TV::GetTV ( void  )
staticprivate

Definition at line 280 of file tv_play.cpp.

void TV::ReleaseTV ( TV tv)
staticprivate

Definition at line 292 of file tv_play.cpp.

bool TV::Init ( bool  createWindow = true)
private

Performs instance initialization, returns true on success.

Parameters
createWindowIf true a MythDialog is created for display.
Returns
Returns true on success, false on failure.

Definition at line 1212 of file tv_play.cpp.

Referenced by StartTV().

void TV::InitFromDB ( void  )
private

Definition at line 1095 of file tv_play.cpp.

Referenced by TV().

bool TV::LiveTV ( bool  showDialogs,
const ChannelInfoList selection 
)
private

Starts LiveTV.

Parameters
showDialogsif true error dialogs are shown, if false they are not

Definition at line 1704 of file tv_play.cpp.

Referenced by StartTV().

int TV::Playback ( const ProgramInfo rcinfo)
private

Definition at line 2128 of file tv_play.cpp.

Referenced by StartTV().

void TV::PlaybackLoop ( void  )
private

The main playback loop.

Definition at line 1425 of file tv_play.cpp.

Referenced by StartTV().

bool TV::ProcessKeypress ( PlayerContext actx,
QKeyEvent *  e 
)
private

Definition at line 3826 of file tv_play.cpp.

Referenced by event().

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

Definition at line 4958 of file tv_play.cpp.

Referenced by timerEvent().

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

Definition at line 3682 of file tv_play.cpp.

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

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

Definition at line 4389 of file tv_play.cpp.

Referenced by ProcessKeypress().

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

Definition at line 4057 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::OSDDialogEvent ( int  result,
QString  text,
QString  action 
)
private

Definition at line 10744 of file tv_play.cpp.

Referenced by customEvent().

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

Definition at line 4798 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ProcessKeypress().

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

Definition at line 4709 of file tv_play.cpp.

Referenced by ProcessKeypress().

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

Definition at line 4672 of file tv_play.cpp.

Referenced by ProcessKeypress().

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

Definition at line 4859 of file tv_play.cpp.

Referenced by ProcessKeypress().

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

Definition at line 12737 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

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

Definition at line 6450 of file tv_play.cpp.

Referenced by ActiveHandleAction().

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

Definition at line 4247 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::DiscMenuHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4351 of file tv_play.cpp.

Referenced by ProcessKeypress().

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

Definition at line 4367 of file tv_play.cpp.

Referenced by OSDDialogEvent().

int TV::StartTimer ( int  interval,
int  line 
)
private
void TV::KillTimer ( int  id)
private
void TV::SetSpeedChangeTimer ( uint  when,
int  line 
)
private
void TV::HandleEndOfPlaybackTimerEvent ( void  )
private

Definition at line 3400 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleIsNearEndWhenEmbeddingTimerEvent ( void  )
private

Definition at line 3447 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleEndOfRecordingExitPromptTimerEvent ( void  )
private

Definition at line 3462 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleVideoExitDialogTimerEvent ( void  )
private

Definition at line 3494 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandlePseudoLiveTVTimerEvent ( void  )
private

Definition at line 3524 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleSpeedChangeTimerEvent ( void  )
private

Definition at line 3576 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ToggleSleepTimer ( const PlayerContext ctx)
private

Definition at line 9143 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

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

Definition at line 12859 of file tv_play.cpp.

bool TV::HandlePxPTimerEvent ( void  )
private

Definition at line 3151 of file tv_play.cpp.

Referenced by timerEvent().

bool TV::HandleLCDTimerEvent ( void  )
private

Definition at line 3203 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleLCDVolumeTimerEvent ( void  )
private

Definition at line 3245 of file tv_play.cpp.

Referenced by timerEvent().

void TV::HandleSaveLastPlayPosEvent ( void  )
private

Definition at line 13434 of file tv_play.cpp.

Referenced by timerEvent().

void TV::EditSchedule ( const PlayerContext ctx,
int  editType = kScheduleProgramGuide 
)
private
bool TV::StartEmbedding ( const QRect &  embedRect)
private
void TV::StopEmbedding ( void  )
private

Definition at line 8654 of file tv_play.cpp.

Referenced by customEvent().

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

Definition at line 8460 of file tv_play.cpp.

QSet< uint > TV::IsTunableOn ( const PlayerContext ctx,
uint  chanid,
bool  use_cache,
bool  early_exit 
)
private

Definition at line 8482 of file tv_play.cpp.

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

QSet< uint > TV::IsTunableOn ( TV tv,
const PlayerContext ctx,
uint  chanid,
bool  use_cache,
bool  early_exit 
)
staticprivate

Definition at line 8488 of file tv_play.cpp.

void TV::ClearTunableCache ( void  )
private

Definition at line 8608 of file tv_play.cpp.

Referenced by GuideGrid::updateChannelsNonUI().

void TV::ChangeChannel ( const PlayerContext ctx,
const ChannelInfoList options 
)
private
void TV::DrawUnusedRects ( void  )
private

Definition at line 8682 of file tv_play.cpp.

Referenced by customEvent(), GuideGrid::EmbedTVWindow(), event(), and HandleStateChange().

void TV::DoEditSchedule ( int  editType = kScheduleProgramGuide)
private

Definition at line 8727 of file tv_play.cpp.

Referenced by customEvent().

QString TV::GetRecordingGroup ( int  player_idx) const
private

Definition at line 13502 of file tv_play.cpp.

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

void TV::ChangeVolume ( PlayerContext ctx,
bool  up,
int  newvolume = -1 
)
private
void TV::ToggleMute ( PlayerContext ctx,
const bool  muteIndividualChannels = false 
)
private

Definition at line 9107 of file tv_play.cpp.

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

void TV::UpdateChannelList ( int  groupID)
private

update the channel list with channels from the selected channel group

Definition at line 1474 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and GuideGrid::~GuideGrid().

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

Definition at line 13553 of file tv_play.cpp.

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

Definition at line 13564 of file tv_play.cpp.

void TV::ReturnOSDLock ( const PlayerContext ctx,
OSD *&  osd 
)
private
PlayerContext * TV::GetPlayerWriteLock ( int  which,
const char *  file,
int  location 
)
private

Definition at line 13617 of file tv_play.cpp.

Referenced by customEvent(), HandlePxPTimerEvent(), 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 13647 of file tv_play.cpp.

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

Definition at line 13663 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 13679 of file tv_play.cpp.

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

Definition at line 13701 of file tv_play.cpp.

void TV::ToggleAutoExpire ( PlayerContext ctx)
private

Definition at line 12683 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::QuickRecord ( PlayerContext ctx)
private

Definition at line 9930 of file tv_play.cpp.

Referenced by BrowseHandleAction(), and ToggleHandleAction().

bool TV::StateIsRecording ( TVState  state)
staticprivate

Definition at line 2159 of file tv_play.cpp.

Referenced by FinishRecording(), PrepareToExitPlayer(), and RemoveRecording().

bool TV::StateIsPlaying ( TVState  state)
staticprivate
bool TV::StateIsLiveTV ( TVState  state)
staticprivate
TVState TV::GetState ( int  player_idx) const
private
TVState TV::GetState ( const PlayerContext actx) const
private

get tv state of active player context

Definition at line 1692 of file tv_play.cpp.

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 2212 of file tv_play.cpp.

Referenced by LiveTV(), Playback(), and timerEvent().

void TV::GetStatus ( void  )
private

Definition at line 1511 of file tv_play.cpp.

Referenced by customEvent().

void TV::ForceNextStateNone ( PlayerContext ctx)
private
void TV::ScheduleStateChange ( PlayerContext ctx)
private
void TV::SetErrored ( PlayerContext ctx)
private

Definition at line 3289 of file tv_play.cpp.

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

void TV::setInPlayList ( bool  setting)
inlineprivate

Definition at line 471 of file tv_play.h.

Referenced by OSDDialogEvent(), and StartTV().

void TV::setUnderNetworkControl ( bool  setting)
inlineprivate

Definition at line 472 of file tv_play.h.

Referenced by StartTV().

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

Definition at line 3299 of file tv_play.cpp.

Referenced by customEvent(), and HandleJumpToProgramAction().

void TV::PrepareToExitPlayer ( PlayerContext ctx,
int  line,
BookmarkAction  bookmark = kBookmarkAuto 
)
private
void TV::SetExitPlayer ( bool  set_it,
bool  wants_to 
)
private
bool TV::RequestNextRecorder ( PlayerContext ctx,
bool  showDialogs,
const ChannelInfoList sel = ChannelInfoList() 
)
private

Definition at line 1741 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
maxWaitHow long to wait for RecorderBase to start recording.
Returns
true when successful, false otherwise.

Definition at line 2611 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
stopRingBufferSet to true if ringbuffer must be shut down.
stopPlayerSet to true if player must be shut down.
stopRecorderSet to true if recorder must be shut down.

Definition at line 2663 of file tv_play.cpp.

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

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

Definition at line 2711 of file tv_play.cpp.

Referenced by timerEvent().

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

Definition at line 5647 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 6022 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 6085 of file tv_play.cpp.

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

void TV::RestartMainPlayer ( PlayerContext mctx)
private

Definition at line 6204 of file tv_play.cpp.

Referenced by timerEvent().

bool TV::IsSwitchingCards ( void  ) const
inlineprivate

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

Definition at line 504 of file tv_play.h.

bool TV::getAllowRerecord ( void  ) const
inlineprivate

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

Definition at line 506 of file tv_play.h.

Referenced by StartTV().

bool TV::getEndOfRecording ( void  ) const
inlineprivate

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

Definition at line 509 of file tv_play.h.

Referenced by PrepareToExitPlayer(), and StartTV().

bool TV::getJumpToProgram ( void  ) const
inlineprivate

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

Definition at line 512 of file tv_play.h.

Referenced by StartTV().

bool TV::IsDeleteAllowed ( const PlayerContext ctx) const
private

Definition at line 13197 of file tv_play.cpp.

Referenced by HandleOSDVideoExit(), and ShowOSDStopWatchingRecording().

void TV::ToggleChannelFavorite ( PlayerContext ctx)
private

Definition at line 7348 of file tv_play.cpp.

Referenced by ToggleHandleAction().

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

Definition at line 7356 of file tv_play.cpp.

void TV::ChangeChannel ( PlayerContext ctx,
ChannelChangeDirection  direction 
)
private

Definition at line 7594 of file tv_play.cpp.

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

Definition at line 7697 of file tv_play.cpp.

void TV::ShowPreviousChannel ( PlayerContext ctx)
private

Definition at line 7874 of file tv_play.cpp.

Referenced by PopPreviousChannel().

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

Definition at line 7887 of file tv_play.cpp.

Referenced by ActivePostQHandleAction(), and OSDDialogEvent().

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
hideosdif true, hides "channel_number" OSDSet.

Definition at line 7404 of file tv_play.cpp.

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

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

Definition at line 7467 of file tv_play.cpp.

Referenced by AddKeyToInputQueue().

bool TV::HasQueuedInput ( void  ) const
inlineprivate
bool TV::HasQueuedChannel ( void  ) const
inlineprivate

Definition at line 533 of file tv_play.h.

Referenced by ClearOSD(), and timerEvent().

QString TV::GetQueuedInput ( void  ) const
private

Definition at line 7362 of file tv_play.cpp.

Referenced by AddKeyToInputQueue(), and CommitQueuedInput().

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

Definition at line 7370 of file tv_play.cpp.

Referenced by DoArbSeek(), and HandleTrackAction().

QString TV::GetQueuedChanNum ( void  ) const
private

Definition at line 7376 of file tv_play.cpp.

Referenced by CommitQueuedInput(), and ProcessSmartChannel().

uint TV::GetQueuedChanID ( void  ) const
inlineprivate

Definition at line 540 of file tv_play.h.

Referenced by ChangeChannel(), and CommitQueuedInput().

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

Definition at line 7012 of file tv_play.cpp.

Referenced by ActivePostQHandleAction().

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

Definition at line 7089 of file tv_play.cpp.

Referenced by timerEvent().

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

Definition at line 7294 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 7108 of file tv_play.cpp.

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

void TV::PauseLiveTV ( PlayerContext ctx)
private

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

Definition at line 12966 of file tv_play.cpp.

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

void TV::UnpauseLiveTV ( PlayerContext ctx,
bool  bQuietly = false 
)
private

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

Definition at line 13007 of file tv_play.cpp.

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

void TV::DoPlay ( PlayerContext ctx)
private

Definition at line 6234 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

float TV::DoTogglePauseStart ( PlayerContext ctx)
private

Definition at line 6268 of file tv_play.cpp.

Referenced by DoSetPauseState(), and DoTogglePause().

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

Definition at line 6299 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 8703 of file tv_play.cpp.

Referenced by customEvent(), and DoEditSchedule().

bool TV::ContextIsPaused ( PlayerContext ctx,
const char *  file,
int  location 
)
private
void TV::SetLastProgram ( const ProgramInfo rcinfo)
private
ProgramInfo * TV::GetLastProgram ( void  ) const
private

Definition at line 13494 of file tv_play.cpp.

Referenced by FillOSDMenuJumpRec(), and StartTV().

void TV::DoSeek ( PlayerContext ctx,
float  time,
const QString &  mesg,
bool  timeIsOffset,
bool  honorCutlist 
)
private
bool TV::DoPlayerSeek ( PlayerContext ctx,
float  time 
)
private
bool TV::DoPlayerSeekToFrame ( PlayerContext ctx,
uint64_t  target 
)
private

Definition at line 6420 of file tv_play.cpp.

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

void TV::DoSeekAbsolute ( PlayerContext ctx,
long long  seconds,
bool  honorCutlist 
)
private

Definition at line 6574 of file tv_play.cpp.

Referenced by customEvent(), DoArbSeek(), and ProcessNetworkControlCommand().

void TV::DoArbSeek ( PlayerContext ctx,
ArbSeekWhence  whence,
bool  honorCutlist 
)
private

Definition at line 6591 of file tv_play.cpp.

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

void TV::DoJumpFFWD ( PlayerContext ctx)
private

Definition at line 13060 of file tv_play.cpp.

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

void TV::DoJumpRWND ( PlayerContext ctx)
private

Definition at line 13072 of file tv_play.cpp.

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

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

Definition at line 6641 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::ToggleTimeStretch ( PlayerContext ctx)
private

Definition at line 8923 of file tv_play.cpp.

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

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

Definition at line 13087 of file tv_play.cpp.

Referenced by DoJumpRWND().

void TV::DVDJumpForward ( PlayerContext ctx)
private

Definition at line 13126 of file tv_play.cpp.

Referenced by DoJumpFFWD().

float TV::StopFFRew ( PlayerContext ctx)
private
void TV::ChangeFFRew ( PlayerContext ctx,
int  direction 
)
private

Definition at line 6712 of file tv_play.cpp.

Referenced by SeekHandleAction().

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

Definition at line 6745 of file tv_play.cpp.

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

void TV::EnableUpmix ( PlayerContext ctx,
bool  enable,
bool  toggle = false 
)
private

Definition at line 8988 of file tv_play.cpp.

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

void TV::ChangeAudioSync ( PlayerContext ctx,
int  dir,
int  newsync = -9999 
)
private
bool TV::AudioSyncHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4273 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::PauseAudioUntilBuffered ( PlayerContext ctx)
private
int TV::GetNumChapters ( const PlayerContext ctx) const
private

Definition at line 6842 of file tv_play.cpp.

Referenced by DoJumpFFWD(), DoJumpRWND(), and PlaybackMenuInit().

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

Definition at line 6852 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6860 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6886 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6896 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6936 of file tv_play.cpp.

Referenced by MenuItemDisplayPlayback().

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

Definition at line 6947 of file tv_play.cpp.

Referenced by MenuItemDisplayPlayback().

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

Definition at line 6957 of file tv_play.cpp.

Referenced by customEvent(), and OSDDialogEvent().

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

Definition at line 6906 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6916 of file tv_play.cpp.

Referenced by PlaybackMenuInit().

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

Definition at line 6926 of file tv_play.cpp.

Referenced by MenuItemDisplayPlayback().

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

Definition at line 6973 of file tv_play.cpp.

Referenced by customEvent(), and OSDDialogEvent().

void TV::DoJumpChapter ( PlayerContext ctx,
int  chapter 
)
private
void TV::DoSkipCommercials ( PlayerContext ctx,
int  direction 
)
private

Definition at line 6989 of file tv_play.cpp.

Referenced by ActiveHandleAction().

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

Definition at line 12706 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

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

Definition at line 6792 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

bool TV::IsBookmarkAllowed ( const PlayerContext ctx) const
private
void TV::SetBookmark ( PlayerContext ctx,
bool  clear = false 
)
private
bool TV::ClearOSD ( const PlayerContext ctx)
private
void TV::ToggleOSD ( PlayerContext ctx,
bool  includeStatusOSD 
)
private

Cycle through the available Info OSDs.

Definition at line 7947 of file tv_play.cpp.

Referenced by ActiveHandleAction().

void TV::ToggleOSDDebug ( PlayerContext ctx)
private

Definition at line 8015 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and OSDDialogEvent().

void TV::UpdateOSDDebug ( const PlayerContext ctx)
private

Definition at line 8041 of file tv_play.cpp.

Referenced by timerEvent(), and ToggleOSDDebug().

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

Update and display the passed OSD set with programinfo.

Definition at line 8057 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,
enum OSDTimeout  timeout = kOSDTimeout_Med 
)
private
void TV::UpdateOSDStatus ( const PlayerContext ctx,
osdInfo info,
int  type,
enum OSDTimeout  timeout 
)
private

Definition at line 8076 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 8125 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 8146 of file tv_play.cpp.

Referenced by customEvent(), and timerEvent().

void TV::UpdateOSDTimeoutMessage ( PlayerContext ctx)
private

Definition at line 8305 of file tv_play.cpp.

Referenced by customEvent(), and timerEvent().

void TV::UpdateOSDAskAllowDialog ( PlayerContext )
private
void TV::SetUpdateOSDPosition ( bool  set_it)
private
bool TV::SubtitleZoomHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4299 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::ChangeSubtitleZoom ( PlayerContext ctx,
int  dir 
)
private

Definition at line 9009 of file tv_play.cpp.

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

bool TV::SubtitleDelayHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4325 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::ChangeSubtitleDelay ( PlayerContext ctx,
int  dir 
)
private

Definition at line 9043 of file tv_play.cpp.

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

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

Setup Picture by Picture.

right side will be the current video.

Parameters
infoprograminfo for PBP to use for left Picture. is NULL for Live TV

Definition at line 5504 of file tv_play.cpp.

Referenced by HandleJumpToProgramAction(), and PxPCreateView().

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

create PIP.

Parameters
infoprograminfo for PIP to create. is NULL for LiveTV PIP

Definition at line 5590 of file tv_play.cpp.

Referenced by HandleJumpToProgramAction(), and PxPCreateView().

bool TV::ResizePIPWindow ( PlayerContext ctx)
private

resize PIP Window.

done when changing channels or swapping PIP

Definition at line 5953 of file tv_play.cpp.

Referenced by PIPAddPlayer().

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

Definition at line 6003 of file tv_play.cpp.

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

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

start/stop PIP/PBP

Definition at line 5770 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

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

start PIP/PBP

Definition at line 5786 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent(), and PxPToggleView().

void TV::PxPTeardownView ( PlayerContext actx)
private

stop PIP/PBP

Definition at line 5830 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 5866 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

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

Definition at line 6153 of file tv_play.cpp.

Referenced by HandlePxPTimerEvent().

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

Maps Player of software scaled PIP to the main player.

Definition at line 5706 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 5752 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 6046 of file tv_play.cpp.

Referenced by TeardownPlayer().

void TV::SetActive ( PlayerContext lctx,
int  index,
bool  osd_msg 
)
private
void TV::ToggleAspectOverride ( PlayerContext ctx,
AspectOverrideMode  aspectMode = kAspect_Toggle 
)
private

Definition at line 9296 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

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

Definition at line 9311 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::DoToggleStudioLevels ( const PlayerContext ctx)
private

Definition at line 10069 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::DoToggleNightMode ( const PlayerContext ctx)
private

Definition at line 10076 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

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

Definition at line 10083 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::DoChangePictureAttribute ( PlayerContext ctx,
PictureAdjustType  type,
PictureAttribute  attr,
bool  up,
int  newvalue = -1 
)
private

Definition at line 10133 of file tv_play.cpp.

Referenced by customEvent(), and PictureAttributeHandleAction().

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

Definition at line 4224 of file tv_play.cpp.

Referenced by ProcessKeypress().

PictureAttribute TV::NextPictureAdjustType ( PictureAdjustType  type,
MythPlayer mp,
PictureAttribute  attr 
)
staticprivate

Definition at line 10038 of file tv_play.cpp.

Referenced by DoTogglePictureAttribute().

void TV::HandleDeinterlacer ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 12671 of file tv_play.cpp.

Referenced by OSDDialogEvent().

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

Restart the MHEG/MHP engine.

Definition at line 13038 of file tv_play.cpp.

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

void TV::EnableVisualisation ( const PlayerContext ctx,
bool  enable,
bool  toggle = false,
const QString &  action = QString("") 
)
private

Definition at line 4778 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

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

Definition at line 12723 of file tv_play.cpp.

Referenced by ManualZoomHandleAction(), and OSDDialogEvent().

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

Definition at line 4118 of file tv_play.cpp.

Referenced by ProcessKeypress().

void TV::StartChannelEditMode ( PlayerContext ctx)
private

Starts channel editing mode.

Definition at line 10380 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

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

Definition at line 10423 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 10459 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 10468 of file tv_play.cpp.

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

Definition at line 10506 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 10542 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 10602 of file tv_play.cpp.

Referenced by ChannelEditDDFill().

bool TV::LoadDDMap ( uint  sourceid)
private

Definition at line 10690 of file tv_play.cpp.

Referenced by RunLoadDDMap().

void TV::RunLoadDDMap ( uint  sourceid)
private

Definition at line 10665 of file tv_play.cpp.

bool TV::DialogIsVisible ( PlayerContext ctx,
const QString &  dialog 
)
private
void TV::HandleOSDInfo ( PlayerContext ctx,
QString  action 
)
private

Definition at line 11109 of file tv_play.cpp.

Referenced by OSDDialogEvent().

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

Definition at line 12924 of file tv_play.cpp.

Referenced by ChangeChannel(), and RequestNextRecorder().

void TV::ShowOSDAskAllow ( PlayerContext ctx)
private

Definition at line 1852 of file tv_play.cpp.

Referenced by AskAllowRecording().

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

Definition at line 2088 of file tv_play.cpp.

Referenced by OSDDialogEvent().

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

Definition at line 1806 of file tv_play.cpp.

Referenced by customEvent().

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

Definition at line 10216 of file tv_play.cpp.

Referenced by ProcessKeypress().

bool TV::HandleOSDCutpoint ( PlayerContext ctx,
QString  action 
)
private

Definition at line 10274 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::StartProgramEditMode ( PlayerContext ctx)
private

Starts Program Cut Map Editing mode.

Definition at line 10299 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and ToggleHandleAction().

void TV::ShowOSDAlreadyEditing ( PlayerContext ctx)
private

Definition at line 10317 of file tv_play.cpp.

Referenced by StartProgramEditMode().

void TV::HandleOSDAlreadyEditing ( PlayerContext ctx,
QString  action,
bool  was_paused 
)
private

Definition at line 10338 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDSleep ( void  )
private

Definition at line 9171 of file tv_play.cpp.

Referenced by timerEvent().

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

Definition at line 9196 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::SleepDialogTimeout ( void  )
private

Definition at line 9217 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 9235 of file tv_play.cpp.

Referenced by timerEvent().

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

Definition at line 9259 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::IdleDialogTimeout ( void  )
private

Definition at line 9282 of file tv_play.cpp.

Referenced by timerEvent().

void TV::ShowOSDStopWatchingRecording ( PlayerContext ctx)
private

Definition at line 13212 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 13391 of file tv_play.cpp.

Referenced by OSDDialogEvent().

void TV::ShowOSDMenu ( const PlayerContext ctx,
bool  isCompact = false 
)
private

Definition at line 12527 of file tv_play.cpp.

Referenced by ActiveHandleAction(), and ToggleHandleAction().

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

Definition at line 12550 of file tv_play.cpp.

Referenced by OSDDialogEvent(), and timerEvent().

void TV::PlaybackMenuShow ( const MenuBase menu,
const QDomNode &  node,
const QDomNode &  selected 
)
private

Definition at line 12445 of file tv_play.cpp.

Referenced by customEvent(), ShowOSDCutpoint(), and ShowOSDMenu().

void TV::CutlistMenuShow ( const MenuBase menu,
const QDomNode &  node,
const QDomNode &  selected 
)
private
bool TV::MenuItemDisplay ( const MenuItemContext c)
privatevirtual

Implements MenuItemDisplayer.

Definition at line 11379 of file tv_play.cpp.

bool TV::MenuItemDisplayPlayback ( const MenuItemContext c)
private

Definition at line 11544 of file tv_play.cpp.

Referenced by MenuItemDisplay().

bool TV::MenuItemDisplayCutlist ( const MenuItemContext c)
private

Definition at line 11394 of file tv_play.cpp.

Referenced by MenuItemDisplay().

void TV::PlaybackMenuInit ( const MenuBase menu)
private

Definition at line 12287 of file tv_play.cpp.

Referenced by PlaybackMenuShow().

void TV::PlaybackMenuDeinit ( const MenuBase menu)
private

Definition at line 12437 of file tv_play.cpp.

Referenced by PlaybackMenuShow().

void TV::MenuStrings ( void  ) const
private

Definition at line 12481 of file tv_play.cpp.

void TV::MenuLazyInit ( void field)
private

Definition at line 12278 of file tv_play.cpp.

Referenced by MenuItemDisplayPlayback().

void TV::UpdateLCD ( void  )
private

Definition at line 8365 of file tv_play.cpp.

Referenced by HandleStateChange(), and UnpauseLiveTV().

void TV::ShowLCDChannelInfo ( const PlayerContext ctx)
private

Definition at line 8374 of file tv_play.cpp.

Referenced by HandleLCDTimerEvent(), and HandleLCDVolumeTimerEvent().

void TV::ShowLCDDVDInfo ( const PlayerContext ctx)
private

Definition at line 8411 of file tv_play.cpp.

Referenced by HandleLCDTimerEvent().

int TV::GetLastRecorderNum ( int  player_idx) const
private

Definition at line 1733 of file tv_play.cpp.

static QStringList TV::GetValidRecorderList ( uint  chanid)
staticprivate
static QStringList TV::GetValidRecorderList ( const QString &  channum)
staticprivate
TV::GetValidRecorderList ( uint  ,
const QString &   
)
staticprivate

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

Parameters
chanidChannel ID of channel we are querying recorders for.
channumChannel "number" we are querying recorders for.
Returns
List of cardid's for recorders with channel.
TVState TV::RemoveRecording ( TVState  state)
staticprivate

Definition at line 2179 of file tv_play.cpp.

void TV::RestoreScreenSaver ( const PlayerContext ctx)
private

Definition at line 13535 of file tv_play.cpp.

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

int TV::find_player_index ( const PlayerContext ctx) const
private
QString TV::GetLiveTVIndex ( const PlayerContext ctx) const
private

Definition at line 13707 of file tv_play.cpp.

Referenced by ToggleOSD(), and UpdateOSDSeekMessage().

Friends And Related Function Documentation

friend class PlaybackBox
friend

Definition at line 293 of file tv_play.h.

friend class GuideGrid
friend

Definition at line 294 of file tv_play.h.

friend class ProgFinder
friend

Definition at line 295 of file tv_play.h.

friend class ViewScheduled
friend

Definition at line 296 of file tv_play.h.

friend class ScheduleEditor
friend

Definition at line 297 of file tv_play.h.

friend class TvPlayWindow
friend

Definition at line 298 of file tv_play.h.

Referenced by Init().

friend class TVBrowseHelper
friend

Definition at line 299 of file tv_play.h.

Referenced by InitFromDB().

friend class DDLoader
friend

Definition at line 300 of file tv_play.h.

Member Data Documentation

QStringList TV::lastProgramStringList = QStringList()
staticprotected

stores last program info.

maintains info so long as mythfrontend is active

Definition at line 350 of file tv_play.h.

Referenced by timerEvent().

EMBEDRETURNVOID TV::RunPlaybackBoxPtr = NULL
staticprotected

function pointer for RunPlaybackBox in playbackbox.cpp

Definition at line 351 of file tv_play.h.

Referenced by DoEditSchedule(), and HandleJumpToProgramAction().

EMBEDRETURNVOID TV::RunViewScheduledPtr = NULL
staticprotected

function pointer for RunViewScheduled in viewscheduled.cpp

Definition at line 352 of file tv_play.h.

Referenced by DoEditSchedule().

EMBEDRETURNVOIDEPG TV::RunProgramGuidePtr = NULL
staticprotected

function pointer for RunProgramGuide in guidegrid.cpp

Definition at line 353 of file tv_play.h.

Referenced by DoEditSchedule().

EMBEDRETURNVOIDFINDER TV::RunProgramFinderPtr = NULL
staticprotected

function pointer for RunProgramFinder in progfind.cpp

Definition at line 354 of file tv_play.h.

Referenced by DoEditSchedule().

EMBEDRETURNVOIDSCHEDIT TV::RunScheduleEditorPtr = NULL
staticprotected

function pointer for RunScheduleEditor in scheduleeditor.cpp

Definition at line 355 of file tv_play.h.

Referenced by DoEditSchedule().

QMutex * TV::gTVLock = new QMutex()
staticprivate

Definition at line 362 of file tv_play.h.

Referenced by IsPaused().

TV * TV::gTV = NULL
staticprivate

Definition at line 363 of file tv_play.h.

Referenced by IsPaused().

QString TV::baseFilters
private

Definition at line 784 of file tv_play.h.

Referenced by InitFromDB().

QString TV::db_channel_format
private

Definition at line 785 of file tv_play.h.

Referenced by InitFromDB(), and ShowOSDAskAllow().

uint TV::db_idle_timeout
private

Definition at line 786 of file tv_play.h.

Referenced by HandleOSDIdle(), InitFromDB(), LiveTV(), ProcessKeypress(), and ShowOSDIdle().

int TV::db_playback_exit_prompt
private

Definition at line 787 of file tv_play.h.

Referenced by ActiveHandleAction(), InitFromDB(), and PrepareToExitPlayer().

uint TV::db_autoexpire_default
private

Definition at line 788 of file tv_play.h.

Referenced by InitFromDB(), and QuickRecord().

bool TV::db_auto_set_watched
private

Definition at line 789 of file tv_play.h.

Referenced by InitFromDB(), PrepareToExitPlayer(), and ProcessNetworkControlCommand().

bool TV::db_end_of_rec_exit_prompt
private

Definition at line 790 of file tv_play.h.

Referenced by HandleEndOfPlaybackTimerEvent(), HandleStateChange(), and InitFromDB().

bool TV::db_jump_prefer_osd
private

Definition at line 791 of file tv_play.h.

Referenced by HandleJumpToProgramAction(), and InitFromDB().

bool TV::db_use_gui_size_for_tv
private

Definition at line 792 of file tv_play.h.

Referenced by customEvent(), DoEditSchedule(), InitFromDB(), and ~TV().

bool TV::db_start_in_guide
private

Definition at line 793 of file tv_play.h.

bool TV::db_clear_saved_position
private

Definition at line 794 of file tv_play.h.

Referenced by InitFromDB(), and PrepareToExitPlayer().

bool TV::db_toggle_bookmark
private

Definition at line 795 of file tv_play.h.

Referenced by ActivePostQHandleAction(), and InitFromDB().

bool TV::db_run_jobs_on_remote
private

Definition at line 796 of file tv_play.h.

Referenced by DoQueueTranscode(), and InitFromDB().

bool TV::db_continue_embedded
private

Definition at line 797 of file tv_play.h.

Referenced by DoEditSchedule(), and InitFromDB().

bool TV::db_use_fixed_size
private

Definition at line 798 of file tv_play.h.

Referenced by customEvent(), DoEditSchedule(), HandleStateChange(), and InitFromDB().

bool TV::db_browse_always
private

Definition at line 799 of file tv_play.h.

Referenced by ActivePostQHandleAction(), and InitFromDB().

bool TV::db_browse_all_tuners
private

Definition at line 800 of file tv_play.h.

Referenced by InitFromDB().

bool TV::db_use_channel_groups
private
bool TV::db_remember_last_channel_group
private

Definition at line 802 of file tv_play.h.

Referenced by InitFromDB(), and UpdateChannelList().

ChannelGroupList TV::db_channel_groups
private

Definition at line 803 of file tv_play.h.

Referenced by InitFromDB(), and MenuItemDisplayPlayback().

CommSkipMode TV::autoCommercialSkip
private

Definition at line 805 of file tv_play.h.

bool TV::tryUnflaggedSkip
private

Definition at line 806 of file tv_play.h.

Referenced by InitFromDB().

bool TV::smartForward
private

Definition at line 808 of file tv_play.h.

Referenced by InitFromDB(), and SeekHandleAction().

float TV::ff_rew_repos
private

Definition at line 809 of file tv_play.h.

Referenced by InitFromDB(), and StopFFRew().

bool TV::ff_rew_reverse
private

Definition at line 810 of file tv_play.h.

Referenced by ChangeFFRew(), and InitFromDB().

bool TV::jumped_back
private

Used by PromptDeleteRecording.

Definition at line 811 of file tv_play.h.

vector<int> TV::ff_rew_speeds
private
uint TV::vbimode
private

Definition at line 814 of file tv_play.h.

QTime TV::ctorTime
private

Definition at line 816 of file tv_play.h.

Referenced by StartPlayer(), and TV().

uint TV::switchToInputId
private

Definition at line 817 of file tv_play.h.

Referenced by OSDDialogEvent(), SwitchSource(), and timerEvent().

QMutex TV::initFromDBLock
private

Definition at line 819 of file tv_play.h.

Referenced by Init(), and InitFromDB().

bool TV::initFromDBDone
private

Definition at line 820 of file tv_play.h.

Referenced by Init(), and InitFromDB().

QWaitCondition TV::initFromDBWait
private

Definition at line 821 of file tv_play.h.

Referenced by Init(), and InitFromDB().

bool TV::wantsToQuit
mutableprivate

True if the user told MythTV to stop plaback.

If this is false when we exit the player, we display an error screen.

Definition at line 825 of file tv_play.h.

Referenced by Playback(), PlaybackLoop(), SetExitPlayer(), and StartTV().

bool TV::stretchAdjustment
private

True if time stretch is turned on.

Definition at line 826 of file tv_play.h.

Referenced by ChangeTimeStretch(), HandleOSDClosed(), and TimeStretchHandleAction().

bool TV::audiosyncAdjustment
private

True if audiosync is turned on.

Definition at line 827 of file tv_play.h.

Referenced by AudioSyncHandleAction(), ChangeAudioSync(), and HandleOSDClosed().

bool TV::subtitleZoomAdjustment
private

True if subtitle zoom is turned on.

Definition at line 828 of file tv_play.h.

Referenced by ChangeSubtitleZoom(), HandleOSDClosed(), and SubtitleZoomHandleAction().

bool TV::subtitleDelayAdjustment
private

True if subtitle delay is turned on.

Definition at line 829 of file tv_play.h.

Referenced by ChangeSubtitleDelay(), HandleOSDClosed(), and SubtitleDelayHandleAction().

bool TV::editmode
private
bool TV::zoomMode
private

Definition at line 831 of file tv_play.h.

Referenced by ManualZoomHandleAction(), and SetManualZoom().

bool TV::sigMonMode
private

Are we in signal monitoring mode?

Definition at line 832 of file tv_play.h.

Referenced by ActiveHandleAction().

bool TV::endOfRecording
private

!player->IsPlaying() && StateIsPlaying()

Definition at line 833 of file tv_play.h.

Referenced by HandleEndOfPlaybackTimerEvent(), and HandleEndOfRecordingExitPromptTimerEvent().

bool TV::requestDelete
private

User wants last video deleted.

Definition at line 834 of file tv_play.h.

Referenced by ActiveHandleAction(), HandleOSDVideoExit(), HandleVideoExitDialogTimerEvent(), LiveTV(), Playback(), and StartTV().

bool TV::allowRerecord
private

User wants to rerecord the last video if deleted.

Definition at line 835 of file tv_play.h.

Referenced by HandleOSDVideoExit(), LiveTV(), and Playback().

bool TV::doSmartForward
private

Definition at line 836 of file tv_play.h.

Referenced by HandleOSDClosed(), SeekHandleAction(), and UpdateOSDSeekMessage().

bool TV::queuedTranscode
private

Definition at line 837 of file tv_play.h.

Referenced by DoQueueTranscode().

PictureAdjustType TV::adjustingPicture
private

Picture attribute type to modify.

Definition at line 839 of file tv_play.h.

Referenced by DoTogglePictureAttribute(), HandleOSDClosed(), and PictureAttributeHandleAction().

PictureAttribute TV::adjustingPictureAttribute
private

Picture attribute to modify (on arrow left or right)

Definition at line 841 of file tv_play.h.

Referenced by DoTogglePictureAttribute(), HandleOSDClosed(), OSDDialogEvent(), and PictureAttributeHandleAction().

QMap<QString,AskProgramInfo> TV::askAllowPrograms
private

Definition at line 844 of file tv_play.h.

Referenced by AskAllowRecording(), HandleOSDAskAllow(), and ShowOSDAskAllow().

QMutex TV::askAllowLock
private

Definition at line 845 of file tv_play.h.

Referenced by AskAllowRecording(), HandleOSDAskAllow(), and ShowOSDAskAllow().

MythDeque<QString> TV::changePxP
private

Definition at line 847 of file tv_play.h.

Referenced by HandlePxPTimerEvent(), and PxPHandleAction().

QMutex TV::progListsLock
private

Definition at line 848 of file tv_play.h.

Referenced by FillOSDMenuJumpRec(), and HandleJumpToProgramAction().

QMap<QString,ProgramList> TV::progLists
private

Definition at line 849 of file tv_play.h.

Referenced by FillOSDMenuJumpRec(), and HandleJumpToProgramAction().

QMutex TV::chanEditMapLock
mutableprivate

Lock for chanEditMap and ddMap.

Definition at line 851 of file tv_play.h.

Referenced by ChannelEditAutoFill(), ChannelEditDDFill(), GetDataDirect(), HandleOSDChannelEdit(), LoadDDMap(), RunLoadDDMap(), and StartChannelEditMode().

InfoMap TV::chanEditMap
private

Channel Editing initial map.

Definition at line 852 of file tv_play.h.

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

DDKeyMap TV::ddMap
private

DataDirect channel map.

Definition at line 854 of file tv_play.h.

Referenced by GetDataDirect(), and LoadDDMap().

uint TV::ddMapSourceId
private

DataDirect channel map sourceid.

Definition at line 855 of file tv_play.h.

Referenced by ChannelEditAutoFill(), ChannelEditDDFill(), GetDataDirect(), LoadDDMap(), StartChannelEditMode(), and ~TV().

DDLoader* TV::ddMapLoader
private

DataDirect map loader runnable.

Definition at line 856 of file tv_play.h.

Referenced by StartChannelEditMode(), and ~TV().

vector<SleepTimerInfo> TV::sleep_times
private

Vector or sleep timer sleep times in seconds, with the appropriate UI message.

Definition at line 860 of file tv_play.h.

Referenced by ToggleSleepTimer(), and TV().

uint TV::sleep_index
private

Index into sleep_times.

Definition at line 861 of file tv_play.h.

Referenced by Init(), and ToggleSleepTimer().

uint TV::sleepTimerTimeout
private

Current sleep timeout in msec.

Definition at line 862 of file tv_play.h.

Referenced by HandleOSDSleep(), ShowOSDSleep(), and ToggleSleepTimer().

int TV::sleepTimerId
private

Timer for turning off playback.

Definition at line 863 of file tv_play.h.

Referenced by HandleOSDSleep(), MenuItemDisplayPlayback(), ShowOSDSleep(), timerEvent(), and ToggleSleepTimer().

int TV::sleepDialogTimerId
private

Timer for sleep dialog.

Definition at line 864 of file tv_play.h.

Referenced by HandleOSDSleep(), ShowOSDSleep(), SleepDialogTimeout(), and timerEvent().

int TV::idleTimerId
private

Timer for turning off playback after idle period.

Definition at line 866 of file tv_play.h.

Referenced by HandleOSDIdle(), LiveTV(), ProcessKeypress(), ShowOSDIdle(), and timerEvent().

int TV::idleDialogTimerId
private

Timer for idle dialog.

Definition at line 867 of file tv_play.h.

Referenced by HandleOSDIdle(), IdleDialogTimeout(), ShowOSDIdle(), and timerEvent().

MythTimer TV::keyRepeatTimer
private

Queue of unprocessed key presses.

Timeout timer for repeat key filtering

Definition at line 870 of file tv_play.h.

Referenced by DoSeek(), and TV().

bool TV::ccInputMode
private

Are we in CC/Teletext page/stream selection mode?

Definition at line 874 of file tv_play.h.

Referenced by ActiveHandleAction(), AddKeyToInputQueue(), CommitQueuedInput(), HandleTrackAction(), and timerEvent().

bool TV::asInputMode
private

Are we in Arbitrary seek input mode?

Definition at line 878 of file tv_play.h.

Referenced by ActiveHandleAction(), AddKeyToInputQueue(), CommitQueuedInput(), HandleTrackAction(), and timerEvent().

QString TV::queuedInput
private

Input key presses queued up so far...

Definition at line 882 of file tv_play.h.

Referenced by AddKeyToInputQueue(), ChangeChannel(), ClearInputQueues(), GetQueuedInput(), GetQueuedInputAsInt(), OSDDialogEvent(), and PopPreviousChannel().

QString TV::queuedChanNum
mutableprivate
uint TV::queuedChanID
private

Queued ChanID (from EPG channel selector)

Definition at line 886 of file tv_play.h.

Referenced by ChangeChannel(), ClearInputQueues(), OSDDialogEvent(), PopPreviousChannel(), ProcessNetworkControlCommand(), and timerEvent().

uint TV::initialChanID
private

Initial chanid override for Live TV.

Definition at line 888 of file tv_play.h.

Referenced by HandleStateChange(), and RequestNextRecorder().

QTime TV::lockTimer
private

Definition at line 891 of file tv_play.h.

Referenced by HandleStateChange(), PauseLiveTV(), SwitchCards(), and UpdateOSDTimeoutMessage().

bool TV::lockTimerOn
private
QDateTime TV::lastLockSeenTime
private

Definition at line 893 of file tv_play.h.

Referenced by HandleStateChange(), and UpdateOSDSignal().

TVBrowseHelper* TV::browsehelper
private
QMutex TV::lastProgramLock
mutableprivate

Definition at line 900 of file tv_play.h.

Referenced by GetLastProgram(), and SetLastProgram().

ProgramInfo* TV::lastProgram
private

last program played with this player

Definition at line 901 of file tv_play.h.

Referenced by GetLastProgram(), MenuItemDisplayPlayback(), SetLastProgram(), timerEvent(), and ~TV().

bool TV::inPlaylist
private
bool TV::underNetworkControl
private

initial show started via by the network control interface

Definition at line 903 of file tv_play.h.

Referenced by ActiveHandleAction(), HandleEndOfPlaybackTimerEvent(), HandleEndOfRecordingExitPromptTimerEvent(), and HandleStateChange().

PIPState TV::jumpToProgramPIPState
private

Definition at line 906 of file tv_play.h.

Referenced by HandleJumpToProgramAction().

bool TV::jumpToProgram
private
vector<PlayerContext*> TV::player
private
int TV::playerActive
private

Video Player to which events are sent to.

Definition at line 912 of file tv_play.h.

Referenced by GetPlayerHaveLock(), GetPlayerReadLock(), GetPlayerWriteLock(), PxPSwap(), RestartMainPlayer(), SetActive(), TeardownPlayer(), and TV().

QReadWriteLock TV::playerLock
mutableprivate

lock on player and playerActive changes

Definition at line 914 of file tv_play.h.

Referenced by GetPlayerReadLock(), GetPlayerWriteLock(), ReturnPlayerLock(), and TV().

bool TV::noHardwareDecoders
private

Definition at line 916 of file tv_play.h.

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

RemoteEncoder* TV::switchToRec
private

Main recorder to use after a successful SwitchCards() call.

Definition at line 920 of file tv_play.h.

Referenced by Init(), LiveTV(), and RequestNextRecorder().

QMap<OSD*,const PlayerContext*> TV::osd_lctx
private

Definition at line 923 of file tv_play.h.

Referenced by GetOSDL(), and ReturnOSDLock().

QString TV::lcdTitle
private

Definition at line 926 of file tv_play.h.

Referenced by HandleLCDVolumeTimerEvent(), ShowLCDChannelInfo(), and ShowLCDDVDInfo().

QString TV::lcdSubtitle
private

Definition at line 927 of file tv_play.h.

Referenced by HandleLCDVolumeTimerEvent(), ShowLCDChannelInfo(), and ShowLCDDVDInfo().

QString TV::lcdCallsign
private

Definition at line 928 of file tv_play.h.

Referenced by HandleLCDVolumeTimerEvent(), ShowLCDChannelInfo(), and ShowLCDDVDInfo().

TvPlayWindow* TV::myWindow
private

Our screen, if it exists.

player bounds, for after DoEditSchedule() returns to normal playing.

Definition at line 931 of file tv_play.h.

Referenced by customEvent(), HandleStateChange(), Init(), and ~TV().

QRect TV::player_bounds
private

Prior GUI window bounds, for DoEditSchedule() and player exit().

Definition at line 933 of file tv_play.h.

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

QRect TV::saved_gui_bounds
private

Definition at line 935 of file tv_play.h.

Referenced by DoEditSchedule(), Init(), and ~TV().

bool TV::weDisabledGUI
private

true if this instance disabled MythUI drawing.

Definition at line 937 of file tv_play.h.

Referenced by customEvent(), DoEditSchedule(), HandleStateChange(), and ~TV().

bool TV::disableDrawUnusedRects
private

true if video chromakey and frame should not be drawn

Definition at line 939 of file tv_play.h.

Referenced by customEvent(), DoEditSchedule(), and DrawUnusedRects().

bool TV::isEmbedded
private

are we currently embedded

Definition at line 942 of file tv_play.h.

Referenced by customEvent(), and DoEditSchedule().

bool TV::ignoreKeyPresses
private

should we ignore keypresses

Definition at line 943 of file tv_play.h.

Referenced by customEvent(), DoEditSchedule(), and eventFilter().

vector<bool> TV::saved_pause
private

saved pause state before embedding

Definition at line 944 of file tv_play.h.

Referenced by customEvent(), and DoEditSchedule().

QMutex TV::is_tunable_cache_lock
mutableprivate

Definition at line 947 of file tv_play.h.

Referenced by ClearTunableCache(), and IsTunableOn().

QMap< uint,vector<InputInfo> > TV::is_tunable_cache_inputs
private

Definition at line 948 of file tv_play.h.

Referenced by ClearTunableCache(), and IsTunableOn().

QMutex TV::channelGroupLock
mutableprivate

Lock necessary when modifying channel group variables.

These are only modified in UI thread, so no lock is needed to read this value in the UI thread.

Definition at line 954 of file tv_play.h.

Referenced by ChangeChannel(), OSDDialogEvent(), TVBrowseHelper::run(), and UpdateChannelList().

volatile int TV::channelGroupId
private
ChannelInfoList TV::channelGroupChannelList
private
MythDeque<QString> TV::networkControlCommands
private

Definition at line 959 of file tv_play.h.

Referenced by customEvent(), and timerEvent().

QMutex TV::timerIdLock
mutableprivate
volatile int TV::lcdTimerId
private

Definition at line 965 of file tv_play.h.

Referenced by HandleLCDTimerEvent(), Init(), timerEvent(), and UpdateLCD().

volatile int TV::lcdVolumeTimerId
private

Definition at line 966 of file tv_play.h.

Referenced by ChangeVolume(), HandleLCDVolumeTimerEvent(), and timerEvent().

volatile int TV::networkControlTimerId
private

Definition at line 967 of file tv_play.h.

Referenced by customEvent(), and timerEvent().

volatile int TV::jumpMenuTimerId
private

Definition at line 968 of file tv_play.h.

Referenced by HandleJumpToProgramAction(), and timerEvent().

volatile int TV::pipChangeTimerId
private

Definition at line 969 of file tv_play.h.

Referenced by HandlePxPTimerEvent(), PxPHandleAction(), and timerEvent().

volatile int TV::switchToInputTimerId
private

Definition at line 970 of file tv_play.h.

Referenced by OSDDialogEvent(), SwitchSource(), and timerEvent().

volatile int TV::ccInputTimerId
private

Definition at line 971 of file tv_play.h.

Referenced by ActiveHandleAction(), HandleTrackAction(), and timerEvent().

volatile int TV::asInputTimerId
private

Definition at line 972 of file tv_play.h.

Referenced by ActiveHandleAction(), HandleTrackAction(), and timerEvent().

volatile int TV::queueInputTimerId
private
volatile int TV::browseTimerId
private
volatile int TV::updateOSDPosTimerId
private

Definition at line 975 of file tv_play.h.

Referenced by SetUpdateOSDPosition(), and timerEvent().

volatile int TV::updateOSDDebugTimerId
private

Definition at line 976 of file tv_play.h.

Referenced by timerEvent(), and ToggleOSDDebug().

volatile int TV::endOfPlaybackTimerId
private

Definition at line 977 of file tv_play.h.

Referenced by HandleEndOfPlaybackTimerEvent(), HandleStateChange(), and timerEvent().

volatile int TV::embedCheckTimerId
private

Definition at line 978 of file tv_play.h.

Referenced by StartEmbedding(), StopEmbedding(), and timerEvent().

volatile int TV::endOfRecPromptTimerId
private

Definition at line 979 of file tv_play.h.

Referenced by HandleStateChange(), and timerEvent().

volatile int TV::videoExitDialogTimerId
private
volatile int TV::pseudoChangeChanTimerId
private

Definition at line 981 of file tv_play.h.

Referenced by customEvent(), HandlePseudoLiveTVTimerEvent(), and timerEvent().

volatile int TV::speedChangeTimerId
private

Definition at line 982 of file tv_play.h.

Referenced by HandleSpeedChangeTimerEvent(), Init(), SetSpeedChangeTimer(), and timerEvent().

volatile int TV::errorRecoveryTimerId
private

Definition at line 983 of file tv_play.h.

Referenced by Init(), SetErrored(), and timerEvent().

volatile int TV::exitPlayerTimerId
mutableprivate
volatile int TV::saveLastPlayPosTimerId
private

Definition at line 985 of file tv_play.h.

Referenced by HandleSaveLastPlayPosEvent(), Init(), and timerEvent().

TimerContextMap TV::stateChangeTimerId
private

Definition at line 986 of file tv_play.h.

Referenced by ScheduleStateChange(), and timerEvent().

TimerContextMap TV::signalMonitorTimerId
private

Definition at line 987 of file tv_play.h.

Referenced by timerEvent(), and UpdateOSDSignal().

PlayerContext* TV::m_tvmCtx
private
OSD* TV::m_tvmOsd
private
QStringList TV::m_tvm_tracks[kTrackTypeCount]
private

Definition at line 997 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_curtrack[kTrackTypeCount]
private

Definition at line 998 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_avsync
private

Definition at line 1001 of file tv_play.h.

Referenced by PlaybackMenuInit().

bool TV::m_tvm_visual
private

Definition at line 1002 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QString TV::m_tvm_active
private

Definition at line 1003 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_upmixing
private

Definition at line 1004 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_canupmix
private

Definition at line 1005 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QStringList TV::m_tvm_visualisers
private

Definition at line 1006 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

AspectOverrideMode TV::m_tvm_aspectoverride
private

Definition at line 1009 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

AdjustFillMode TV::m_tvm_adjustfill
private

Definition at line 1010 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_fill_autodetect
private

Definition at line 1011 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

uint TV::m_tvm_sup
private

Definition at line 1012 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_studio_levels
private

Definition at line 1013 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_stereoallowed
private

Definition at line 1014 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

StereoscopicMode TV::m_tvm_stereomode
private

Definition at line 1015 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

FrameScanType TV::m_tvm_scan_type
private

Definition at line 1016 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

FrameScanType TV::m_tvm_scan_type_unlocked
private

Definition at line 1017 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_scan_type_locked
private

Definition at line 1018 of file tv_play.h.

Referenced by PlaybackMenuInit().

QString TV::m_tvm_cur_mode
private

Definition at line 1019 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QStringList TV::m_tvm_deinterlacers
private

Definition at line 1020 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QString TV::m_tvm_currentdeinterlacer
private

Definition at line 1021 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_doublerate
private

Definition at line 1022 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_speedX100
private

Definition at line 1025 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

TVState TV::m_tvm_state
private

Definition at line 1026 of file tv_play.h.

Referenced by PlaybackMenuInit().

bool TV::m_tvm_isrecording
private

Definition at line 1027 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_isrecorded
private

Definition at line 1028 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_isvideo
private

Definition at line 1029 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

CommSkipMode TV::m_tvm_curskip
private

Definition at line 1030 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_ispaused
private

Definition at line 1031 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_allowPIP
private

Definition at line 1032 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_allowPBP
private

Definition at line 1033 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_hasPIP
private

Definition at line 1034 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_hasPBP
private

Definition at line 1035 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_freerecordercount
private

Definition at line 1036 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), MenuLazyInit(), and PlaybackMenuInit().

bool TV::m_tvm_isdvd
private

Definition at line 1037 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_isbd
private

Definition at line 1038 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_jump
private

Definition at line 1039 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_islivetv
private

Definition at line 1040 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_previouschan
private

Definition at line 1041 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_num_chapters
private

Definition at line 1044 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_current_chapter
private

Definition at line 1045 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QList<long long> TV::m_tvm_chapter_times
private

Definition at line 1046 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_num_angles
private

Definition at line 1047 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_current_angle
private

Definition at line 1048 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_num_titles
private

Definition at line 1049 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

int TV::m_tvm_current_title
private

Definition at line 1050 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

uint TV::m_tvm_subs_capmode
private

Definition at line 1053 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_subs_havetext
private

Definition at line 1054 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_subs_forcedon
private

Definition at line 1055 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_subs_enabled
private

Definition at line 1056 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_subs_have_subs
private

Definition at line 1057 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_is_on
private

Definition at line 1059 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

bool TV::m_tvm_transcoding
private

Definition at line 1060 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), and PlaybackMenuInit().

QVariant TV::m_tvm_jumprec_back_hack
private

Definition at line 1062 of file tv_play.h.

Referenced by FillOSDMenuJumpRec(), and MenuItemDisplayPlayback().

MenuBase TV::m_playbackMenu
private

Definition at line 1065 of file tv_play.h.

Referenced by MenuItemDisplay(), PlaybackMenuInit(), PlaybackMenuShow(), and ShowOSDMenu().

MenuBase TV::m_playbackCompactMenu
private

Definition at line 1066 of file tv_play.h.

Referenced by MenuItemDisplay(), PlaybackMenuInit(), PlaybackMenuShow(), and ShowOSDMenu().

MenuBase TV::m_cutlistMenu
private

Definition at line 1067 of file tv_play.h.

Referenced by MenuItemDisplay(), PlaybackMenuShow(), and ShowOSDCutpoint().

MenuBase TV::m_cutlistCompactMenu
private

Definition at line 1068 of file tv_play.h.

Referenced by MenuItemDisplay(), PlaybackMenuShow(), and ShowOSDCutpoint().

const int TV::kInitFFRWSpeed = 0
static

1x, default to normal speed

Definition at line 1072 of file tv_play.h.

Referenced by ChangeFFRew(), PlayerContext::HandlePlayerSpeedChangeFFRew(), Init(), ProcessNetworkControlCommand(), and StopFFRew().

const uint TV::kInputKeysMax = 6
static

When to start discarding early keys.

Definition at line 1073 of file tv_play.h.

Referenced by AddKeyToInputQueue().

const uint TV::kNextSource = 1
static

Definition at line 1074 of file tv_play.h.

Referenced by ActivePostQHandleAction(), and SwitchSource().

const uint TV::kPreviousSource = 2
static

Definition at line 1075 of file tv_play.h.

Referenced by ActivePostQHandleAction(), and SwitchSource().

const uint TV::kMaxPIPCount = 4
static

Definition at line 1076 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), PxPCreateView(), and PxPToggleType().

const uint TV::kMaxPBPCount = 2
static

Timeout for entry modes in msec.

Definition at line 1077 of file tv_play.h.

Referenced by MenuItemDisplayPlayback(), PxPCreateView(), and PxPToggleType().

const uint TV::kInputModeTimeout = 5000
static

Definition at line 1080 of file tv_play.h.

Referenced by ActiveHandleAction(), and HandleTrackAction().

const uint TV::kLCDTimeout = 1000
static

Timeout for updating LCD info in msec.

Definition at line 1082 of file tv_play.h.

Referenced by HandleLCDTimerEvent().

const uint TV::kBrowseTimeout = 30000
static

Timeout for browse mode exit in msec.

Definition at line 1084 of file tv_play.h.

Referenced by TVBrowseHelper::BrowseDispInfo().

const uint TV::kKeyRepeatTimeout = 300
static

Seek key repeat timeout in msec.

Definition at line 1086 of file tv_play.h.

Referenced by DoSeek().

const uint TV::kPrevChanTimeout = 750
static

How long to wait before applying all previous channel keypresses in msec.

Definition at line 1088 of file tv_play.h.

const uint TV::kSleepTimerDialogTimeout = 45000
static

How long to display sleep timer dialog in msec.

Definition at line 1090 of file tv_play.h.

Referenced by ShowOSDSleep().

const uint TV::kIdleTimerDialogTimeout = 45000
static

How long to display idle timer dialog in seconds.

Definition at line 1092 of file tv_play.h.

Referenced by ShowOSDIdle().

const uint TV::kVideoExitDialogTimeout = 120000
static

How long to display idle timer dialog in msec.

Definition at line 1094 of file tv_play.h.

Referenced by ShowOSDPromptDeleteRecording(), and ShowOSDStopWatchingRecording().

const uint TV::kEndOfPlaybackCheckFrequency = 250
static

Definition at line 1096 of file tv_play.h.

Referenced by HandleEndOfPlaybackTimerEvent().

const uint TV::kEmbedCheckFrequency = 250
static

Definition at line 1097 of file tv_play.h.

Referenced by StartEmbedding().

const uint TV::kSpeedChangeCheckFrequency = 250
static

Definition at line 1098 of file tv_play.h.

Referenced by HandleSpeedChangeTimerEvent(), and Init().

const uint TV::kErrorRecoveryCheckFrequency = 250
static

Definition at line 1099 of file tv_play.h.

Referenced by Init(), and timerEvent().

const uint TV::kEndOfRecPromptCheckFrequency = 250
static

Definition at line 1100 of file tv_play.h.

Referenced by HandleStateChange().

const uint TV::kEndOfPlaybackFirstCheckTimer = 60000
static

Definition at line 1101 of file tv_play.h.

Referenced by HandleStateChange().

const uint TV::kSaveLastPlayPosTimeout = 30000
static

Definition at line 1102 of file tv_play.h.

Referenced by HandleSaveLastPlayPosEvent(), and Init().


The documentation for this class was generated from the following files: