MythTV  master
Classes | Macros | Functions | Variables
guidegrid.cpp File Reference
#include <algorithm>
#include <cstdint>
#include <deque>
#include <QCoreApplication>
#include <QDateTime>
#include <QKeyEvent>
#include "libmyth/programinfo.h"
#include "libmyth/remoteutil.h"
#include "libmythbase/autodeletedeque.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdbcon.h"
#include "libmythbase/mythevent.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythtypes.h"
#include "libmythbase/programtypes.h"
#include "libmythbase/recordingtypes.h"
#include "libmythtv/cardutil.h"
#include "libmythtv/channelinfo.h"
#include "libmythtv/channelutil.h"
#include "libmythtv/recordingrule.h"
#include "libmythtv/tv.h"
#include "libmythtv/tv_actions.h"
#include "libmythtv/tv_play.h"
#include "libmythtv/tvremoteutil.h"
#include "libmythui/mythdialogbox.h"
#include "libmythui/mythgesture.h"
#include "libmythui/mythmainwindow.h"
#include "libmythui/mythrect.h"
#include "libmythui/mythscreenstack.h"
#include "libmythui/mythscreentype.h"
#include "libmythui/mythuiactions.h"
#include "libmythui/mythuibuttonlist.h"
#include "libmythui/mythuiguidegrid.h"
#include "libmythui/mythuiimage.h"
#include "libmythui/mythuistatetype.h"
#include "libmythui/mythuitext.h"
#include "libmythui/mythuiutils.h"
#include "guidegrid.h"
#include "progfind.h"
Include dependency graph for guidegrid.cpp:

Go to the source code of this file.

Classes

class  GuideStatus
 
class  GuideUpdaterBase
 
class  GuideUpdateProgramRow
 
class  GuideUpdateChannels
 
class  UpdateGuideEvent
 
class  GuideHelper
 

Macros

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

Functions

static bool SelectionIsTunable (const ChannelInfoList &selection)
 
static bool has_action (const QString &action, const QStringList &actions)
 
static ProgramListCopyProglist (ProgramList *proglist)
 
static constexpr uint64_t MKKEY (uint64_t IDX, uint64_t SEL)
 

Variables

QWaitCondition epgIsVisibleCond
 
const QString kUnknownTitle = ""
 
static constexpr std::chrono::milliseconds kUpdateMS { 60s }
 
static constexpr int64_t kFourMinutes { 4LL * 60 }
 
static constexpr int64_t kFiveMinutes { 5LL * 60 }
 
static constexpr int64_t kThirtyMinutes { 30LL * 60 }
 
static constexpr int64_t kEightHours { 8 * 60LL * 60 }
 
static constexpr int64_t kOneDay { 24 * 60LL * 60 }
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("GuideGrid: ")

Definition at line 51 of file guidegrid.cpp.

◆ LOC_ERR

#define LOC_ERR   QString("GuideGrid, Error: ")

Definition at line 52 of file guidegrid.cpp.

◆ LOC_WARN

#define LOC_WARN   QString("GuideGrid, Warning: ")

Definition at line 53 of file guidegrid.cpp.

Function Documentation

◆ SelectionIsTunable()

static bool SelectionIsTunable ( const ChannelInfoList selection)
static

◆ has_action()

static bool has_action ( const QString &  action,
const QStringList &  actions 
)
static

Definition at line 102 of file guidegrid.cpp.

Referenced by JumpToChannel::ProcessEntry().

◆ CopyProglist()

static ProgramList* CopyProglist ( ProgramList proglist)
static

Definition at line 1197 of file guidegrid.cpp.

Referenced by GuideGrid::fillProgramRowInfos().

◆ MKKEY()

static constexpr uint64_t MKKEY ( uint64_t  IDX,
uint64_t  SEL 
)
staticconstexpr

Definition at line 1267 of file guidegrid.cpp.

Referenced by GuideGrid::GetSelection().

Variable Documentation

◆ epgIsVisibleCond

QWaitCondition epgIsVisibleCond

Definition at line 49 of file guidegrid.cpp.

Referenced by GuideGrid::Close(), and GuideGrid::enter().

◆ kUnknownTitle

const QString kUnknownTitle = ""

◆ kUpdateMS

constexpr std::chrono::milliseconds kUpdateMS { 60s }
staticconstexpr

Definition at line 57 of file guidegrid.cpp.

Referenced by GuideGrid::Init(), and GuideGrid::updateTimeout().

◆ kFourMinutes

constexpr int64_t kFourMinutes { 4LL * 60 }
staticconstexpr

Definition at line 58 of file guidegrid.cpp.

Referenced by GuideGrid::fillTimeInfos().

◆ kFiveMinutes

constexpr int64_t kFiveMinutes { 5LL * 60 }
staticconstexpr

◆ kThirtyMinutes

constexpr int64_t kThirtyMinutes { 30LL * 60 }
staticconstexpr

Definition at line 60 of file guidegrid.cpp.

Referenced by GuideGrid::fillTimeInfos(), and GuideGrid::moveLeftRight().

◆ kEightHours

constexpr int64_t kEightHours { 8 * 60LL * 60 }
staticconstexpr

Definition at line 61 of file guidegrid.cpp.

Referenced by GuideGrid::GuideGrid().

◆ kOneDay

constexpr int64_t kOneDay { 24 * 60LL * 60 }
staticconstexpr

Definition at line 62 of file guidegrid.cpp.

Referenced by GuideGrid::moveLeftRight().