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 (const QString &_channum, const QString &_callsign, uint _chanid, uint _major_chan, uint _minor_chan, uint _mplexid, ChannelVisibleType _visible, const QString &_name, const QString &_icon, uint _sourceid)
 
ChannelInfooperator= (const ChannelInfo &other)
 
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)
 
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 33 of file channelinfo.h.

Member Enumeration Documentation

◆ ChannelFormat

Enumerator
kChannelShort 
kChannelLong 

Definition at line 51 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,
ChannelVisibleType  _visible,
const QString &  _name,
const QString &  _icon,
uint  _sourceid 
)

Definition at line 63 of file channelinfo.cpp.

Member Function Documentation

◆ operator=()

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

Definition at line 82 of file channelinfo.cpp.

◆ operator==()

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

Definition at line 46 of file channelinfo.h.

◆ Load()

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

Definition at line 126 of file channelinfo.cpp.

◆ GetFormatted()

QString ChannelInfo::GetFormatted ( const ChannelFormat format) const

Definition at line 187 of file channelinfo.cpp.

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

◆ ToMap()

void ChannelInfo::ToMap ( InfoMap infoMap)

◆ GetSourceName()

QString ChannelInfo::GetSourceName ( )

Definition at line 207 of file channelinfo.cpp.

Referenced by ToMap().

◆ SetSourceName()

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

Definition at line 56 of file channelinfo.h.

◆ GetGroupIds()

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

Definition at line 59 of file channelinfo.h.

Referenced by FillChannelInfo(), and ToMap().

◆ LoadGroupIds()

void ChannelInfo::LoadGroupIds ( )

Definition at line 258 of file channelinfo.cpp.

◆ AddGroupId()

void ChannelInfo::AddGroupId ( uint  lgroupid)
inline

◆ RemoveGroupId()

void ChannelInfo::RemoveGroupId ( uint  lgroupid)
inline

Definition at line 66 of file channelinfo.h.

◆ GetInputIds()

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

Definition at line 69 of file channelinfo.h.

Referenced by FillChannelInfo().

◆ LoadInputIds()

void ChannelInfo::LoadInputIds ( )

Definition at line 236 of file channelinfo.cpp.

◆ AddInputId()

void ChannelInfo::AddInputId ( uint  linputid)
inline

◆ RemoveInputId()

void ChannelInfo::RemoveInputId ( uint  linputid)
inline

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

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

◆ m_brightness

uint ChannelInfo::m_brightness {32768}

Definition at line 103 of file channelinfo.h.

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

◆ m_colour

uint ChannelInfo::m_colour {32768}

Definition at line 104 of file channelinfo.h.

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

◆ m_hue

uint ChannelInfo::m_hue {32768}

Definition at line 105 of file channelinfo.h.

Referenced by ChannelInfo(), 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 109 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_serviceType

uint ChannelInfo::m_serviceType {0}

Definition at line 114 of file channelinfo.h.

Referenced by ChannelInfo(), and FillChannelInfo().

◆ m_atscMajorChan

uint ChannelInfo::m_atscMajorChan {0}

◆ m_atscMinorChan

uint ChannelInfo::m_atscMinorChan {0}

◆ m_lastRecord

QDateTime ChannelInfo::m_lastRecord

Definition at line 118 of file channelinfo.h.

Referenced by ChannelInfo(), 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}

Definition at line 122 of file channelinfo.h.

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

◆ m_iptvId

uint ChannelInfo::m_iptvId {0}

Definition at line 123 of file channelinfo.h.

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

◆ m_oldXmltvId

QString ChannelInfo::m_oldXmltvId

Definition at line 125 of file channelinfo.h.

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

◆ m_sourceName

QString ChannelInfo::m_sourceName
private

Definition at line 128 of file channelinfo.h.

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

◆ m_groupIdList

QList<uint> ChannelInfo::m_groupIdList
private

Definition at line 130 of file channelinfo.h.

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

◆ m_inputIdList

QList<uint> ChannelInfo::m_inputIdList
private

Definition at line 131 of file channelinfo.h.

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


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