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

#include <channelinfo.h>

Collaboration diagram for ChannelInfo:
Collaboration graph
[legend]

Public Types

enum  ChannelFormat { kChannelShort, kChannelLong }
 

Public Member Functions

 ChannelInfo ()=default
 
 ChannelInfo (const ChannelInfo &other)
 
 ChannelInfo (QString _channum, QString _callsign, uint _chanid, uint _major_chan, uint _minor_chan, uint _mplexid, ChannelVisibleType _visible, QString _name, QString _icon, uint _sourceid)
 
ChannelInfooperator= (const ChannelInfo &other)
 
bool operator== (uint chanid) const
 
bool Load (uint lchanid=-1)
 
QString GetFormatted (ChannelFormat format) const
 
void ToMap (InfoMap &infoMap)
 
QString GetSourceName ()
 
void SetSourceName (const QString &lname)
 
QList< uintGetGroupIds () const
 
void LoadGroupIds ()
 
void AddGroupId (uint lgroupid)
 
void RemoveGroupId (uint lgroupid)
 
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
 
ChannelVisibleType m_visible {kChannelVisible}
 
QString m_outputFilters
 
bool m_useOnAirGuide {false}
 
uint m_mplexId {0}
 
uint m_serviceId {0}
 
uint m_serviceType {0}
 
uint m_atscMajorChan {0}
 
uint m_atscMinorChan {0}
 
QDateTime m_lastRecord
 
QString m_defaultAuthority
 
int m_commMethod {-1}
 
int m_tmOffset {0}
 
uint m_iptvId {0}
 
QString m_oldXmltvId
 

Private Member Functions

void Init ()
 

Private Attributes

QString m_sourceName
 
QList< uintm_groupIdList
 
QList< uintm_inputIdList
 

Detailed Description

Definition at line 31 of file channelinfo.h.

Member Enumeration Documentation

◆ ChannelFormat

Enumerator
kChannelShort 
kChannelLong 

Definition at line 49 of file channelinfo.h.

Constructor & Destructor Documentation

◆ ChannelInfo() [1/3]

ChannelInfo::ChannelInfo ( )
default

◆ ChannelInfo() [2/3]

ChannelInfo::ChannelInfo ( const ChannelInfo other)

Definition at line 27 of file channelinfo.cpp.

◆ ChannelInfo() [3/3]

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

Definition at line 67 of file channelinfo.cpp.

Member Function Documentation

◆ operator=()

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

Definition at line 86 of file channelinfo.cpp.

◆ operator==()

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

Definition at line 44 of file channelinfo.h.

◆ Load()

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

◆ GetFormatted()

QString ChannelInfo::GetFormatted ( ChannelFormat  format) const

Definition at line 192 of file channelinfo.cpp.

Referenced by GuideGrid::updateChannelsUI(), and ChannelRecPriority::updateList().

◆ ToMap()

void ChannelInfo::ToMap ( InfoMap infoMap)

◆ GetSourceName()

QString ChannelInfo::GetSourceName ( )

Definition at line 212 of file channelinfo.cpp.

Referenced by ToMap().

◆ SetSourceName()

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

Definition at line 54 of file channelinfo.h.

◆ GetGroupIds()

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

Definition at line 57 of file channelinfo.h.

Referenced by FillChannelInfo(), ToMap(), and V2FillChannelInfo().

◆ LoadGroupIds()

void ChannelInfo::LoadGroupIds ( )

Definition at line 263 of file channelinfo.cpp.

◆ AddGroupId()

void ChannelInfo::AddGroupId ( uint  lgroupid)
inline

◆ RemoveGroupId()

void ChannelInfo::RemoveGroupId ( uint  lgroupid)
inline

Definition at line 64 of file channelinfo.h.

◆ GetInputIds()

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

Definition at line 67 of file channelinfo.h.

Referenced by FillChannelInfo(), and V2FillChannelInfo().

◆ LoadInputIds()

void ChannelInfo::LoadInputIds ( )

Definition at line 241 of file channelinfo.cpp.

◆ AddInputId()

void ChannelInfo::AddInputId ( uint  linputid)
inline

◆ RemoveInputId()

void ChannelInfo::RemoveInputId ( uint  linputid)
inline

Definition at line 76 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 100 of file channelinfo.h.

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

◆ m_brightness

uint ChannelInfo::m_brightness {32768}

Definition at line 101 of file channelinfo.h.

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

◆ m_colour

uint ChannelInfo::m_colour {32768}

Definition at line 102 of file channelinfo.h.

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

◆ m_hue

uint ChannelInfo::m_hue {32768}

Definition at line 103 of file channelinfo.h.

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

◆ m_tvFormat

QString ChannelInfo::m_tvFormat

◆ m_visible

ChannelVisibleType ChannelInfo::m_visible {kChannelVisible}

◆ m_outputFilters

QString ChannelInfo::m_outputFilters

Definition at line 107 of file channelinfo.h.

Referenced by 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_serviceType

uint ChannelInfo::m_serviceType {0}

◆ m_atscMajorChan

uint ChannelInfo::m_atscMajorChan {0}

◆ m_atscMinorChan

uint ChannelInfo::m_atscMinorChan {0}

◆ m_lastRecord

QDateTime ChannelInfo::m_lastRecord

Definition at line 116 of file channelinfo.h.

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

◆ m_defaultAuthority

QString ChannelInfo::m_defaultAuthority

◆ m_commMethod

int ChannelInfo::m_commMethod {-1}

◆ m_tmOffset

int ChannelInfo::m_tmOffset {0}

◆ m_iptvId

uint ChannelInfo::m_iptvId {0}

Definition at line 121 of file channelinfo.h.

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

◆ m_oldXmltvId

QString ChannelInfo::m_oldXmltvId

Definition at line 123 of file channelinfo.h.

Referenced by operator=().

◆ m_sourceName

QString ChannelInfo::m_sourceName
private

Definition at line 126 of file channelinfo.h.

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

◆ m_groupIdList

QList<uint> ChannelInfo::m_groupIdList
private

Definition at line 128 of file channelinfo.h.

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

◆ m_inputIdList

QList<uint> ChannelInfo::m_inputIdList
private

Definition at line 129 of file channelinfo.h.

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


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