MythTV  master
Classes | Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
PlaybackBox Class Reference

#include <playbackbox.h>

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

Classes

class  PbbJobQueue
 

Public Types

enum  ViewType {
  TitlesOnly = 0, TitlesCategories = 1, TitlesCategoriesRecGroups = 2, TitlesRecGroups = 3,
  Categories = 4, CategoriesRecGroups = 5, RecGroups = 6, ViewTypes
}
 
enum  ViewTitleSort { TitleSortAlphabetical = 0, TitleSortRecPriority = 1, TitleSortMethods }
 
enum  ViewMask {
  VIEW_NONE = 0x0000, VIEW_TITLES = 0x0001, VIEW_CATEGORIES = 0x0002, VIEW_RECGROUPS = 0x0004,
  VIEW_WATCHLIST = 0x0008, VIEW_SEARCHES = 0x0010, VIEW_LIVETVGRP = 0x0020, VIEW_WATCHED = 0x8000
}
 
enum  DeletePopupType { kDeleteRecording, kStopRecording, kForceDeleteRecording }
 
enum  DeleteFlags {
  kNoFlags = 0x00, kForgetHistory = 0x01, kForce = 0x02, kIgnore = 0x04,
  kAllRemaining = 0x08
}
 
enum  killStateType { kNvpToPlay, kNvpToStop, kDone }
 

Public Slots

void displayRecGroup (const QString &newRecGroup="")
 
void groupSelectorClosed (void)
 
- Public Slots inherited from ScheduleCommon
virtual void ShowDetails (void) const
 Show the Program Details screen. More...
 
- Public Slots inherited from MythScreenType
virtual void Close ()
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Public Member Functions

 PlaybackBox (MythScreenStack *parent, const QString &name, TV *player=nullptr, bool showTV=false)
 
 ~PlaybackBox (void)
 
bool Create (void) override
 
void Load (void) override
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
void Init (void) override
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() More...
 
bool keyPressEvent (QKeyEvent *) override
 Key event handler. More...
 
void customEvent (QEvent *event) override
 
void setInitialRecGroup (const QString &initialGroup)
 
- Public Member Functions inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
virtual ~MythScreenType ()
 
bool gestureEvent (MythGestureEvent *) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
void doInit (void)
 
void LoadInForeground (void)
 
bool IsInitialized (void) const
 Has Init() been called on this screen? More...
 
bool IsFullscreen (void) const
 
void SetFullscreen (bool full)
 
MythUITypeGetFocusWidget (void) const
 
bool SetFocusWidget (MythUIType *widget=nullptr)
 
virtual bool NextPrevWidgetFocus (bool up_or_down)
 
void BuildFocusList (void)
 
MythScreenStackGetScreenStack () const
 
virtual void aboutToHide (void)
 
virtual void aboutToShow (void)
 
bool IsDeleting (void) const
 
void SetDeleting (bool deleting)
 
bool IsLoading (void)
 
bool IsLoaded (void)
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
virtual ~MythUIComposite ()=default
 
virtual void SetTextFromMap (const InfoMap &infoMap)
 
virtual void ResetMap (const InfoMap &infoMap)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int)
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const QSize &size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (const MythRect &rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area. More...
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 

Static Public Member Functions

static void * RunPlaybackBox (void *player, bool)
 
- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Protected Slots

void updateRecList (MythUIButtonListItem *)
 
void ItemSelected (MythUIButtonListItem *item)
 
void ItemVisible (MythUIButtonListItem *item)
 
void ItemLoaded (MythUIButtonListItem *item)
 
void selected (MythUIButtonListItem *item)
 
void updateRecGroup (MythUIButtonListItem *sel_item)
 
void PlayFromBookmarkOrProgStart (MythUIButtonListItem *item=nullptr)
 
void PlayFromBookmark (MythUIButtonListItem *item=nullptr)
 
void PlayFromBeginning (MythUIButtonListItem *item=nullptr)
 
void PlayFromLastPlayPos (MythUIButtonListItem *item=nullptr)
 
void deleteSelected (MythUIButtonListItem *item)
 
void ClearBookmark ()
 
void SwitchList (void)
 
void ShowGroupPopup (void)
 
void StopSelected (void)
 
void showMetadataEditor ()
 
void showGroupFilter ()
 
void showRecGroupPasswordChanger ()
 
MythMenucreatePlayFromMenu ()
 
MythMenucreateRecordingMenu ()
 
MythMenucreateJobMenu ()
 
MythMenucreateTranscodingProfilesMenu ()
 
MythMenucreateStorageMenu ()
 
MythMenucreatePlaylistMenu ()
 
MythMenucreatePlaylistStorageMenu ()
 
MythMenucreatePlaylistJobMenu ()
 
void changeProfileAndTranscode (int id)
 
void showIconHelp ()
 
void ShowRecGroupChangerUsePlaylist (void)
 
void ShowPlayGroupChangerUsePlaylist (void)
 
void ShowRecGroupChanger (bool use_playlist=false)
 Used to change the recording group of a program or playlist. More...
 
void ShowPlayGroupChanger (bool use_playlist=false)
 Used to change the play group of a program or playlist. More...
 
void popupClosed (const QString &which, int result)
 
void doPlayListRandom ()
 
void askStop ()
 
void doAllowRerecord ()
 Callback function when Allow Re-record is pressed in Watch Recordings. More...
 
void askDelete ()
 
void Undelete (void)
 
void Delete (DeleteFlags=kNoFlags)
 
void DeleteForgetHistory (void)
 
void DeleteForce (void)
 
void DeleteIgnore (void)
 
void DeleteForceAllRemaining (void)
 
void DeleteIgnoreAllRemaining (void)
 
void ShowRecordedEpisodes ()
 
void ShowAllRecordings ()
 
void toggleWatched ()
 
void toggleAutoExpire ()
 
void togglePreserveEpisode ()
 
void toggleView (ViewMask itemMask, bool setOn)
 
void toggleTitleView (bool setOn)
 
void toggleCategoryView (bool setOn)
 
void toggleRecGroupView (bool setOn)
 
void toggleWatchListView (bool setOn)
 
void toggleSearchView (bool setOn)
 
void toggleLiveTVView (bool setOn)
 
void toggleWatchedView (bool setOn)
 
void setGroupFilter (const QString &newRecGroup)
 
void setRecGroup (QString newRecGroup)
 
void setPlayGroup (QString newPlayGroup)
 
void saveRecMetadata (const QString &newTitle, const QString &newSubtitle, const QString &newDescription, const QString &newInetref, uint season, uint episode)
 
void SetRecGroupPassword (const QString &newPassword)
 
void doJobQueueJob (int jobType, int jobFlags=0)
 
void doPlaylistJobQueueJob (int jobType, int jobFlags=0)
 
void stopPlaylistJobQueueJob (int jobType)
 
void doBeginFlagging ()
 
void doBeginLookup ()
 
void doBeginTranscoding ()
 
void doBeginUserJob1 ()
 
void doBeginUserJob2 ()
 
void doBeginUserJob3 ()
 
void doBeginUserJob4 ()
 
void doPlaylistBeginTranscoding ()
 
void stopPlaylistTranscoding ()
 
void doPlaylistBeginFlagging ()
 
void stopPlaylistFlagging ()
 
void doPlaylistBeginLookup ()
 
void stopPlaylistLookup ()
 
void doPlaylistBeginUserJob1 ()
 
void stopPlaylistUserJob1 ()
 
void doPlaylistBeginUserJob2 ()
 
void stopPlaylistUserJob2 ()
 
void doPlaylistBeginUserJob3 ()
 
void stopPlaylistUserJob3 ()
 
void doPlaylistBeginUserJob4 ()
 
void stopPlaylistUserJob4 ()
 
void doClearPlaylist ()
 
void PlaylistDeleteForgetHistory (void)
 
void PlaylistDelete (bool forgetHistory=false)
 
void doPlaylistExpireSetting (bool turnOn)
 
void doPlaylistExpireSetOn ()
 
void doPlaylistExpireSetOff ()
 
void doPlaylistWatchedSetting (bool turnOn)
 
void doPlaylistWatchedSetOn ()
 
void doPlaylistWatchedSetOff ()
 
void doPlaylistAllowRerecord ()
 
void togglePlayListTitle (void)
 
void togglePlayListItem (void)
 
void playSelectedPlaylist (bool random)
 
void doPlayList (void)
 
void showViewChanger (void)
 
void saveViewChanges (void)
 
void checkPassword (const QString &password)
 
void passwordClosed (void)
 
void fanartLoad (void)
 
void bannerLoad (void)
 
void coverartLoad (void)
 
- Protected Slots inherited from ScheduleCommon
virtual void EditRecording (bool may_watch_now=false)
 Creates a dialog for editing the recording status, blocking until user leaves dialog. More...
 
virtual void QuickRecord (void)
 Create a kSingleRecord or bring up recording dialog. More...
 
virtual void ShowPrevious (void) const
 Show the previous recordings for this recording rule. More...
 
virtual void ShowPrevious (uint ruleid, const QString &title) const
 Show the previous recordings for this recording rule. More...
 
virtual void ShowUpcoming (void) const
 Show the upcoming recordings for this title. More...
 
virtual void ShowUpcomingScheduled (void) const
 Show the upcoming recordings for this recording rule. More...
 
virtual void ShowChannelSearch (void) const
 Show the channel search. More...
 
virtual void ShowGuide (void) const
 Show the program guide. More...
 
virtual void EditScheduled (void)
 Creates a dialog for editing the recording schedule. More...
 
virtual void EditCustom (void)
 Creates a dialog for creating a custom recording rule. More...
 

Private Types

typedef QPair< QString, QString > RecGroup
 

Private Member Functions

bool UpdateUILists (void)
 
void UpdateUIGroupList (const QStringList &groupPreferences)
 
void UpdateUIRecGroupList (void)
 
void UpdateProgressBar (void)
 
void PlayX (const ProgramInfo &pginfo, bool ignoreBookmark, bool ignoreProgStart, bool ignoreLastPlayPos, bool underNetworkControl)
 
bool Play (const ProgramInfo &rec, bool inPlaylist, bool ignoreBookmark, bool ignoreProgStart, bool ignoreLastPlayPos, bool underNetworkControl)
 
ProgramInfoGetCurrentProgram (void) const override
 
void togglePlayListItem (ProgramInfo *pginfo)
 
void randomizePlayList (void)
 
void processNetworkControlCommands (void)
 
void processNetworkControlCommand (const QString &command)
 
ProgramInfoFindProgramInUILists (const ProgramInfo &)
 
ProgramInfoFindProgramInUILists (uint recordingID, const QString &recgroup="NotLiveTV")
 
void RemoveProgram (uint recordingID, bool forgetHistory, bool forceMetadataDelete)
 
void ShowDeletePopup (DeletePopupType)
 
void ShowActionPopup (const ProgramInfo &)
 
QString getRecGroupPassword (const QString &recGroup)
 
void fillRecGroupPasswordCache (void)
 
bool IsUsageUIVisible (void) const
 
void updateIcons (const ProgramInfo *pginfo=nullptr)
 
void UpdateUsageUI (void)
 
void updateGroupInfo (const QString &groupname, const QString &grouplabel)
 
void SetItemIcons (MythUIButtonListItem *item, ProgramInfo *pginfo)
 
void UpdateUIListItem (ProgramInfo *pginfo, bool force_preview_reload)
 
void UpdateUIListItem (MythUIButtonListItem *item, bool is_sel, bool force_preview_reload=true)
 
void HandlePreviewEvent (const QStringList &list)
 Updates the UI properties for a new preview file. More...
 
void HandleRecordingRemoveEvent (uint recordingID)
 
void HandleRecordingAddEvent (const ProgramInfo &evinfo)
 
void HandleUpdateProgramInfoEvent (const ProgramInfo &evinfo)
 
void HandleUpdateProgramInfoFileSizeEvent (uint recordingID, uint64_t filesize)
 
void ScheduleUpdateUIList (void)
 
void ShowMenu (void) override
 
bool CreatePopupMenu (const QString &title)
 
void DisplayPopupMenu (void)
 
bool CreatePopupMenuPlaylist (void)
 
QString extract_job_state (const ProgramInfo &pginfo)
 
QString extract_commflag_state (const ProgramInfo &pginfo)
 

Static Private Member Functions

static void ShowAvailabilityPopup (const ProgramInfo &)
 
static QString CreateProgramInfoString (const ProgramInfo &pginfo)
 

Private Attributes

QRegExp m_titleChaff
 stuff to remove for search rules More...
 
MythUIButtonListm_recgroupList {nullptr}
 
MythUIButtonListm_groupList {nullptr}
 
MythUIButtonListm_recordingList {nullptr}
 
MythUITextm_noRecordingsText {nullptr}
 
MythUIImagem_previewImage {nullptr}
 
QString m_artHostOverride
 
MythUIImagem_artImage [3]
 
QTimer * m_artTimer [3]
 
InfoMap m_currentMap
 
bool m_titleView {false}
 titleView controls showing titles in group list More...
 
bool m_useCategories {false}
 useCategories controls showing categories in group list More...
 
bool m_useRecGroups {false}
 useRecGroups controls showing of recording groups in group list More...
 
bool m_watchListStart {false}
 use the Watch List as the initial view More...
 
bool m_watchListAutoExpire {false}
 exclude recording not marked for auto-expire from the Watch List More...
 
int m_watchListMaxAge {60}
 add 1 to the Watch List scord up to this many days More...
 
int m_watchListBlackOut {2}
 adjust exclusion of a title from the Watch List after a delete More...
 
int m_allOrder
 allOrder controls the ordering of the "All Programs" list More...
 
int m_listOrder {1}
 listOrder controls the ordering of the recordings in the list More...
 
QString m_groupDisplayName
 
QString m_recGroup
 
QString m_curGroupPassword
 
QString m_newRecGroup
 
QString m_watchGroupName
 
QString m_watchGroupLabel
 
ViewMask m_viewMask {VIEW_TITLES}
 
MythDialogBoxm_menuDialog {nullptr}
 
MythMenum_popupMenu {nullptr}
 
MythScreenStackm_popupStack {nullptr}
 
bool m_doToggleMenu {true}
 
QMap< QString, QString > m_recGroupType
 
QMap< QString, QString > m_recGroupPwCache
 
QStringList m_titleList
 list of pages More...
 
ProgramMap m_progLists
 lists of programs by page More...
 
int m_progsInDB {0}
 total number of recordings in DB More...
 
bool m_isFilling {false}
 
QStringList m_recGroups
 
QMutex m_recGroupsLock
 
int m_recGroupIdx {-1}
 
QStringList m_delList
 Recording[s] currently selected for deletion. More...
 
QString m_currentGroup
 Group currently selected. More...
 
QList< uintm_playList
 list of selected items "play list" More...
 
bool m_op_on_playlist {false}
 
QList< uintm_playListPlay
 list of items being played. More...
 
ProgramInfoCache m_programInfoCache
 
bool m_playingSomething {false}
 playingSomething is set to true iff a full screen recording is playing More...
 
bool m_needUpdate {false}
 Does the recording list need to be refilled. More...
 
bool m_haveGroupInfoSet {false}
 
QMutex m_ncLock
 
deque< QString > m_networkControlCommands
 
TVm_player {nullptr}
 
QStringList m_player_selected_new_show
 
PlaybackBoxHelper m_helper
 Main helper thread. More...
 
QSet< QString > m_preview_tokens
 Outstanding preview image requests. More...
 
bool m_firstGroup {true}
 
bool m_usingGroupSelector {false}
 
bool m_groupSelected {false}
 
bool m_passwordEntered {false}
 
class PlaybackBox::PbbJobQueue m_jobQueue
 

Friends

class PlaybackBoxListItem
 

Additional Inherited Members

- Signals inherited from MythScreenType
void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 
- Protected Member Functions inherited from ScheduleCommon
 ScheduleCommon (MythScreenStack *parent, const QString &name)
 
 ~ScheduleCommon ()=default
 
void customEvent (QEvent *) override
 
- Protected Member Functions inherited from MythScreenType
 MythScreenType (MythUIType *parent, const QString &name, bool fullscreen=true)
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
void LoadInBackground (const QString &message="")
 
void ReloadInBackground (void)
 
void OpenBusyPopup (const QString &message="")
 
void CloseBusyPopup (void)
 
void SetBusyPopupMessage (const QString &message)
 
void ResetBusyPopup (void)
 
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod)
 
void ConnectDependants (bool recurse=false)
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 
- Static Protected Member Functions inherited from ScheduleCommon
static void ShowUpcoming (const QString &title, const QString &seriesid)
 Show the upcoming recordings for this title. More...
 
static void EditScheduled (ProgramInfo *pginfo)
 Creates a dialog for editing the recording schedule. More...
 
static void EditScheduled (RecordingInfo *recinfo)
 Creates a dialog for editing the recording schedule. More...
 
static void MakeOverride (RecordingInfo *recinfo)
 Creates a dialog for editing an override recording schedule. More...
 
- Static Protected Member Functions inherited from MythUIType
static int NormX (const int width)
 
static int NormY (const int height)
 
- Protected Attributes inherited from MythScreenType
bool m_FullScreen {false}
 
bool m_IsDeleting {false}
 
QSemaphore m_LoadLock {1}
 
volatile bool m_IsLoading {false}
 
volatile bool m_IsLoaded {false}
 
bool m_IsInitialized {false}
 
MythUITypem_CurrentFocusWidget {nullptr}
 
QMap< int, MythUIType * > m_FocusWidgetList
 
MythScreenStackm_ScreenStack {nullptr}
 
MythUIBusyDialogm_BusyPopup {nullptr}
 
QRegion m_SavedMask
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_ChildrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_Visible {true}
 
bool m_HasFocus {false}
 
bool m_CanHaveFocus {false}
 
bool m_Enabled {true}
 
bool m_EnableInitiator {false}
 
bool m_Initiator {false}
 
bool m_Vanish {false}
 
bool m_Vanished {false}
 
bool m_IsDependDefault {false}
 
QMap< MythUIType *, boolm_ReverseDepend
 
int m_focusOrder {0}
 
MythRect m_Area {0,0,0,0}
 
MythRect m_MinArea {0,0,0,0}
 
MythPoint m_MinSize
 
QRegion m_DirtyRegion {0,0,0,0}
 
bool m_NeedsRedraw {false}
 
UIEffects m_Effects
 
int m_AlphaChangeMode {0}
 
int m_AlphaChange {0}
 
int m_AlphaMin {0}
 
int m_AlphaMax {255}
 
bool m_Moving {false}
 
QPoint m_XYDestination {0,0}
 
QPoint m_XYSpeed {0,0}
 
FontMapm_Fonts {nullptr}
 
MythUITypem_Parent {nullptr}
 
MythPainterm_Painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_BorderColor {Qt::black}
 

Detailed Description

Definition at line 58 of file playbackbox.h.

Member Typedef Documentation

◆ RecGroup

typedef QPair<QString, QString> PlaybackBox::RecGroup
private

Definition at line 394 of file playbackbox.h.

Member Enumeration Documentation

◆ ViewType

Enumerator
TitlesOnly 
TitlesCategories 
TitlesCategoriesRecGroups 
TitlesRecGroups 
Categories 
CategoriesRecGroups 
RecGroups 
ViewTypes 

Definition at line 65 of file playbackbox.h.

◆ ViewTitleSort

Enumerator
TitleSortAlphabetical 
TitleSortRecPriority 
TitleSortMethods 

Definition at line 77 of file playbackbox.h.

◆ ViewMask

Enumerator
VIEW_NONE 
VIEW_TITLES 
VIEW_CATEGORIES 
VIEW_RECGROUPS 
VIEW_WATCHLIST 
VIEW_SEARCHES 
VIEW_LIVETVGRP 
VIEW_WATCHED 

Definition at line 83 of file playbackbox.h.

◆ DeletePopupType

Enumerator
kDeleteRecording 
kStopRecording 
kForceDeleteRecording 

Definition at line 95 of file playbackbox.h.

◆ DeleteFlags

Enumerator
kNoFlags 
kForgetHistory 
kForce 
kIgnore 
kAllRemaining 

Definition at line 102 of file playbackbox.h.

◆ killStateType

Enumerator
kNvpToPlay 
kNvpToStop 
kDone 

Definition at line 111 of file playbackbox.h.

Constructor & Destructor Documentation

◆ PlaybackBox()

PlaybackBox::PlaybackBox ( MythScreenStack parent,
const QString &  name,
TV player = nullptr,
bool  showTV = false 
)

Definition at line 381 of file playbackbox.cpp.

Referenced by RunPlaybackBox().

◆ ~PlaybackBox()

PlaybackBox::~PlaybackBox ( void  )

Definition at line 471 of file playbackbox.cpp.

Member Function Documentation

◆ Create()

bool PlaybackBox::Create ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 491 of file playbackbox.cpp.

Referenced by RunPlaybackBox(), and startPlaybackWithGroup().

◆ Load()

void PlaybackBox::Load ( void  )
overridevirtual

Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning)

Warning
This method should only load data, it should NEVER perform UI routines or segfaults WILL result. This includes assinging data to any widgets, calling methods on a widget or anything else which triggers redraws. The safest and recommended approach is to avoid any interaction with a libmythui class or class member.

Reimplemented from MythScreenType.

Definition at line 548 of file playbackbox.cpp.

◆ Init()

void PlaybackBox::Init ( void  )
overridevirtual

Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()

Warning
Do NOT confuse this with Load(), they serve very different purposes and most often both should be used when creating a new screen.

Reimplemented from MythScreenType.

Definition at line 554 of file playbackbox.cpp.

◆ keyPressEvent()

bool PlaybackBox::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 3838 of file playbackbox.cpp.

◆ customEvent()

void PlaybackBox::customEvent ( QEvent *  event)
override

Definition at line 3981 of file playbackbox.cpp.

◆ setInitialRecGroup()

void PlaybackBox::setInitialRecGroup ( const QString &  initialGroup)
inline

Definition at line 128 of file playbackbox.h.

Referenced by startPlaybackWithGroup().

◆ RunPlaybackBox()

void * PlaybackBox::RunPlaybackBox ( void *  player,
bool  showTV 
)
static

Definition at line 366 of file playbackbox.cpp.

Referenced by SetFuncPtrs().

◆ displayRecGroup

void PlaybackBox::displayRecGroup ( const QString &  newRecGroup = "")
slot

Definition at line 589 of file playbackbox.cpp.

Referenced by Init(), keyPressEvent(), showGroupFilter(), and updateRecGroup().

◆ groupSelectorClosed

void PlaybackBox::groupSelectorClosed ( void  )
slot

Definition at line 4592 of file playbackbox.cpp.

Referenced by showGroupFilter().

◆ updateRecList

void PlaybackBox::updateRecList ( MythUIButtonListItem sel_item)
protectedslot

Definition at line 1395 of file playbackbox.cpp.

Referenced by Create(), and UpdateUIGroupList().

◆ ItemSelected

void PlaybackBox::ItemSelected ( MythUIButtonListItem item)
inlineprotectedslot

Definition at line 137 of file playbackbox.h.

Referenced by Create().

◆ ItemVisible

void PlaybackBox::ItemVisible ( MythUIButtonListItem item)
protectedslot

Definition at line 980 of file playbackbox.cpp.

Referenced by Create().

◆ ItemLoaded

void PlaybackBox::ItemLoaded ( MythUIButtonListItem item)
protectedslot

Definition at line 899 of file playbackbox.cpp.

Referenced by Create(), and ItemVisible().

◆ selected

void PlaybackBox::selected ( MythUIButtonListItem item)
protectedslot

Definition at line 2385 of file playbackbox.cpp.

◆ updateRecGroup

void PlaybackBox::updateRecGroup ( MythUIButtonListItem sel_item)
protectedslot

Definition at line 1389 of file playbackbox.cpp.

Referenced by Create().

◆ PlayFromBookmarkOrProgStart

void PlaybackBox::PlayFromBookmarkOrProgStart ( MythUIButtonListItem item = nullptr)
protectedslot

Definition at line 2204 of file playbackbox.cpp.

Referenced by Create(), keyPressEvent(), selected(), and ShowActionPopup().

◆ PlayFromBookmark

void PlaybackBox::PlayFromBookmark ( MythUIButtonListItem item = nullptr)
protectedslot

Definition at line 2223 of file playbackbox.cpp.

Referenced by createPlayFromMenu().

◆ PlayFromBeginning

void PlaybackBox::PlayFromBeginning ( MythUIButtonListItem item = nullptr)
protectedslot

Definition at line 2242 of file playbackbox.cpp.

Referenced by createPlayFromMenu().

◆ PlayFromLastPlayPos

void PlaybackBox::PlayFromLastPlayPos ( MythUIButtonListItem item = nullptr)
protectedslot

Definition at line 2261 of file playbackbox.cpp.

Referenced by createPlayFromMenu().

◆ deleteSelected

void PlaybackBox::deleteSelected ( MythUIButtonListItem item)
protectedslot

Definition at line 2319 of file playbackbox.cpp.

Referenced by keyPressEvent().

◆ ClearBookmark

void PlaybackBox::ClearBookmark ( )
protectedslot

Definition at line 2305 of file playbackbox.cpp.

Referenced by createPlayFromMenu().

◆ SwitchList

void PlaybackBox::SwitchList ( void  )
protectedslot

Definition at line 581 of file playbackbox.cpp.

Referenced by Create().

◆ ShowGroupPopup

void PlaybackBox::ShowGroupPopup ( void  )
protectedslot

Definition at line 2435 of file playbackbox.cpp.

Referenced by popupClosed(), and ShowMenu().

◆ StopSelected

void PlaybackBox::StopSelected ( void  )
protectedslot

Definition at line 2312 of file playbackbox.cpp.

Referenced by ShowDeletePopup().

◆ showMetadataEditor

void PlaybackBox::showMetadataEditor ( )
protectedslot

Definition at line 4816 of file playbackbox.cpp.

Referenced by createRecordingMenu().

◆ showGroupFilter

void PlaybackBox::showGroupFilter ( void  )
protectedslot

Definition at line 4469 of file playbackbox.cpp.

Referenced by Init(), keyPressEvent(), passwordClosed(), and ShowGroupPopup().

◆ showRecGroupPasswordChanger

void PlaybackBox::showRecGroupPasswordChanger ( void  )
protectedslot

Definition at line 5011 of file playbackbox.cpp.

Referenced by ShowGroupPopup().

◆ createPlayFromMenu

MythMenu * PlaybackBox::createPlayFromMenu ( )
protectedslot

Definition at line 2973 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ createRecordingMenu

MythMenu * PlaybackBox::createRecordingMenu ( void  )
protectedslot

Definition at line 3019 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ createJobMenu

MythMenu * PlaybackBox::createJobMenu ( )
protectedslot

Definition at line 3042 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ createTranscodingProfilesMenu

MythMenu * PlaybackBox::createTranscodingProfilesMenu ( )
protectedslot

Definition at line 3124 of file playbackbox.cpp.

Referenced by createJobMenu().

◆ createStorageMenu

MythMenu * PlaybackBox::createStorageMenu ( )
protectedslot

Definition at line 2998 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ createPlaylistMenu

MythMenu * PlaybackBox::createPlaylistMenu ( void  )
protectedslot

Definition at line 2748 of file playbackbox.cpp.

Referenced by ShowActionPopup(), and ShowGroupPopup().

◆ createPlaylistStorageMenu

MythMenu * PlaybackBox::createPlaylistStorageMenu ( )
protectedslot

Definition at line 2781 of file playbackbox.cpp.

Referenced by createPlaylistMenu().

◆ createPlaylistJobMenu

MythMenu * PlaybackBox::createPlaylistJobMenu ( void  )
protectedslot

Definition at line 2799 of file playbackbox.cpp.

Referenced by createPlaylistMenu().

◆ changeProfileAndTranscode

void PlaybackBox::changeProfileAndTranscode ( int  id)
protectedslot

Definition at line 3166 of file playbackbox.cpp.

Referenced by customEvent().

◆ showIconHelp

void PlaybackBox::showIconHelp ( void  )
protectedslot

Definition at line 4437 of file playbackbox.cpp.

Referenced by keyPressEvent(), and ShowGroupPopup().

◆ ShowRecGroupChangerUsePlaylist

void PlaybackBox::ShowRecGroupChangerUsePlaylist ( void  )
inlineprotectedslot

Definition at line 166 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ ShowPlayGroupChangerUsePlaylist

void PlaybackBox::ShowPlayGroupChangerUsePlaylist ( void  )
inlineprotectedslot

Definition at line 167 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ ShowRecGroupChanger

void PlaybackBox::ShowRecGroupChanger ( bool  use_playlist = false)
protectedslot

Used to change the recording group of a program or playlist.

Definition at line 4676 of file playbackbox.cpp.

Referenced by createStorageMenu().

◆ ShowPlayGroupChanger

void PlaybackBox::ShowPlayGroupChanger ( bool  use_playlist = false)
protectedslot

Used to change the play group of a program or playlist.

Definition at line 4738 of file playbackbox.cpp.

Referenced by createStorageMenu().

◆ popupClosed

void PlaybackBox::popupClosed ( const QString &  which,
int  result 
)
protectedslot

Definition at line 2393 of file playbackbox.cpp.

Referenced by DisplayPopupMenu().

◆ doPlayListRandom

void PlaybackBox::doPlayListRandom ( void  )
protectedslot

Definition at line 3339 of file playbackbox.cpp.

Referenced by createPlaylistMenu().

◆ askStop

void PlaybackBox::askStop ( void  )
protectedslot

Definition at line 3344 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ doAllowRerecord

void PlaybackBox::doAllowRerecord ( )
protectedslot

Callback function when Allow Re-record is pressed in Watch Recordings.

Hide the current program from the scheduler by calling ForgetHistory This will allow it to re-record without deleting

Definition at line 3360 of file playbackbox.cpp.

Referenced by createRecordingMenu().

◆ askDelete

void PlaybackBox::askDelete ( )
protectedslot

Definition at line 3480 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ Undelete

void PlaybackBox::Undelete ( void  )
protectedslot

Definition at line 3523 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ Delete

void PlaybackBox::Delete ( DeleteFlags  flags = kNoFlags)
protectedslot

Definition at line 3530 of file playbackbox.cpp.

Referenced by ShowActionPopup(), and ShowDeletePopup().

◆ DeleteForgetHistory

void PlaybackBox::DeleteForgetHistory ( void  )
inlineprotectedslot

Definition at line 182 of file playbackbox.h.

Referenced by ShowDeletePopup().

◆ DeleteForce

void PlaybackBox::DeleteForce ( void  )
inlineprotectedslot

Definition at line 183 of file playbackbox.h.

Referenced by ShowDeletePopup().

◆ DeleteIgnore

void PlaybackBox::DeleteIgnore ( void  )
inlineprotectedslot

Definition at line 184 of file playbackbox.h.

Referenced by ShowDeletePopup().

◆ DeleteForceAllRemaining

void PlaybackBox::DeleteForceAllRemaining ( void  )
inlineprotectedslot

Definition at line 185 of file playbackbox.h.

Referenced by ShowDeletePopup().

◆ DeleteIgnoreAllRemaining

void PlaybackBox::DeleteIgnoreAllRemaining ( void  )
inlineprotectedslot

Definition at line 187 of file playbackbox.h.

Referenced by ShowDeletePopup().

◆ ShowRecordedEpisodes

void PlaybackBox::ShowRecordedEpisodes ( )
protectedslot

Definition at line 3552 of file playbackbox.cpp.

Referenced by keyPressEvent(), and ShowActionPopup().

◆ ShowAllRecordings

void PlaybackBox::ShowAllRecordings ( void  )
protectedslot

Definition at line 3568 of file playbackbox.cpp.

Referenced by keyPressEvent(), and ShowActionPopup().

◆ toggleWatched

void PlaybackBox::toggleWatched ( void  )
protectedslot

Definition at line 3617 of file playbackbox.cpp.

Referenced by ShowActionPopup().

◆ toggleAutoExpire

void PlaybackBox::toggleAutoExpire ( )
protectedslot

Definition at line 3643 of file playbackbox.cpp.

Referenced by createStorageMenu().

◆ togglePreserveEpisode

void PlaybackBox::togglePreserveEpisode ( )
protectedslot

Definition at line 3665 of file playbackbox.cpp.

Referenced by createStorageMenu().

◆ toggleView

void PlaybackBox::toggleView ( ViewMask  itemMask,
bool  setOn 
)
protectedslot

Definition at line 3686 of file playbackbox.cpp.

◆ toggleTitleView

void PlaybackBox::toggleTitleView ( bool  setOn)
inlineprotectedslot

Definition at line 198 of file playbackbox.h.

◆ toggleCategoryView

void PlaybackBox::toggleCategoryView ( bool  setOn)
inlineprotectedslot

Definition at line 199 of file playbackbox.h.

◆ toggleRecGroupView

void PlaybackBox::toggleRecGroupView ( bool  setOn)
inlineprotectedslot

Definition at line 200 of file playbackbox.h.

◆ toggleWatchListView

void PlaybackBox::toggleWatchListView ( bool  setOn)
inlineprotectedslot

Definition at line 201 of file playbackbox.h.

◆ toggleSearchView

void PlaybackBox::toggleSearchView ( bool  setOn)
inlineprotectedslot

Definition at line 202 of file playbackbox.h.

◆ toggleLiveTVView

void PlaybackBox::toggleLiveTVView ( bool  setOn)
inlineprotectedslot

Definition at line 203 of file playbackbox.h.

◆ toggleWatchedView

void PlaybackBox::toggleWatchedView ( bool  setOn)
inlineprotectedslot

Definition at line 204 of file playbackbox.h.

◆ setGroupFilter

void PlaybackBox::setGroupFilter ( const QString &  newRecGroup)
protectedslot

Definition at line 4603 of file playbackbox.cpp.

Referenced by checkPassword(), and displayRecGroup().

◆ setRecGroup

void PlaybackBox::setRecGroup ( QString  newRecGroup)
protectedslot

Definition at line 4903 of file playbackbox.cpp.

Referenced by ShowRecGroupChanger().

◆ setPlayGroup

void PlaybackBox::setPlayGroup ( QString  newPlayGroup)
protectedslot

Definition at line 4977 of file playbackbox.cpp.

Referenced by ShowPlayGroupChanger().

◆ saveRecMetadata

void PlaybackBox::saveRecMetadata ( const QString &  newTitle,
const QString &  newSubtitle,
const QString &  newDescription,
const QString &  newInetref,
uint  season,
uint  episode 
)
protectedslot

Definition at line 4836 of file playbackbox.cpp.

Referenced by showMetadataEditor().

◆ SetRecGroupPassword

void PlaybackBox::SetRecGroupPassword ( const QString &  newPassword)
protectedslot

Definition at line 5033 of file playbackbox.cpp.

Referenced by showRecGroupPasswordChanger().

◆ doJobQueueJob

void PlaybackBox::doJobQueueJob ( int  jobType,
int  jobFlags = 0 
)
protectedslot

Definition at line 3391 of file playbackbox.cpp.

Referenced by doBeginFlagging(), and doBeginLookup().

◆ doPlaylistJobQueueJob

void PlaybackBox::doPlaylistJobQueueJob ( int  jobType,
int  jobFlags = 0 
)
protectedslot

Definition at line 3434 of file playbackbox.cpp.

◆ stopPlaylistJobQueueJob

void PlaybackBox::stopPlaylistJobQueueJob ( int  jobType)
protectedslot

Definition at line 3455 of file playbackbox.cpp.

◆ doBeginFlagging

void PlaybackBox::doBeginFlagging ( )
protectedslot

Definition at line 3424 of file playbackbox.cpp.

Referenced by createJobMenu().

◆ doBeginLookup

void PlaybackBox::doBeginLookup ( )
protectedslot

Definition at line 3429 of file playbackbox.cpp.

Referenced by createJobMenu().

◆ doBeginTranscoding

void PlaybackBox::doBeginTranscoding ( )
inlineprotectedslot

Definition at line 221 of file playbackbox.h.

Referenced by changeProfileAndTranscode(), and createJobMenu().

◆ doBeginUserJob1

void PlaybackBox::doBeginUserJob1 ( )
inlineprotectedslot

Definition at line 223 of file playbackbox.h.

Referenced by createJobMenu().

◆ doBeginUserJob2

void PlaybackBox::doBeginUserJob2 ( )
inlineprotectedslot

Definition at line 224 of file playbackbox.h.

Referenced by createJobMenu().

◆ doBeginUserJob3

void PlaybackBox::doBeginUserJob3 ( )
inlineprotectedslot

Definition at line 225 of file playbackbox.h.

Referenced by createJobMenu().

◆ doBeginUserJob4

void PlaybackBox::doBeginUserJob4 ( )
inlineprotectedslot

Definition at line 226 of file playbackbox.h.

Referenced by createJobMenu().

◆ doPlaylistBeginTranscoding

void PlaybackBox::doPlaylistBeginTranscoding ( )
inlineprotectedslot

Definition at line 227 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistTranscoding

void PlaybackBox::stopPlaylistTranscoding ( )
inlineprotectedslot

Definition at line 229 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginFlagging

void PlaybackBox::doPlaylistBeginFlagging ( )
inlineprotectedslot

Definition at line 230 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistFlagging

void PlaybackBox::stopPlaylistFlagging ( )
inlineprotectedslot

Definition at line 231 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginLookup

void PlaybackBox::doPlaylistBeginLookup ( )
inlineprotectedslot

Definition at line 232 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistLookup

void PlaybackBox::stopPlaylistLookup ( )
inlineprotectedslot

Definition at line 233 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginUserJob1

void PlaybackBox::doPlaylistBeginUserJob1 ( )
inlineprotectedslot

Definition at line 234 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistUserJob1

void PlaybackBox::stopPlaylistUserJob1 ( )
inlineprotectedslot

Definition at line 235 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginUserJob2

void PlaybackBox::doPlaylistBeginUserJob2 ( )
inlineprotectedslot

Definition at line 236 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistUserJob2

void PlaybackBox::stopPlaylistUserJob2 ( )
inlineprotectedslot

Definition at line 237 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginUserJob3

void PlaybackBox::doPlaylistBeginUserJob3 ( )
inlineprotectedslot

Definition at line 238 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistUserJob3

void PlaybackBox::stopPlaylistUserJob3 ( )
inlineprotectedslot

Definition at line 239 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doPlaylistBeginUserJob4

void PlaybackBox::doPlaylistBeginUserJob4 ( )
inlineprotectedslot

Definition at line 240 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ stopPlaylistUserJob4

void PlaybackBox::stopPlaylistUserJob4 ( )
inlineprotectedslot

Definition at line 241 of file playbackbox.h.

Referenced by createPlaylistJobMenu().

◆ doClearPlaylist

void PlaybackBox::doClearPlaylist ( void  )
protectedslot

◆ PlaylistDeleteForgetHistory

void PlaybackBox::PlaylistDeleteForgetHistory ( void  )
inlineprotectedslot

Definition at line 243 of file playbackbox.h.

Referenced by createPlaylistMenu().

◆ PlaylistDelete

void PlaybackBox::PlaylistDelete ( bool  forgetHistory = false)
protectedslot

Definition at line 3490 of file playbackbox.cpp.

Referenced by createPlaylistMenu().

◆ doPlaylistExpireSetting

void PlaybackBox::doPlaylistExpireSetting ( bool  turnOn)
protectedslot

Definition at line 4782 of file playbackbox.cpp.

◆ doPlaylistExpireSetOn

void PlaybackBox::doPlaylistExpireSetOn ( )
inlineprotectedslot

Definition at line 246 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ doPlaylistExpireSetOff

void PlaybackBox::doPlaylistExpireSetOff ( )
inlineprotectedslot

Definition at line 247 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ doPlaylistWatchedSetting

void PlaybackBox::doPlaylistWatchedSetting ( bool  turnOn)
protectedslot

Definition at line 4799 of file playbackbox.cpp.

◆ doPlaylistWatchedSetOn

void PlaybackBox::doPlaylistWatchedSetOn ( )
inlineprotectedslot

Definition at line 249 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ doPlaylistWatchedSetOff

void PlaybackBox::doPlaylistWatchedSetOff ( )
inlineprotectedslot

Definition at line 250 of file playbackbox.h.

Referenced by createPlaylistStorageMenu().

◆ doPlaylistAllowRerecord

void PlaybackBox::doPlaylistAllowRerecord ( )
protectedslot

Definition at line 3372 of file playbackbox.cpp.

Referenced by createPlaylistStorageMenu().

◆ togglePlayListTitle

void PlaybackBox::togglePlayListTitle ( void  )
protectedslot

Definition at line 3696 of file playbackbox.cpp.

Referenced by createPlaylistMenu(), keyPressEvent(), and ShowGroupPopup().

◆ togglePlayListItem [1/2]

void PlaybackBox::togglePlayListItem ( void  )
protectedslot

◆ playSelectedPlaylist

void PlaybackBox::playSelectedPlaylist ( bool  random)
protectedslot

Definition at line 2182 of file playbackbox.cpp.

Referenced by doPlayList(), and doPlayListRandom().

◆ doPlayList

void PlaybackBox::doPlayList ( void  )
protectedslot

Definition at line 3333 of file playbackbox.cpp.

Referenced by createPlaylistMenu().

◆ showViewChanger

void PlaybackBox::showViewChanger ( void  )
protectedslot

Definition at line 4447 of file playbackbox.cpp.

Referenced by keyPressEvent(), and ShowGroupPopup().

◆ saveViewChanges

void PlaybackBox::saveViewChanges ( void  )
protectedslot

Definition at line 4460 of file playbackbox.cpp.

Referenced by showViewChanger().

◆ checkPassword

void PlaybackBox::checkPassword ( const QString &  password)
protectedslot

Definition at line 622 of file playbackbox.cpp.

Referenced by displayRecGroup().

◆ passwordClosed

void PlaybackBox::passwordClosed ( void  )
protectedslot

Definition at line 632 of file playbackbox.cpp.

Referenced by displayRecGroup().

◆ fanartLoad

void PlaybackBox::fanartLoad ( void  )
protectedslot

Definition at line 2575 of file playbackbox.cpp.

Referenced by Create().

◆ bannerLoad

void PlaybackBox::bannerLoad ( void  )
protectedslot

Definition at line 2580 of file playbackbox.cpp.

Referenced by Create().

◆ coverartLoad

void PlaybackBox::coverartLoad ( void  )
protectedslot

Definition at line 2585 of file playbackbox.cpp.

Referenced by Create().

◆ UpdateUILists()

bool PlaybackBox::UpdateUILists ( void  )
private

◆ UpdateUIGroupList()

void PlaybackBox::UpdateUIGroupList ( const QStringList &  groupPreferences)
private

Definition at line 1337 of file playbackbox.cpp.

Referenced by UpdateUILists().

◆ UpdateUIRecGroupList()

void PlaybackBox::UpdateUIRecGroupList ( void  )
private

Definition at line 1308 of file playbackbox.cpp.

Referenced by UpdateUILists().

◆ UpdateProgressBar()

void PlaybackBox::UpdateProgressBar ( void  )
private

◆ PlayX()

void PlaybackBox::PlayX ( const ProgramInfo pginfo,
bool  ignoreBookmark,
bool  ignoreProgStart,
bool  ignoreLastPlayPos,
bool  underNetworkControl 
)
private

◆ Play()

bool PlaybackBox::Play ( const ProgramInfo rec,
bool  inPlaylist,
bool  ignoreBookmark,
bool  ignoreProgStart,
bool  ignoreLastPlayPos,
bool  underNetworkControl 
)
private

Definition at line 2476 of file playbackbox.cpp.

Referenced by customEvent(), and PlayX().

◆ GetCurrentProgram()

ProgramInfo * PlaybackBox::GetCurrentProgram ( void  ) const
overrideprivatevirtual

◆ togglePlayListItem() [2/2]

void PlaybackBox::togglePlayListItem ( ProgramInfo pginfo)
private

Definition at line 3727 of file playbackbox.cpp.

◆ randomizePlayList()

void PlaybackBox::randomizePlayList ( void  )
private

◆ processNetworkControlCommands()

void PlaybackBox::processNetworkControlCommands ( void  )
private

Definition at line 3752 of file playbackbox.cpp.

Referenced by keyPressEvent().

◆ processNetworkControlCommand()

void PlaybackBox::processNetworkControlCommand ( const QString &  command)
private

Definition at line 3776 of file playbackbox.cpp.

Referenced by processNetworkControlCommands().

◆ FindProgramInUILists() [1/2]

ProgramInfo * PlaybackBox::FindProgramInUILists ( const ProgramInfo pginfo)
private

◆ FindProgramInUILists() [2/2]

ProgramInfo * PlaybackBox::FindProgramInUILists ( uint  recordingID,
const QString &  recgroup = "NotLiveTV" 
)
private

Definition at line 3587 of file playbackbox.cpp.

◆ RemoveProgram()

void PlaybackBox::RemoveProgram ( uint  recordingID,
bool  forgetHistory,
bool  forceMetadataDelete 
)
private

Definition at line 2543 of file playbackbox.cpp.

Referenced by Delete().

◆ ShowDeletePopup()

void PlaybackBox::ShowDeletePopup ( DeletePopupType  type)
private

Definition at line 2590 of file playbackbox.cpp.

Referenced by askDelete(), askStop(), customEvent(), and deleteSelected().

◆ ShowAvailabilityPopup()

void PlaybackBox::ShowAvailabilityPopup ( const ProgramInfo pginfo)
staticprivate

Definition at line 2692 of file playbackbox.cpp.

Referenced by customEvent(), popupClosed(), and ShowMenu().

◆ ShowActionPopup()

void PlaybackBox::ShowActionPopup ( const ProgramInfo pginfo)
private

Definition at line 3181 of file playbackbox.cpp.

Referenced by popupClosed(), and ShowMenu().

◆ getRecGroupPassword()

QString PlaybackBox::getRecGroupPassword ( const QString &  recGroup)
private

◆ fillRecGroupPasswordCache()

void PlaybackBox::fillRecGroupPasswordCache ( void  )
private

Definition at line 4647 of file playbackbox.cpp.

Referenced by PlaybackBox().

◆ IsUsageUIVisible()

bool PlaybackBox::IsUsageUIVisible ( void  ) const
private

Definition at line 1246 of file playbackbox.cpp.

◆ updateIcons()

void PlaybackBox::updateIcons ( const ProgramInfo pginfo = nullptr)
private

◆ UpdateUsageUI()

void PlaybackBox::UpdateUsageUI ( void  )
private

Definition at line 1251 of file playbackbox.cpp.

Referenced by customEvent(), and UpdateUILists().

◆ updateGroupInfo()

void PlaybackBox::updateGroupInfo ( const QString &  groupname,
const QString &  grouplabel 
)
private

Definition at line 639 of file playbackbox.cpp.

Referenced by updateRecList().

◆ SetItemIcons()

void PlaybackBox::SetItemIcons ( MythUIButtonListItem item,
ProgramInfo pginfo 
)
private

Definition at line 765 of file playbackbox.cpp.

Referenced by ItemLoaded(), and UpdateUIListItem().

◆ UpdateUIListItem() [1/2]

void PlaybackBox::UpdateUIListItem ( ProgramInfo pginfo,
bool  force_preview_reload 
)
private

◆ UpdateUIListItem() [2/2]

void PlaybackBox::UpdateUIListItem ( MythUIButtonListItem item,
bool  is_sel,
bool  force_preview_reload = true 
)
private

Definition at line 783 of file playbackbox.cpp.

◆ HandlePreviewEvent()

void PlaybackBox::HandlePreviewEvent ( const QStringList &  list)
private

Updates the UI properties for a new preview file.

This first update the image property of the MythUIButtonListItem with the new preview file, then if it is selected and there is a preview image UI item in the theme that it's filename property gets updated as well.

Definition at line 1020 of file playbackbox.cpp.

Referenced by customEvent().

◆ HandleRecordingRemoveEvent()

void PlaybackBox::HandleRecordingRemoveEvent ( uint  recordingID)
private

Definition at line 4317 of file playbackbox.cpp.

Referenced by customEvent().

◆ HandleRecordingAddEvent()

void PlaybackBox::HandleRecordingAddEvent ( const ProgramInfo evinfo)
private

Definition at line 4394 of file playbackbox.cpp.

Referenced by customEvent().

◆ HandleUpdateProgramInfoEvent()

void PlaybackBox::HandleUpdateProgramInfoEvent ( const ProgramInfo evinfo)
private

Definition at line 4400 of file playbackbox.cpp.

Referenced by customEvent().

◆ HandleUpdateProgramInfoFileSizeEvent()

void PlaybackBox::HandleUpdateProgramInfoFileSizeEvent ( uint  recordingID,
uint64_t  filesize 
)
private

Definition at line 4421 of file playbackbox.cpp.

Referenced by customEvent().

◆ ScheduleUpdateUIList()

void PlaybackBox::ScheduleUpdateUIList ( void  )
private

◆ ShowMenu()

void PlaybackBox::ShowMenu ( void  )
overrideprivatevirtual

Reimplemented from MythScreenType.

Definition at line 2942 of file playbackbox.cpp.

Referenced by keyPressEvent().

◆ CreatePopupMenu()

bool PlaybackBox::CreatePopupMenu ( const QString &  title)
private

◆ DisplayPopupMenu()

void PlaybackBox::DisplayPopupMenu ( void  )
private

Definition at line 2926 of file playbackbox.cpp.

Referenced by ShowActionPopup(), ShowDeletePopup(), and ShowGroupPopup().

◆ CreatePopupMenuPlaylist()

bool PlaybackBox::CreatePopupMenuPlaylist ( void  )
private

◆ CreateProgramInfoString()

QString PlaybackBox::CreateProgramInfoString ( const ProgramInfo pginfo)
staticprivate

◆ extract_job_state()

QString PlaybackBox::extract_job_state ( const ProgramInfo pginfo)
private

Definition at line 286 of file playbackbox.cpp.

Referenced by ItemVisible(), and UpdateUIListItem().

◆ extract_commflag_state()

QString PlaybackBox::extract_commflag_state ( const ProgramInfo pginfo)
private

Definition at line 306 of file playbackbox.cpp.

Referenced by ItemVisible(), and UpdateUIListItem().

Friends And Related Function Documentation

◆ PlaybackBoxListItem

friend class PlaybackBoxListItem
friend

Definition at line 61 of file playbackbox.h.

Referenced by updateRecList().

Member Data Documentation

◆ m_titleChaff

QRegExp PlaybackBox::m_titleChaff
private

stuff to remove for search rules

Definition at line 340 of file playbackbox.h.

Referenced by UpdateUILists().

◆ m_recgroupList

MythUIButtonList* PlaybackBox::m_recgroupList {nullptr}
private

Definition at line 342 of file playbackbox.h.

Referenced by Create(), UpdateUILists(), and UpdateUIRecGroupList().

◆ m_groupList

MythUIButtonList* PlaybackBox::m_groupList {nullptr}
private

◆ m_recordingList

MythUIButtonList* PlaybackBox::m_recordingList {nullptr}
private

◆ m_noRecordingsText

MythUIText* PlaybackBox::m_noRecordingsText {nullptr}
private

Definition at line 346 of file playbackbox.h.

Referenced by Create(), and updateRecList().

◆ m_previewImage

MythUIImage* PlaybackBox::m_previewImage {nullptr}
private

Definition at line 348 of file playbackbox.h.

Referenced by Create(), HandlePreviewEvent(), updateGroupInfo(), and UpdateUIListItem().

◆ m_artHostOverride

QString PlaybackBox::m_artHostOverride
private

Definition at line 350 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUIListItem().

◆ m_artImage

MythUIImage* PlaybackBox::m_artImage[3]
private

◆ m_artTimer

QTimer* PlaybackBox::m_artTimer[3]
private

◆ m_currentMap

InfoMap PlaybackBox::m_currentMap
private

Definition at line 354 of file playbackbox.h.

Referenced by updateGroupInfo(), and UpdateUIListItem().

◆ m_titleView

bool PlaybackBox::m_titleView {false}
private

titleView controls showing titles in group list

Definition at line 358 of file playbackbox.h.

◆ m_useCategories

bool PlaybackBox::m_useCategories {false}
private

useCategories controls showing categories in group list

Definition at line 360 of file playbackbox.h.

◆ m_useRecGroups

bool PlaybackBox::m_useRecGroups {false}
private

useRecGroups controls showing of recording groups in group list

Definition at line 362 of file playbackbox.h.

◆ m_watchListStart

bool PlaybackBox::m_watchListStart {false}
private

use the Watch List as the initial view

Definition at line 364 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_watchListAutoExpire

bool PlaybackBox::m_watchListAutoExpire {false}
private

exclude recording not marked for auto-expire from the Watch List

Definition at line 366 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_watchListMaxAge

int PlaybackBox::m_watchListMaxAge {60}
private

add 1 to the Watch List scord up to this many days

Definition at line 368 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_watchListBlackOut

int PlaybackBox::m_watchListBlackOut {2}
private

adjust exclusion of a title from the Watch List after a delete

Definition at line 370 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_allOrder

int PlaybackBox::m_allOrder
private

allOrder controls the ordering of the "All Programs" list

Definition at line 372 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_listOrder

int PlaybackBox::m_listOrder {1}
private

listOrder controls the ordering of the recordings in the list

Definition at line 374 of file playbackbox.h.

Referenced by PlaybackBox(), and UpdateUILists().

◆ m_groupDisplayName

QString PlaybackBox::m_groupDisplayName
private

◆ m_recGroup

QString PlaybackBox::m_recGroup
private

◆ m_curGroupPassword

QString PlaybackBox::m_curGroupPassword
private

Definition at line 379 of file playbackbox.h.

Referenced by checkPassword(), displayRecGroup(), and UpdateUILists().

◆ m_newRecGroup

QString PlaybackBox::m_newRecGroup
private

Definition at line 380 of file playbackbox.h.

Referenced by checkPassword(), and displayRecGroup().

◆ m_watchGroupName

QString PlaybackBox::m_watchGroupName
private

Definition at line 381 of file playbackbox.h.

Referenced by UpdateUILists().

◆ m_watchGroupLabel

QString PlaybackBox::m_watchGroupLabel
private

Definition at line 382 of file playbackbox.h.

Referenced by UpdateUILists().

◆ m_viewMask

ViewMask PlaybackBox::m_viewMask {VIEW_TITLES}
private

◆ m_menuDialog

MythDialogBox* PlaybackBox::m_menuDialog {nullptr}
private

Definition at line 387 of file playbackbox.h.

Referenced by customEvent(), DisplayPopupMenu(), popupClosed(), and ShowMenu().

◆ m_popupMenu

MythMenu* PlaybackBox::m_popupMenu {nullptr}
private

Definition at line 388 of file playbackbox.h.

Referenced by DisplayPopupMenu(), ShowActionPopup(), ShowDeletePopup(), and ShowGroupPopup().

◆ m_popupStack

MythScreenStack* PlaybackBox::m_popupStack {nullptr}
private

◆ m_doToggleMenu

bool PlaybackBox::m_doToggleMenu {true}
private

Definition at line 391 of file playbackbox.h.

Referenced by popupClosed().

◆ m_recGroupType

QMap<QString,QString> PlaybackBox::m_recGroupType
private

◆ m_recGroupPwCache

QMap<QString,QString> PlaybackBox::m_recGroupPwCache
private

◆ m_titleList

QStringList PlaybackBox::m_titleList
private

list of pages

Definition at line 400 of file playbackbox.h.

Referenced by Init(), keyPressEvent(), UpdateUIGroupList(), and UpdateUILists().

◆ m_progLists

ProgramMap PlaybackBox::m_progLists
private

◆ m_progsInDB

int PlaybackBox::m_progsInDB {0}
private

total number of recordings in DB

Definition at line 402 of file playbackbox.h.

Referenced by Init(), and UpdateUILists().

◆ m_isFilling

bool PlaybackBox::m_isFilling {false}
private

Definition at line 403 of file playbackbox.h.

Referenced by updateRecList(), and UpdateUILists().

◆ m_recGroups

QStringList PlaybackBox::m_recGroups
private

Definition at line 405 of file playbackbox.h.

Referenced by keyPressEvent(), UpdateUILists(), and UpdateUIRecGroupList().

◆ m_recGroupsLock

QMutex PlaybackBox::m_recGroupsLock
mutableprivate

Definition at line 406 of file playbackbox.h.

Referenced by keyPressEvent(), and UpdateUILists().

◆ m_recGroupIdx

int PlaybackBox::m_recGroupIdx {-1}
private

Definition at line 407 of file playbackbox.h.

Referenced by keyPressEvent(), PlaybackBox(), UpdateUILists(), and UpdateUIRecGroupList().

◆ m_delList

QStringList PlaybackBox::m_delList
private

Recording[s] currently selected for deletion.

Definition at line 411 of file playbackbox.h.

Referenced by askDelete(), askStop(), customEvent(), Delete(), deleteSelected(), ShowActionPopup(), ShowDeletePopup(), and Undelete().

◆ m_currentGroup

QString PlaybackBox::m_currentGroup
private

Group currently selected.

Definition at line 413 of file playbackbox.h.

Referenced by customEvent(), updateRecList(), and UpdateUIGroupList().

◆ m_playList

QList<uint> PlaybackBox::m_playList
private

◆ m_op_on_playlist

bool PlaybackBox::m_op_on_playlist {false}
private

◆ m_playListPlay

QList<uint> PlaybackBox::m_playListPlay
private

list of items being played.

Definition at line 418 of file playbackbox.h.

Referenced by customEvent(), Play(), and playSelectedPlaylist().

◆ m_programInfoCache

ProgramInfoCache PlaybackBox::m_programInfoCache
private

◆ m_playingSomething

bool PlaybackBox::m_playingSomething {false}
private

playingSomething is set to true iff a full screen recording is playing

Definition at line 423 of file playbackbox.h.

Referenced by customEvent(), Play(), processNetworkControlCommand(), and updateRecList().

◆ m_needUpdate

bool PlaybackBox::m_needUpdate {false}
private

Does the recording list need to be refilled.

Definition at line 426 of file playbackbox.h.

Referenced by customEvent(), Play(), updateRecList(), and UpdateUIGroupList().

◆ m_haveGroupInfoSet

bool PlaybackBox::m_haveGroupInfoSet {false}
private

Definition at line 429 of file playbackbox.h.

◆ m_ncLock

QMutex PlaybackBox::m_ncLock
mutableprivate

Definition at line 432 of file playbackbox.h.

Referenced by customEvent(), keyPressEvent(), and processNetworkControlCommands().

◆ m_networkControlCommands

deque<QString> PlaybackBox::m_networkControlCommands
private

Definition at line 433 of file playbackbox.h.

Referenced by customEvent(), keyPressEvent(), and processNetworkControlCommands().

◆ m_player

TV* PlaybackBox::m_player {nullptr}
private

◆ m_player_selected_new_show

QStringList PlaybackBox::m_player_selected_new_show
private

Definition at line 437 of file playbackbox.h.

Referenced by PlayX(), and ~PlaybackBox().

◆ m_helper

PlaybackBoxHelper PlaybackBox::m_helper
private

◆ m_preview_tokens

QSet<QString> PlaybackBox::m_preview_tokens
private

Outstanding preview image requests.

Definition at line 441 of file playbackbox.h.

Referenced by customEvent(), HandlePreviewEvent(), ItemVisible(), and UpdateUIListItem().

◆ m_firstGroup

bool PlaybackBox::m_firstGroup {true}
private

Definition at line 443 of file playbackbox.h.

Referenced by groupSelectorClosed(), passwordClosed(), and setGroupFilter().

◆ m_usingGroupSelector

bool PlaybackBox::m_usingGroupSelector {false}
private

◆ m_groupSelected

bool PlaybackBox::m_groupSelected {false}
private

Definition at line 445 of file playbackbox.h.

Referenced by displayRecGroup(), groupSelectorClosed(), and showGroupFilter().

◆ m_passwordEntered

bool PlaybackBox::m_passwordEntered {false}
private

Definition at line 446 of file playbackbox.h.

Referenced by checkPassword(), displayRecGroup(), and passwordClosed().

◆ m_jobQueue

class PlaybackBox::PbbJobQueue PlaybackBox::m_jobQueue
private

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