#include <dtvchannel.h>

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. | |
| DTVChannel * | GetMaster (const QString &videodevice) |
| const DTVChannel * | GetMaster (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 |
| DTVChannel::DTVChannel | ( | TVRec * | parent | ) |
Definition at line 20 of file dtvchannel.cpp.
| DTVChannel::~DTVChannel | ( | ) | [virtual] |
Definition at line 29 of file dtvchannel.cpp.
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.
| 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 | ) |
| 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.
| 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] |
Definition at line 109 of file dtvchannel.cpp.
Referenced by ClearDTVInfo(), FirewireChannel::SetChannelByNumber(), IPTVChannel::SetChannelByString(), HDHRChannel::SetChannelByString(), FirewireChannel::SetChannelByString(), DVBChannel::SetChannelByString(), and Channel::SetChannelByString().
| void DTVChannel::ClearDTVInfo | ( | void | ) | [inline, protected] |
Definition at line 105 of file dtvchannel.h.
Referenced by HDHRChannel::SetChannelByString(), DVBChannel::SetChannelByString(), and Channel::SetChannelByString().
| void DTVChannel::GetCachedPids | ( | int | chanid, | |
| pid_cache_t & | pid_cache | |||
| ) | [static, protected] |
Returns cached MPEG PIDs when given a Channel ID.
| 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.
| 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.
QMutex DTVChannel::dtvinfo_lock [mutable, protected] |
Definition at line 111 of file dtvchannel.h.
Referenced by GetSIStandard(), GetSuggestedTuningMode(), GetTuningMode(), SetDTVInfo(), SetSIStandard(), and SetTuningMode().
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] |
int DTVChannel::currentProgramNum [protected] |
uint DTVChannel::currentATSCMajorChannel [protected] |
uint DTVChannel::currentATSCMinorChannel [protected] |
uint DTVChannel::currentTransportID [protected] |
uint DTVChannel::currentOriginalNetworkID [protected] |
Definition at line 119 of file dtvchannel.h.
Referenced by GetOriginalNetworkID(), and SetDTVInfo().
QMutex DTVChannel::master_map_lock [static, protected] |
QMap< QString, DTVChannel * > DTVChannel::master_map [static, protected] |
1.5.5