MythTV  master
Macros | Functions | Variables
playbackbox.cpp File Reference
#include "playbackbox.h"
#include <array>
#include <QCoreApplication>
#include <QDateTime>
#include <QLocale>
#include <QTimer>
#include <QMap>
#include "libmyth/programinfo.h"
#include "libmyth/programtypes.h"
#include "libmyth/recordingtypes.h"
#include "libmythbase/mconcurrent.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythdbcon.h"
#include "libmythbase/mythevent.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythrandom.h"
#include "libmythbase/stringutil.h"
#include "libmythmetadata/mythuimetadataresults.h"
#include "libmythtv/playgroup.h"
#include "libmythtv/previewgeneratorqueue.h"
#include "libmythtv/recordinginfo.h"
#include "libmythtv/recordingrule.h"
#include "libmythtv/tv.h"
#include "libmythtv/tv_actions.h"
#include "libmythui/mythdialogbox.h"
#include "libmythui/mythmainwindow.h"
#include "libmythui/mythnotificationcenter.h"
#include "libmythui/mythprogressdialog.h"
#include "libmythui/mythscreenstack.h"
#include "libmythui/mythuiactions.h"
#include "libmythui/mythuibutton.h"
#include "libmythui/mythuibuttonlist.h"
#include "libmythui/mythuicheckbox.h"
#include "libmythui/mythuiimage.h"
#include "libmythui/mythuiprogressbar.h"
#include "libmythui/mythuispinbox.h"
#include "libmythui/mythuistatetype.h"
#include "libmythui/mythuitext.h"
#include "libmythui/mythuitextedit.h"
#include "playbackboxlistitem.h"
Include dependency graph for playbackbox.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("PlaybackBox: ")
 
#define LOC_WARN   QString("PlaybackBox Warning: ")
 
#define LOC_ERR   QString("PlaybackBox Error: ")
 

Functions

static int comp_programid (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_programid_rev (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_originalAirDate (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_originalAirDate_rev (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_recpriority2 (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_recordDate (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_recordDate_rev (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_season (const ProgramInfo *a, const ProgramInfo *b)
 
static int comp_season_rev (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_programid_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_programid_rev_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_originalAirDate_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_originalAirDate_rev_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_recpriority2_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_recordDate_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_recordDate_rev_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_season_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static bool comp_season_rev_less_than (const ProgramInfo *a, const ProgramInfo *b)
 
static PlaybackBox::ViewMask m_viewMaskToggle (PlaybackBox::ViewMask mask, PlaybackBox::ViewMask toggle)
 
static QString construct_sort_title (QString title, PlaybackBox::ViewMask viewmask, PlaybackBox::ViewTitleSort sortType, int recpriority)
 
static QString extract_main_state (const ProgramInfo &pginfo, const TV *player)
 
static QString extract_subtitle (const ProgramInfo &pginfo, const QString &groupname)
 
static void push_onto_del (QStringList &list, const ProgramInfo &pginfo)
 
static bool extract_one_del (QStringList &list, uint &recordingID)
 
static bool save_position (const MythUIButtonList *groupList, const MythUIButtonList *recordingList, QStringList &groupSelPref, QStringList &itemSelPref, QStringList &itemTopPref)
 
static void restore_position (MythUIButtonList *groupList, MythUIButtonList *recordingList, const QStringList &groupSelPref, const QStringList &itemSelPref, const QStringList &itemTopPref)
 

Variables

static const QString sLocation = "Playback Box"
 
static const std::array< const uint, 3 > s_artDelay { kArtworkFanTimeout, kArtworkBannerTimeout, kArtworkCoverTimeout,}
 
static const std::array< const std::string, 9 > disp_flags
 
static const std::array< const int, kMaxJobskJobs
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("PlaybackBox: ")

Definition at line 55 of file playbackbox.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("PlaybackBox Warning: ")

Definition at line 56 of file playbackbox.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("PlaybackBox Error: ")

Definition at line 57 of file playbackbox.cpp.

Function Documentation

◆ comp_programid()

static int comp_programid ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 61 of file playbackbox.cpp.

Referenced by comp_programid_less_than().

◆ comp_programid_rev()

static int comp_programid_rev ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 69 of file playbackbox.cpp.

Referenced by comp_programid_rev_less_than().

◆ comp_originalAirDate()

static int comp_originalAirDate ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 77 of file playbackbox.cpp.

Referenced by comp_originalAirDate_less_than(), and comp_season().

◆ comp_originalAirDate_rev()

static int comp_originalAirDate_rev ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 90 of file playbackbox.cpp.

Referenced by comp_originalAirDate_rev_less_than(), and comp_season_rev().

◆ comp_recpriority2()

static int comp_recpriority2 ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 103 of file playbackbox.cpp.

Referenced by comp_recpriority2_less_than().

◆ comp_recordDate()

static int comp_recordDate ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 112 of file playbackbox.cpp.

Referenced by comp_recordDate_less_than().

◆ comp_recordDate_rev()

static int comp_recordDate_rev ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 121 of file playbackbox.cpp.

Referenced by comp_recordDate_rev_less_than().

◆ comp_season()

static int comp_season ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 130 of file playbackbox.cpp.

Referenced by comp_season_less_than().

◆ comp_season_rev()

static int comp_season_rev ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 141 of file playbackbox.cpp.

Referenced by comp_season_rev_less_than().

◆ comp_programid_less_than()

static bool comp_programid_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 152 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_programid_rev_less_than()

static bool comp_programid_rev_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 158 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_originalAirDate_less_than()

static bool comp_originalAirDate_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 164 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_originalAirDate_rev_less_than()

static bool comp_originalAirDate_rev_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 170 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_recpriority2_less_than()

static bool comp_recpriority2_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 176 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_recordDate_less_than()

static bool comp_recordDate_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 182 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_recordDate_rev_less_than()

static bool comp_recordDate_rev_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 188 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_season_less_than()

static bool comp_season_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 194 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ comp_season_rev_less_than()

static bool comp_season_rev_less_than ( const ProgramInfo a,
const ProgramInfo b 
)
static

Definition at line 200 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ m_viewMaskToggle()

static PlaybackBox::ViewMask m_viewMaskToggle ( PlaybackBox::ViewMask  mask,
PlaybackBox::ViewMask  toggle 
)
static

Definition at line 209 of file playbackbox.cpp.

Referenced by PlaybackBox::keyPressEvent().

◆ construct_sort_title()

static QString construct_sort_title ( QString  title,
PlaybackBox::ViewMask  viewmask,
PlaybackBox::ViewTitleSort  sortType,
int  recpriority 
)
static

Definition at line 218 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ extract_main_state()

static QString extract_main_state ( const ProgramInfo pginfo,
const TV player 
)
static

Definition at line 263 of file playbackbox.cpp.

Referenced by PlaybackBox::ItemLoaded(), and PlaybackBox::UpdateUIListItem().

◆ extract_subtitle()

static QString extract_subtitle ( const ProgramInfo pginfo,
const QString &  groupname 
)
static

Definition at line 324 of file playbackbox.cpp.

Referenced by PlaybackBox::ItemLoaded(), and PlaybackBox::UpdateUIListItem().

◆ push_onto_del()

static void push_onto_del ( QStringList &  list,
const ProgramInfo pginfo 
)
static

◆ extract_one_del()

static bool extract_one_del ( QStringList &  list,
uint recordingID 
)
static

Definition at line 349 of file playbackbox.cpp.

Referenced by PlaybackBox::Delete(), and PlaybackBox::Undelete().

◆ save_position()

static bool save_position ( const MythUIButtonList groupList,
const MythUIButtonList recordingList,
QStringList &  groupSelPref,
QStringList &  itemSelPref,
QStringList &  itemTopPref 
)
static

Definition at line 1525 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

◆ restore_position()

static void restore_position ( MythUIButtonList groupList,
MythUIButtonList recordingList,
const QStringList &  groupSelPref,
const QStringList &  itemSelPref,
const QStringList &  itemTopPref 
)
static

Definition at line 1582 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

Variable Documentation

◆ sLocation

const QString sLocation = "Playback Box"
static

Definition at line 59 of file playbackbox.cpp.

Referenced by PlaybackBox::ShowAvailabilityPopup().

◆ s_artDelay

const std::array<const uint,3> s_artDelay { kArtworkFanTimeout, kArtworkBannerTimeout, kArtworkCoverTimeout,}
static

Definition at line 207 of file playbackbox.cpp.

Referenced by PlaybackBox::customEvent(), and PlaybackBox::UpdateUIListItem().

◆ disp_flags

const std::array<const std::string,9> disp_flags
static
Initial value:
{
"playlist", "watched", "preserve",
"cutlist", "autoexpire", "editing",
"bookmark", "inuse", "transcoded"
}

Definition at line 769 of file playbackbox.cpp.

Referenced by PlaybackBox::SetItemIcons().

◆ kJobs

const std::array<const int,kMaxJobs> kJobs
static
JOB_USERJOB3
@ JOB_USERJOB3
Definition: jobqueue.h:84
JOB_USERJOB4
@ JOB_USERJOB4
Definition: jobqueue.h:85
JOB_COMMFLAG
@ JOB_COMMFLAG
Definition: jobqueue.h:77
JOB_USERJOB2
@ JOB_USERJOB2
Definition: jobqueue.h:83
JOB_USERJOB1
@ JOB_USERJOB1
Definition: jobqueue.h:82
JOB_METADATA
@ JOB_METADATA
Definition: jobqueue.h:78
JOB_TRANSCODE
@ JOB_TRANSCODE
Definition: jobqueue.h:76