DTVChannel Class Reference

#include <dtvchannel.h>

Inheritance diagram for DTVChannel:

ChannelBase Channel DVBChannel FirewireChannel HDHRChannel IPTVChannel

List of all members.


Detailed Description

Class providing a generic interface to digital tuning hardware.

Definition at line 32 of file dtvchannel.h.


Public Member Functions

 DTVChannel (TVRec *parent)
virtual ~DTVChannel ()
virtual bool TuneMultiplex (uint mplexid, QString inputname)=0
 To be used by the channel scanner and possibly the EIT scanner.
virtual bool Tune (const DTVMultiplex &tuning, QString inputname)=0
 To be used by the channel scanner and possibly the EIT scanner.
virtual bool EnterPowerSavingMode (void)
 Enters power saving mode if the card supports it.
int GetProgramNumber (void) const
 Returns program number in PAT, -1 if unknown.
uint GetMajorChannel (void) const
 Returns major channel, 0 if unknown.
uint GetMinorChannel (void) const
 Returns minor channel, 0 if unknown.
uint GetOriginalNetworkID (void) const
 Returns DVB original_network_id, 0 if unknown.
uint GetTransportID (void) const
 Returns DVB transport_stream_id, 0 if unknown.
QString GetSIStandard (void) const
 Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable.
QString GetSuggestedTuningMode (bool is_live_tv) const
 Returns suggested tuning mode: "mpeg", "dvb", or "atsc".
QString GetTuningMode (void) const
 Returns tuning mode last set by SetTuningMode().
virtual void GetCachedPids (pid_cache_t &pid_cache) const
 Returns cached MPEG PIDs for last tuned channel.
DTVChannelGetMaster (const QString &videodevice)
const DTVChannelGetMaster (const QString &videodevice) const
void SetTuningMode (const QString &tuningmode)
 Sets tuning mode: "mpeg", "dvb", "atsc", etc.
virtual void SaveCachedPids (const pid_cache_t &pid_cache) const
 Saves MPEG PIDs to cache to database.

Protected Member Functions

void SetSIStandard (const QString &)
 Sets PSIP table standard: MPEG, DVB, ATSC, or OpenCable.
void SetDTVInfo (uint atsc_major, uint atsc_minor, uint dvb_orig_netid, uint mpeg_tsid, int mpeg_pnum)
void ClearDTVInfo (void)

Static Protected Member Functions

static void GetCachedPids (int chanid, pid_cache_t &)
 Returns cached MPEG PIDs when given a Channel ID.
static void SaveCachedPids (int chanid, const pid_cache_t &)
 Saves PIDs for PSIP tables to database.

Protected Attributes

QMutex dtvinfo_lock
QString sistandard
 PSIP table standard: MPEG, DVB, ATSC, OpenCable.
QString tuningMode
int currentProgramNum
uint currentATSCMajorChannel
uint currentATSCMinorChannel
uint currentTransportID
uint currentOriginalNetworkID

Static Protected Attributes

static QMutex master_map_lock
static QMap< QString,
DTVChannel * > 
master_map

Constructor & Destructor Documentation

DTVChannel::DTVChannel ( TVRec parent  ) 

Definition at line 20 of file dtvchannel.cpp.

DTVChannel::~DTVChannel (  )  [virtual]

Definition at line 29 of file dtvchannel.cpp.


Member Function Documentation

virtual bool DTVChannel::TuneMultiplex ( uint  mplexid,
QString  inputname 
) [pure virtual]

To be used by the channel scanner and possibly the EIT scanner.

Implemented in Channel, DVBChannel, FirewireChannel, HDHRChannel, and IPTVChannel.

Referenced by SIScan::Tune().

virtual bool DTVChannel::Tune ( const DTVMultiplex tuning,
QString  inputname 
) [pure virtual]

To be used by the channel scanner and possibly the EIT scanner.

Implemented in Channel, DVBChannel, FirewireChannel, HDHRChannel, and IPTVChannel.

Referenced by SIScan::Tune().

virtual bool DTVChannel::EnterPowerSavingMode ( void   )  [inline, virtual]

Enters power saving mode if the card supports it.

Reimplemented in HDHRChannel.

Definition at line 45 of file dtvchannel.h.

Referenced by TVRec::CreateChannel(), and TVRec::TeardownRecorder().

int DTVChannel::GetProgramNumber ( void   )  const [inline]

Returns program number in PAT, -1 if unknown.

Definition at line 50 of file dtvchannel.h.

Referenced by TVRec::SetupDTVSignalMonitor().

uint DTVChannel::GetMajorChannel ( void   )  const [inline]

Returns major channel, 0 if unknown.

Definition at line 54 of file dtvchannel.h.

Referenced by TVRec::SetupDTVSignalMonitor().

uint DTVChannel::GetMinorChannel ( void   )  const [inline]

Returns minor channel, 0 if unknown.

Definition at line 58 of file dtvchannel.h.

Referenced by TVRec::SetupDTVSignalMonitor().

uint DTVChannel::GetOriginalNetworkID ( void   )  const [inline]

Returns DVB original_network_id, 0 if unknown.

Definition at line 62 of file dtvchannel.h.

Referenced by TVRec::SetupDTVSignalMonitor().

uint DTVChannel::GetTransportID ( void   )  const [inline]

Returns DVB transport_stream_id, 0 if unknown.

Definition at line 66 of file dtvchannel.h.

Referenced by TVRec::SetupDTVSignalMonitor().

QString DTVChannel::GetSIStandard ( void   )  const

Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable.

Reimplemented in Channel, and HDHRChannel.

Definition at line 121 of file dtvchannel.cpp.

Referenced by DVBRecorder::HandlePMT(), DVBRecorder::StartRecording(), and TVRec::TuningFrequency().

QString DTVChannel::GetSuggestedTuningMode ( bool  is_live_tv  )  const

Returns suggested tuning mode: "mpeg", "dvb", or "atsc".

Definition at line 133 of file dtvchannel.cpp.

Referenced by TVRec::TuningFrequency().

QString DTVChannel::GetTuningMode ( void   )  const

Returns tuning mode last set by SetTuningMode().

Definition at line 151 of file dtvchannel.cpp.

Referenced by HDHRChannel::SetChannelByString(), and TVRec::SetupDTVSignalMonitor().

virtual void DTVChannel::GetCachedPids ( pid_cache_t pid_cache  )  const [inline, virtual]

Returns cached MPEG PIDs for last tuned channel.

Parameters:
pid_cache List of PIDs with their TableID types is returned in pid_cache.

Reimplemented in Channel, and DVBChannel.

Definition at line 82 of file dtvchannel.h.

Referenced by ApplyCachedPids(), DVBChannel::GetCachedPids(), and Channel::GetCachedPids().

DTVChannel * DTVChannel::GetMaster ( const QString &  videodevice  ) 

Definition at line 163 of file dtvchannel.cpp.

Referenced by DVBChannel::DVBChannel().

const DTVChannel * DTVChannel::GetMaster ( const QString &  videodevice  )  const

Definition at line 176 of file dtvchannel.cpp.

void DTVChannel::SetTuningMode ( const QString &  tuningmode  ) 

Sets tuning mode: "mpeg", "dvb", "atsc", etc.

Definition at line 157 of file dtvchannel.cpp.

Referenced by TVRec::TuningFrequency().

virtual void DTVChannel::SaveCachedPids ( const pid_cache_t pid_cache  )  const [inline, virtual]

Saves MPEG PIDs to cache to database.

Parameters:
pid_cache List of PIDs with their TableID types to be saved.

Reimplemented in Channel, and DVBChannel.

Definition at line 96 of file dtvchannel.h.

Referenced by DVBChannel::SaveCachedPids(), Channel::SaveCachedPids(), and TVRec::TeardownSignalMonitor().

void DTVChannel::SetSIStandard ( const QString &  si_std  )  [protected]

Sets PSIP table standard: MPEG, DVB, ATSC, or OpenCable.

Definition at line 127 of file dtvchannel.cpp.

Referenced by FirewireChannel::SetChannelByNumber(), FirewireChannel::SetChannelByString(), HDHRChannel::Tune(), DVBChannel::Tune(), and Channel::Tune().

void DTVChannel::SetDTVInfo ( uint  atsc_major,
uint  atsc_minor,
uint  dvb_orig_netid,
uint  mpeg_tsid,
int  mpeg_pnum 
) [protected]

void DTVChannel::ClearDTVInfo ( void   )  [inline, protected]

void DTVChannel::GetCachedPids ( int  chanid,
pid_cache_t pid_cache 
) [static, protected]

Returns cached MPEG PIDs when given a Channel ID.

Parameters:
chanid Channel ID to fetch cached pids for.
pid_cache List of PIDs with their TableID types is returned in pid_cache.

Definition at line 50 of file dtvchannel.cpp.

void DTVChannel::SaveCachedPids ( int  chanid,
const pid_cache_t pid_cache 
) [static, protected]

Saves PIDs for PSIP tables to database.

Parameters:
chanid Channel ID to fetch cached pids for.
pid_cache List of PIDs with their TableID types to be saved.

Definition at line 77 of file dtvchannel.cpp.


Member Data Documentation

QMutex DTVChannel::dtvinfo_lock [mutable, protected]

QString DTVChannel::sistandard [protected]

PSIP table standard: MPEG, DVB, ATSC, OpenCable.

Definition at line 113 of file dtvchannel.h.

Referenced by GetSIStandard(), GetSuggestedTuningMode(), DVBChannel::ProbeTuningParams(), and SetSIStandard().

QString DTVChannel::tuningMode [protected]

Definition at line 114 of file dtvchannel.h.

Referenced by GetTuningMode(), and SetTuningMode().

Definition at line 115 of file dtvchannel.h.

Referenced by GetProgramNumber(), and SetDTVInfo().

Definition at line 116 of file dtvchannel.h.

Referenced by GetMajorChannel(), and SetDTVInfo().

Definition at line 117 of file dtvchannel.h.

Referenced by GetMinorChannel(), and SetDTVInfo().

Definition at line 118 of file dtvchannel.h.

Referenced by GetTransportID(), and SetDTVInfo().

Definition at line 119 of file dtvchannel.h.

Referenced by GetOriginalNetworkID(), and SetDTVInfo().

QMutex DTVChannel::master_map_lock [static, protected]

Definition at line 121 of file dtvchannel.h.

Referenced by GetMaster(), and ~DTVChannel().

QMap< QString, DTVChannel * > DTVChannel::master_map [static, protected]

Definition at line 122 of file dtvchannel.h.

Referenced by GetMaster(), and ~DTVChannel().


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

Generated on Sat Dec 18 05:16:01 2010 for MythTV by  doxygen 1.5.5