MythTV  master
Macros | Functions | Variables
playbackbox.cpp File Reference
#include "playbackbox.h"
#include <QCoreApplication>
#include <QDateTime>
#include <QLocale>
#include <QTimer>
#include <QMap>
#include "mythnotificationcenter.h"
#include "mythuimetadataresults.h"
#include "previewgeneratorqueue.h"
#include "mythprogressdialog.h"
#include "mythuiprogressbar.h"
#include "mythuibuttonlist.h"
#include "mythcorecontext.h"
#include "mythmainwindow.h"
#include "mythscreenstack.h"
#include "mythuistatetype.h"
#include "mythuicheckbox.h"
#include "mythuitextedit.h"
#include "recordingtypes.h"
#include "mythuiactions.h"
#include "mythuispinbox.h"
#include "mythdialogbox.h"
#include "recordinginfo.h"
#include "recordingrule.h"
#include "programtypes.h"
#include "mythuibutton.h"
#include "mythlogging.h"
#include "mythuiimage.h"
#include "programinfo.h"
#include "mythuitext.h"
#include "tv_actions.h"
#include "mythdbcon.h"
#include "mythevent.h"
#include "playgroup.h"
#include "mythdb.h"
#include "mythdate.h"
#include "tv.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 uint s_artDelay []
 
static const char * disp_flags []
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("PlaybackBox: ")

Definition at line 51 of file playbackbox.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("PlaybackBox Warning: ")

Definition at line 52 of file playbackbox.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("PlaybackBox Error: ")

Definition at line 53 of file playbackbox.cpp.

Function Documentation

◆ comp_programid()

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

Definition at line 56 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 64 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 72 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 85 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 98 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 107 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 116 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 125 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 136 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 147 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 153 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 159 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 165 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 171 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 177 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 183 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 189 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 195 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 204 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 213 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 258 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 319 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 344 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 1503 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 1560 of file playbackbox.cpp.

Referenced by PlaybackBox::UpdateUILists().

Variable Documentation

◆ sLocation

const QString sLocation = "Playback Box"
static

Definition at line 54 of file playbackbox.cpp.

Referenced by PlaybackBox::ShowAvailabilityPopup().

◆ s_artDelay

const uint s_artDelay[]
static

◆ disp_flags

const char* disp_flags[]
static
Initial value:
= { "playlist", "watched", "preserve",
"cutlist", "autoexpire", "editing",
"bookmark", "inuse", "transcoded" }

Definition at line 761 of file playbackbox.cpp.

Referenced by PlaybackBox::SetItemIcons().

kArtworkBannerTimeout
@ kArtworkBannerTimeout
Definition: playbackbox.h:55
kArtworkCoverTimeout
@ kArtworkCoverTimeout
Definition: playbackbox.h:56
kArtworkFanTimeout
@ kArtworkFanTimeout
Definition: playbackbox.h:54