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

Go to the source code of this file.

Classes

class  TV::SleepTimerInfo
 

Macros

#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 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), "")
 

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 QVector< uint > &list)
 
static void insert_map (InfoMap &infoMap, const InfoMap &newMap)
 

Macro Definition Documentation

◆ DEBUG_CHANNEL_PREFIX

#define DEBUG_CHANNEL_PREFIX   0

set to 1 to debug channel prefixing

Definition at line 77 of file tv_play.cpp.

◆ DEBUG_ACTIONS

#define DEBUG_ACTIONS   0

set to 1 to debug actions

Definition at line 78 of file tv_play.cpp.

◆ LOC

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

Definition at line 80 of file tv_play.cpp.

◆ TRANSITION

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

Definition at line 1911 of file tv_play.cpp.

◆ SET_NEXT

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

Definition at line 1913 of file tv_play.cpp.

◆ SET_LAST

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

Definition at line 1914 of file tv_play.cpp.

◆ BUTTON

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

Definition at line 8326 of file tv_play.cpp.

◆ BUTTON2

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

Definition at line 8328 of file tv_play.cpp.

◆ BUTTON3

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

Definition at line 8330 of file tv_play.cpp.

Function Documentation

◆ tv_i18n()

static QString tv_i18n ( const QString &  msg)
static

Definition at line 1917 of file tv_play.cpp.

Referenced by TV::HandleStateChange().

◆ SysEventHandleAction()

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

Definition at line 3148 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 5757 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 5956 of file tv_play.cpp.

Referenced by TV::ChangeChannel().

◆ toCommaList()

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

Definition at line 6664 of file tv_play.cpp.

Referenced by MythDB::GetError(), and TV::IsTunableOn().

◆ insert_map()

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

Definition at line 7825 of file tv_play.cpp.

Referenced by TV::HandleOSDChannelEdit().