MythTV  master
Classes | Macros | Functions
tv_play.cpp File Reference
#include <QApplication>
#include <QDomDocument>
#include <QDomElement>
#include <QDomNode>
#include <QEvent>
#include <QFile>
#include <QKeyEvent>
#include <QRegExp>
#include <QRegularExpression>
#include <QRunnable>
#include <QTimerEvent>
#include <utility>
#include "mythconfig.h"
#include "mthreadpool.h"
#include "signalhandling.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "lcddevice.h"
#include "compat.h"
#include "mythdirs.h"
#include "mythmedia.h"
#include "programinfo.h"
#include "remoteutil.h"
#include "mythuistatetracker.h"
#include "mythuihelper.h"
#include "mythdialogbox.h"
#include "mythmainwindow.h"
#include "mythmiscutil.h"
#include "mythscreenstack.h"
#include "mythscreentype.h"
#include "mythuiactions.h"
#include "DVD/mythdvdplayer.h"
#include "Bluray/mythbdplayer.h"
#include "DVD/mythdvdbuffer.h"
#include "Bluray/mythbdbuffer.h"
#include "remoteencoder.h"
#include "tvremoteutil.h"
#include "mythplayerui.h"
#include "jobqueue.h"
#include "livetvchain.h"
#include "playgroup.h"
#include "sourceutil.h"
#include "cardutil.h"
#include "channelutil.h"
#include "tv_play_win.h"
#include "recordinginfo.h"
#include "signalmonitorvalue.h"
#include "recordingrule.h"
#include "mythsystemevent.h"
#include "videometadatautil.h"
#include "playercontext.h"
#include "programtypes.h"
#include "io/mythmediabuffer.h"
#include "mythtvactionutils.h"
#include "mythcodeccontext.h"
#include "tv_play.h"
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdarg>
#include <cstdint>
#include <cstdlib>
#include <thread>
Include dependency graph for tv_play.cpp:

Go to the source code of this file.

Classes

class  TV::SleepTimerInfo
 

Macros

#define round(x)   ((int) ((x) + 0.5))
 
#define DEBUG_CHANNEL_PREFIX   0
 set to 1 to debug channel prefixing More...
 
#define DEBUG_ACTIONS   0
 set to 1 to debug actions
More...
 
#define LOC   QString("TV::%1(): ").arg(__func__)
 
#define HideOSDWindow(WINDOW)
 
#define TRANSITION(ASTATE, BSTATE)   ((ctxState == (ASTATE)) && (desiredNextState == (BSTATE)))
 
#define SET_NEXT()   do { nextState = desiredNextState; changed = true; } while(false)
 
#define SET_LAST()   do { nextState = ctxState; changed = true; } while(false)
 
#define BUTTON(action, text)   result = Context.AddButton(Menu, active, (action), (text), "", false, "")
 
#define BUTTON2(action, textActive, textInactive)   result = Context.AddButton(Menu, active, (action), (textActive), (textInactive), false, "")
 
#define BUTTON3(action, textActive, textInactive, isMenu)   result = Context.AddButton(Menu, active, (action), (textActive), (textInactive), (isMenu), "")
 
#define MINUTE   (60*1000)
 

Functions

static QString tv_i18n (const QString &msg)
 
static bool SysEventHandleAction (MythMainWindow *MainWindow, QKeyEvent *e, const QStringList &actions)
 
static QString add_spacer (const QString &chan, const QString &spacer)
 
static uint get_chanid (const PlayerContext *ctx, uint cardid, const QString &channum)
 
static QString toCommaList (const QSet< uint > &list)
 
static void insert_map (InfoMap &infoMap, const InfoMap &newMap)
 

Macro Definition Documentation

◆ round

#define round (   x)    ((int) ((x) + 0.5))

Definition at line 80 of file tv_play.cpp.

◆ DEBUG_CHANNEL_PREFIX

#define DEBUG_CHANNEL_PREFIX   0

set to 1 to debug channel prefixing

Definition at line 83 of file tv_play.cpp.

◆ DEBUG_ACTIONS

#define DEBUG_ACTIONS   0

set to 1 to debug actions

Definition at line 84 of file tv_play.cpp.

◆ LOC

#define LOC   QString("TV::%1(): ").arg(__func__)

Definition at line 86 of file tv_play.cpp.

◆ HideOSDWindow

#define HideOSDWindow (   WINDOW)
Value:
{ \
OSD *osd = GetOSDL(); \
if (osd) \
osd->HideWindow(WINDOW); \
ReturnOSDLock(); }

Definition at line 88 of file tv_play.cpp.

◆ TRANSITION

#define TRANSITION (   ASTATE,
  BSTATE 
)    ((ctxState == (ASTATE)) && (desiredNextState == (BSTATE)))

Definition at line 1981 of file tv_play.cpp.

◆ SET_NEXT

#define SET_NEXT ( )    do { nextState = desiredNextState; changed = true; } while(false)

Definition at line 1983 of file tv_play.cpp.

◆ SET_LAST

#define SET_LAST ( )    do { nextState = ctxState; changed = true; } while(false)

Definition at line 1984 of file tv_play.cpp.

◆ BUTTON

#define BUTTON (   action,
  text 
)    result = Context.AddButton(Menu, active, (action), (text), "", false, "")

Definition at line 8388 of file tv_play.cpp.

◆ BUTTON2

#define BUTTON2 (   action,
  textActive,
  textInactive 
)    result = Context.AddButton(Menu, active, (action), (textActive), (textInactive), false, "")

Definition at line 8390 of file tv_play.cpp.

◆ BUTTON3

#define BUTTON3 (   action,
  textActive,
  textInactive,
  isMenu 
)    result = Context.AddButton(Menu, active, (action), (textActive), (textInactive), (isMenu), "")

Definition at line 8392 of file tv_play.cpp.

◆ MINUTE

#define MINUTE   (60*1000)

Definition at line 9551 of file tv_play.cpp.

Function Documentation

◆ tv_i18n()

static QString tv_i18n ( const QString &  msg)
static

Definition at line 1986 of file tv_play.cpp.

Referenced by TV::HandleStateChange().

◆ SysEventHandleAction()

static bool SysEventHandleAction ( MythMainWindow MainWindow,
QKeyEvent *  e,
const QStringList &  actions 
)
static

Definition at line 3197 of file tv_play.cpp.

Referenced by TV::ProcessKeypressOrGesture().

◆ add_spacer()

static QString add_spacer ( const QString &  chan,
const QString &  spacer 
)
static

Definition at line 5828 of file tv_play.cpp.

Referenced by TV::ChangeChannel(), and TV::ProcessSmartChannel().

◆ get_chanid()

static uint get_chanid ( const PlayerContext ctx,
uint  cardid,
const QString &  channum 
)
static

Definition at line 6027 of file tv_play.cpp.

Referenced by TV::ChangeChannel().

◆ toCommaList()

static QString toCommaList ( const QSet< uint > &  list)
static

Definition at line 6725 of file tv_play.cpp.

Referenced by TV::IsTunableOn().

◆ insert_map()

static void insert_map ( InfoMap infoMap,
const InfoMap newMap 
)
static

Definition at line 7886 of file tv_play.cpp.

Referenced by TV::HandleOSDChannelEdit().