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

Class used for doing a list of frequencies / transports. More...

#include <frequencytables.h>

Collaboration diagram for TransportScanItem:
Collaboration graph
[legend]

Public Member Functions

 TransportScanItem ()
 
 TransportScanItem (uint _sourceid, const QString &_si_std, QString _name, uint _mplexid, std::chrono::milliseconds _timeoutTune)
 
 TransportScanItem (uint _sourceid, QString _name, const DTVMultiplex &_tuning, std::chrono::milliseconds _timeoutTune)
 
 TransportScanItem (uint _sourceid, QString _name, DTVTunerType _tuner_type, const DTVTransport &_tuning, std::chrono::milliseconds _timeoutTune)
 
 TransportScanItem (uint _sourceid, const QString &_si_std, QString strFmt, uint freqNum, uint frequency, const FrequencyTable &ft, std::chrono::milliseconds _timeoutTune)
 
 TransportScanItem (uint _sourceid, QString _name, IPTVTuningData _tuning, QString _channel, std::chrono::milliseconds _timeoutTune)
 
uint offset_cnt () const
 
uint64_t freq_offset (uint i) const
 
QString toString () const
 

Public Attributes

uint m_mplexid {UINT_MAX}
 
QString m_friendlyName
 
uint m_friendlyNum {0}
 
int m_sourceID {0}
 
bool m_useTimer {false}
 
bool m_scanning {false}
 
std::array< int, 3 > m_freqOffsets {0,0,0}
 
std::chrono::milliseconds m_timeoutTune {1s}
 Timeout to tune to a frequency. More...
 
DTVMultiplex m_tuning
 
IPTVTuningData m_iptvTuning
 
QString m_iptvChannel
 
DTVChannelInfoList m_expectedChannels
 
uint m_networkID {0}
 
uint m_transportID {0}
 
int m_signalStrength {0}
 

Private Member Functions

uint GetMultiplexIdFromDB (void) const
 Fetches mplexid if it exists, based on the frequency and sourceid. More...
 

Detailed Description

Class used for doing a list of frequencies / transports.

This is used for ATSC/NA Digital Cable and also scan all transports.

Definition at line 127 of file frequencytables.h.

Constructor & Destructor Documentation

◆ TransportScanItem() [1/6]

TransportScanItem::TransportScanItem ( )

Definition at line 18 of file frequencytables.cpp.

◆ TransportScanItem() [2/6]

TransportScanItem::TransportScanItem ( uint  _sourceid,
const QString &  _si_std,
QString  _name,
uint  _mplexid,
std::chrono::milliseconds  _timeoutTune 
)

Definition at line 23 of file frequencytables.cpp.

◆ TransportScanItem() [3/6]

TransportScanItem::TransportScanItem ( uint  _sourceid,
QString  _name,
const DTVMultiplex _tuning,
std::chrono::milliseconds  _timeoutTune 
)

Definition at line 42 of file frequencytables.cpp.

◆ TransportScanItem() [4/6]

TransportScanItem::TransportScanItem ( uint  _sourceid,
QString  _name,
DTVTunerType  _tuner_type,
const DTVTransport _tuning,
std::chrono::milliseconds  _timeoutTune 
)

Definition at line 54 of file frequencytables.cpp.

◆ TransportScanItem() [5/6]

TransportScanItem::TransportScanItem ( uint  _sourceid,
const QString &  _si_std,
QString  strFmt,
uint  freqNum,
uint  frequency,
const FrequencyTable ft,
std::chrono::milliseconds  _timeoutTune 
)

Definition at line 80 of file frequencytables.cpp.

◆ TransportScanItem() [6/6]

TransportScanItem::TransportScanItem ( uint  _sourceid,
QString  _name,
IPTVTuningData  _tuning,
QString  _channel,
std::chrono::milliseconds  _timeoutTune 
)

Definition at line 129 of file frequencytables.cpp.

Member Function Documentation

◆ offset_cnt()

uint TransportScanItem::offset_cnt ( ) const
inline

Definition at line 162 of file frequencytables.h.

Referenced by GetMultiplexIdFromDB().

◆ freq_offset()

uint64_t TransportScanItem::freq_offset ( uint  i) const

◆ toString()

QString TransportScanItem::toString ( ) const

◆ GetMultiplexIdFromDB()

uint TransportScanItem::GetMultiplexIdFromDB ( void  ) const
private

Fetches mplexid if it exists, based on the frequency and sourceid.

Definition at line 147 of file frequencytables.cpp.

Member Data Documentation

◆ m_mplexid

uint TransportScanItem::m_mplexid {UINT_MAX}

Definition at line 173 of file frequencytables.h.

Referenced by ChannelScanSM::ScanTransport(), toString(), and ChannelScanSM::Tune().

◆ m_friendlyName

QString TransportScanItem::m_friendlyName

Definition at line 175 of file frequencytables.h.

Referenced by ChannelScanSM::ScanTransport(), and toString().

◆ m_friendlyNum

uint TransportScanItem::m_friendlyNum {0}

Definition at line 176 of file frequencytables.h.

Referenced by toString().

◆ m_sourceID

int TransportScanItem::m_sourceID {0}

Definition at line 177 of file frequencytables.h.

Referenced by GetMultiplexIdFromDB(), and toString().

◆ m_useTimer

bool TransportScanItem::m_useTimer {false}

Definition at line 178 of file frequencytables.h.

Referenced by toString().

◆ m_scanning

bool TransportScanItem::m_scanning {false}

Definition at line 180 of file frequencytables.h.

Referenced by toString().

◆ m_freqOffsets

std::array<int,3> TransportScanItem::m_freqOffsets {0,0,0}

Definition at line 181 of file frequencytables.h.

Referenced by freq_offset(), offset_cnt(), toString(), and TransportScanItem().

◆ m_timeoutTune

std::chrono::milliseconds TransportScanItem::m_timeoutTune {1s}

Timeout to tune to a frequency.

Definition at line 182 of file frequencytables.h.

Referenced by toString().

◆ m_tuning

DTVMultiplex TransportScanItem::m_tuning

◆ m_iptvTuning

IPTVTuningData TransportScanItem::m_iptvTuning

Definition at line 185 of file frequencytables.h.

Referenced by toString(), and ChannelScanSM::Tune().

◆ m_iptvChannel

QString TransportScanItem::m_iptvChannel

Definition at line 186 of file frequencytables.h.

Referenced by toString().

◆ m_expectedChannels

DTVChannelInfoList TransportScanItem::m_expectedChannels

Definition at line 188 of file frequencytables.h.

Referenced by TransportScanItem().

◆ m_networkID

uint TransportScanItem::m_networkID {0}

Definition at line 190 of file frequencytables.h.

Referenced by ChannelScanSM::UpdateChannelInfo().

◆ m_transportID

uint TransportScanItem::m_transportID {0}

Definition at line 191 of file frequencytables.h.

Referenced by ChannelScanSM::UpdateChannelInfo().

◆ m_signalStrength

int TransportScanItem::m_signalStrength {0}

Definition at line 192 of file frequencytables.h.

Referenced by ChannelScanSM::UpdateChannelInfo().


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