Go to the documentation of this file.
24 bool discontinuity {
false};
37 QString InitializeNewChain(
const QString &seed);
38 void LoadFromExistingChain(
const QString &
id);
40 void SetHostPrefix(
const QString &
prefix);
41 void SetInputType(
const QString &
type);
43 void DestroyChain(
void);
45 void AppendNewProgram(
ProgramInfo *pginfo,
const QString& channum,
46 const QString& inputname,
bool discont);
50 void ReloadAll(
const QStringList &data = QStringList());
53 QString
GetID(
void)
const {
return m_id; }
55 int ProgramIsAt(
uint chanid,
const QDateTime &starttime)
const;
57 int GetLengthAtCurPos(
void);
58 int GetLengthAtPos(
int pos);
59 int TotalSize(
void)
const;
60 bool HasNext(
void)
const;
61 bool HasPrev(
void)
const {
return (m_curPos > 0); }
66 {
return (m_switchId >= 0 && m_jumpPos == INT_MAX); }
69 {
return (m_switchId >= 0 && m_jumpPos != INT_MAX); }
70 QString GetChannelName(
int pos = -1)
const;
71 QString GetInputName(
int pos = -1)
const;
72 QString GetInputType(
int pos = -1)
const;
76 void SwitchTo(
int num);
77 void SwitchToNext(
bool up);
78 void ClearSwitch(
void);
79 ProgramInfo *GetSwitchProgram(
bool &discont,
bool &newtype,
int &newid);
82 void JumpTo(
int num,
int pos);
83 void JumpToNext(
bool up,
int pos);
89 uint HostSocketCount(
void)
const;
95 QStringList entriesToStringList()
const;
97 bool entriesFromStringList(
const QStringList &items);
100 void BroadcastUpdate();
103 ProgramInfo *DoGetNextProgram(
bool up,
int curpos,
int &newid,
104 bool &discont,
bool &newtype);
109 mutable QMutex m_lock {QMutex::Recursive};
121 int m_jumpPos {INT_MAX};
127 #endif // LIVETVCHAIN_H
int GetCurPos(void) const
QString GetID(void) const
QList< LiveTVChainEntry > m_chain
bool NeedsToJump(void) const
Returns true iff a switch and jump are required.
Class for communcating between myth backends and frontends.
QString toString(MarkTypes type)
QList< MythSocket * > m_inUseSocks
Holds information on recordings and videos.
LiveTVChainEntry m_switchEntry
bool NeedsToSwitch(void) const
Returns true iff a switch is required but no jump is required m_jumppos sets to INT_MAX means not set...
General purpose reference counter.
Keeps track of recordings in a current LiveTV instance.