MythTV  master
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ChannelInfo Class Reference

#include <channelinfo.h>

Public Types

enum  ChannelFormat { kChannelShort, kChannelLong }
 

Public Member Functions

 ChannelInfo ()=default
 
 ChannelInfo (const ChannelInfo &)
 
 ChannelInfo (const QString &_channum, const QString &_callsign, uint _chanid, uint _major_chan, uint _minor_chan, uint _mplexid, bool _visible, const QString &_name, const QString &_icon, uint _sourceid)
 
ChannelInfooperator= (const ChannelInfo &)
 
bool operator== (uint chanid) const
 
bool Load (uint lchanid=-1)
 
QString GetFormatted (const ChannelFormat &format) const
 
void ToMap (InfoMap &infoMap)
 
QString GetSourceName ()
 
void SetSourceName (const QString &lname)
 
const QList< uintGetGroupIds () const
 
void LoadGroupIds ()
 
void AddGroupId (uint lgroupid)
 
void RemoveGroupId (uint lgroupid)
 
const QList< uintGetInputIds () const
 
void LoadInputIds ()
 
void AddInputId (uint linputid)
 
void RemoveInputId (uint linputid)
 

Public Attributes

uint m_chanid {0}
 
QString m_channum
 
QString m_freqid
 
uint m_sourceid {0}
 
QString m_callsign
 
QString m_name
 
QString m_icon
 
int m_finetune {0}
 
QString m_videofilters
 
QString m_xmltvid
 
int m_recpriority {0}
 
uint m_contrast {32768}
 
uint m_brightness {32768}
 
uint m_colour {32768}
 
uint m_hue {32768}
 
QString m_tvformat
 
bool m_visible {true}
 
QString m_outputfilters
 
bool m_useonairguide {false}
 
uint m_mplexid {0}
 
uint m_serviceid {0}
 
uint m_atsc_major_chan {0}
 
uint m_atsc_minor_chan {0}
 
QDateTime m_last_record
 
QString m_default_authority
 
int m_commmethod {-1}
 
int m_tmoffset {0}
 
uint m_iptvid {0}
 
QString m_old_xmltvid
 

Private Member Functions

void Init ()
 

Private Attributes

QString m_sourcename
 
QList< uintm_groupIdList
 
QList< uintm_inputIdList
 

Detailed Description

Definition at line 21 of file channelinfo.h.

Member Enumeration Documentation

◆ ChannelFormat

Enumerator
kChannelShort 
kChannelLong 

Definition at line 39 of file channelinfo.h.

Constructor & Destructor Documentation

◆ ChannelInfo() [1/3]

ChannelInfo::ChannelInfo ( )
default

◆ ChannelInfo() [2/3]

ChannelInfo::ChannelInfo ( const ChannelInfo other)

Definition at line 23 of file channelinfo.cpp.

◆ ChannelInfo() [3/3]

ChannelInfo::ChannelInfo ( const QString &  _channum,
const QString &  _callsign,
uint  _chanid,
uint  _major_chan,
uint  _minor_chan,
uint  _mplexid,
bool  _visible,
const QString &  _name,
const QString &  _icon,
uint  _sourceid 
)

Definition at line 62 of file channelinfo.cpp.

Member Function Documentation

◆ operator=()

ChannelInfo & ChannelInfo::operator= ( const ChannelInfo other)

Definition at line 81 of file channelinfo.cpp.

◆ operator==()

bool ChannelInfo::operator== ( uint  chanid) const
inline

Definition at line 34 of file channelinfo.h.

◆ Load()

bool ChannelInfo::Load ( uint  lchanid = -1)

Definition at line 125 of file channelinfo.cpp.

Referenced by FillChannelInfo().

◆ GetFormatted()

QString ChannelInfo::GetFormatted ( const ChannelFormat format) const

◆ ToMap()

void ChannelInfo::ToMap ( InfoMap infoMap)

◆ GetSourceName()

QString ChannelInfo::GetSourceName ( )

Definition at line 205 of file channelinfo.cpp.

Referenced by ToMap().

◆ SetSourceName()

void ChannelInfo::SetSourceName ( const QString &  lname)
inline

Definition at line 44 of file channelinfo.h.

Referenced by ChannelRecPriority::FillList().

◆ GetGroupIds()

const QList<uint> ChannelInfo::GetGroupIds ( ) const
inline

Definition at line 47 of file channelinfo.h.

Referenced by FillChannelInfo(), and ToMap().

◆ LoadGroupIds()

void ChannelInfo::LoadGroupIds ( )

Definition at line 256 of file channelinfo.cpp.

◆ AddGroupId()

void ChannelInfo::AddGroupId ( uint  lgroupid)
inline

Definition at line 49 of file channelinfo.h.

Referenced by ChannelUtil::LoadChannels(), and LoadGroupIds().

◆ RemoveGroupId()

void ChannelInfo::RemoveGroupId ( uint  lgroupid)
inline

Definition at line 54 of file channelinfo.h.

◆ GetInputIds()

const QList<uint> ChannelInfo::GetInputIds ( ) const
inline

Definition at line 57 of file channelinfo.h.

Referenced by FillChannelInfo().

◆ LoadInputIds()

void ChannelInfo::LoadInputIds ( )

Definition at line 234 of file channelinfo.cpp.

◆ AddInputId()

void ChannelInfo::AddInputId ( uint  linputid)
inline

Definition at line 61 of file channelinfo.h.

Referenced by ChannelUtil::LoadChannels(), and LoadInputIds().

◆ RemoveInputId()

void ChannelInfo::RemoveInputId ( uint  linputid)
inline

Definition at line 66 of file channelinfo.h.

◆ Init()

void ChannelInfo::Init ( )
private

Member Data Documentation

◆ m_chanid

uint ChannelInfo::m_chanid {0}

◆ m_channum

QString ChannelInfo::m_channum

◆ m_freqid

QString ChannelInfo::m_freqid

◆ m_sourceid

uint ChannelInfo::m_sourceid {0}

◆ m_callsign

QString ChannelInfo::m_callsign

◆ m_name

QString ChannelInfo::m_name

◆ m_icon

QString ChannelInfo::m_icon

◆ m_finetune

int ChannelInfo::m_finetune {0}

◆ m_videofilters

QString ChannelInfo::m_videofilters

◆ m_xmltvid

QString ChannelInfo::m_xmltvid

◆ m_recpriority

int ChannelInfo::m_recpriority {0}

◆ m_contrast

uint ChannelInfo::m_contrast {32768}

Definition at line 90 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_brightness

uint ChannelInfo::m_brightness {32768}

Definition at line 91 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_colour

uint ChannelInfo::m_colour {32768}

Definition at line 92 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_hue

uint ChannelInfo::m_hue {32768}

Definition at line 93 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_tvformat

QString ChannelInfo::m_tvformat

◆ m_visible

bool ChannelInfo::m_visible {true}

◆ m_outputfilters

QString ChannelInfo::m_outputfilters

Definition at line 97 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_useonairguide

bool ChannelInfo::m_useonairguide {false}

◆ m_mplexid

uint ChannelInfo::m_mplexid {0}

◆ m_serviceid

uint ChannelInfo::m_serviceid {0}

◆ m_atsc_major_chan

uint ChannelInfo::m_atsc_major_chan {0}

◆ m_atsc_minor_chan

uint ChannelInfo::m_atsc_minor_chan {0}

◆ m_last_record

QDateTime ChannelInfo::m_last_record

Definition at line 105 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_default_authority

QString ChannelInfo::m_default_authority

◆ m_commmethod

int ChannelInfo::m_commmethod {-1}

◆ m_tmoffset

int ChannelInfo::m_tmoffset {0}

Definition at line 109 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_iptvid

uint ChannelInfo::m_iptvid {0}

Definition at line 110 of file channelinfo.h.

Referenced by ChannelInfo(), Load(), ChannelUtil::LoadChannels(), and operator=().

◆ m_old_xmltvid

QString ChannelInfo::m_old_xmltvid

Definition at line 112 of file channelinfo.h.

Referenced by ChannelInfo(), and operator=().

◆ m_sourcename

QString ChannelInfo::m_sourcename
private

Definition at line 115 of file channelinfo.h.

Referenced by ChannelInfo(), GetSourceName(), and operator=().

◆ m_groupIdList

QList<uint> ChannelInfo::m_groupIdList
private

Definition at line 117 of file channelinfo.h.

Referenced by ChannelInfo(), LoadGroupIds(), and operator=().

◆ m_inputIdList

QList<uint> ChannelInfo::m_inputIdList
private

Definition at line 118 of file channelinfo.h.

Referenced by ChannelInfo(), LoadInputIds(), and operator=().


The documentation for this class was generated from the following files: