DTVSignalMonitor Class Reference

This class is intended to detect the presence of needed tables. More...

#include <dtvsignalmonitor.h>

Inheritance diagram for DTVSignalMonitor:
SignalMonitor MPEGStreamListener ATSCMainStreamListener ATSCAuxStreamListener DVBMainStreamListener MThread ASISignalMonitor CetonSignalMonitor DVBSignalMonitor FirewireSignalMonitor HDHRSignalMonitor IPTVSignalMonitor

List of all members.

Public Member Functions

 DTVSignalMonitor (int db_cardnum, DTVChannel *_channel, uint64_t wait_for_mask)
virtual ~DTVSignalMonitor ()
virtual QStringList GetStatusList (void) const
 Returns QStringList containing all signals and their current values.
void SetChannel (int major, int minor)
int GetMajorChannel () const
int GetMinorChannel () const
void SetProgramNumber (int progNum)
int GetProgramNumber () const
void SetDVBService (uint network_id, uint transport_id, int service_id)
uint GetTransportID (void) const
uint GetNetworkID (void) const
int GetServiceID (void) const
uint GetDetectedNetworkID (void) const
uint GetDetectedTransportID (void) const
virtual void SetRotorTarget (float)
 Sets rotor target pos from 0.0 to 1.0.
virtual void GetRotorStatus (bool &was_moving, bool &is_moving)
virtual void SetRotorValue (int)
virtual void AddFlags (uint64_t _flags)
virtual void RemoveFlags (uint64_t _flags)
void SetStreamData (MPEGStreamData *data)
 Sets the MPEG stream data for DTVSignalMonitor to use, and connects the table signals to the monitor.
MPEGStreamDataGetStreamData ()
 Returns the MPEG stream data if it exists.
ATSCStreamDataGetATSCStreamData ()
 Returns the ATSC stream data if it exists.
DVBStreamDataGetDVBStreamData ()
 Returns the DVB stream data if it exists.
ScanStreamDataGetScanStreamData ()
 Returns the scan stream data if it exists.
const MPEGStreamDataGetStreamData () const
 Returns the MPEG stream data if it exists.
const ATSCStreamDataGetATSCStreamData () const
 Returns the ATSC stream data if it exists.
const DVBStreamDataGetDVBStreamData () const
 Returns the DVB stream data if it exists.
const ScanStreamDataGetScanStreamData () const
 Returns the scan stream data if it exists.
bool IsAllGood (void) const
void HandlePAT (const ProgramAssociationTable *)
void HandleCAT (const ConditionalAccessTable *)
void HandlePMT (uint, const ProgramMapTable *)
void HandleEncryptionStatus (uint, bool enc_status)
void HandleSTT (const SystemTimeTable *)
void HandleVCT (uint, const VirtualChannelTable *)
void HandleMGT (const MasterGuideTable *)
void HandleTVCT (uint, const TerrestrialVirtualChannelTable *)
void HandleCVCT (uint, const CableVirtualChannelTable *)
void HandleRRT (const RatingRegionTable *)
void HandleDCCT (const DirectedChannelChangeTable *)
void HandleDCCSCT (const DirectedChannelChangeSelectionCodeTable *)
void HandleTDT (const TimeDateTable *)
void HandleNIT (const NetworkInformationTable *)
void HandleSDT (uint, const ServiceDescriptionTable *)
void IgnoreEncrypted (bool ignore)

Protected Member Functions

DTVChannelGetDTVChannel (void)
void UpdateMonitorValues (void)
void UpdateListeningForEIT (void)

Protected Attributes

MPEGStreamDatastream_data
vector< uinteit_pids
SignalMonitorValue seenPAT
SignalMonitorValue seenPMT
SignalMonitorValue seenMGT
SignalMonitorValue seenVCT
SignalMonitorValue seenNIT
SignalMonitorValue seenSDT
SignalMonitorValue seenCrypt
SignalMonitorValue matchingPAT
SignalMonitorValue matchingPMT
SignalMonitorValue matchingMGT
SignalMonitorValue matchingVCT
SignalMonitorValue matchingNIT
SignalMonitorValue matchingSDT
SignalMonitorValue matchingCrypt
int majorChannel
int minorChannel
uint networkID
uint transportID
uint detectedNetworkID
uint detectedTransportID
int programNumber
QList< uint64_tseen_table_crc
bool ignore_encrypted

Detailed Description

This class is intended to detect the presence of needed tables.

Definition at line 15 of file dtvsignalmonitor.h.


Constructor & Destructor Documentation

DTVSignalMonitor::DTVSignalMonitor ( int  db_cardnum,
DTVChannel _channel,
uint64_t  wait_for_mask 
)

Definition at line 43 of file dtvsignalmonitor.cpp.

DTVSignalMonitor::~DTVSignalMonitor (  )  [virtual]

Definition at line 71 of file dtvsignalmonitor.cpp.


Member Function Documentation

QStringList DTVSignalMonitor::GetStatusList ( void   )  const [virtual]

Returns QStringList containing all signals and their current values.

This serializes the signal monitoring values so that they can be passed from a backend to a frontend.

SignalMonitorValue::Parse(const QStringList&) will convert this to a vector of SignalMonitorValue instances.

Reimplemented from SignalMonitor.

Reimplemented in DVBSignalMonitor.

Definition at line 81 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::SetChannel ( int  major,
int  minor 
)
int DTVSignalMonitor::GetMajorChannel ( void   )  const [inline]

Definition at line 31 of file dtvsignalmonitor.h.

int DTVSignalMonitor::GetMinorChannel ( void   )  const [inline]

Definition at line 32 of file dtvsignalmonitor.h.

void DTVSignalMonitor::SetProgramNumber ( int  progNum  ) 
int DTVSignalMonitor::GetProgramNumber ( void   )  const [inline]

Definition at line 35 of file dtvsignalmonitor.h.

void DTVSignalMonitor::SetDVBService ( uint  network_id,
uint  transport_id,
int  service_id 
)

Definition at line 234 of file dtvsignalmonitor.cpp.

Referenced by TVRec::SetupDTVSignalMonitor().

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

Definition at line 38 of file dtvsignalmonitor.h.

uint DTVSignalMonitor::GetNetworkID ( void   )  const [inline]

Definition at line 39 of file dtvsignalmonitor.h.

int DTVSignalMonitor::GetServiceID ( void   )  const [inline]

Definition at line 40 of file dtvsignalmonitor.h.

uint DTVSignalMonitor::GetDetectedNetworkID ( void   )  const [inline]

Definition at line 42 of file dtvsignalmonitor.h.

uint DTVSignalMonitor::GetDetectedTransportID ( void   )  const [inline]

Definition at line 43 of file dtvsignalmonitor.h.

virtual void DTVSignalMonitor::SetRotorTarget ( float   )  [inline, virtual]

Sets rotor target pos from 0.0 to 1.0.

Reimplemented in DVBSignalMonitor.

Definition at line 46 of file dtvsignalmonitor.h.

Referenced by TVRec::SetupDTVSignalMonitor().

virtual void DTVSignalMonitor::GetRotorStatus ( bool was_moving,
bool is_moving 
) [inline, virtual]

Reimplemented in DVBSignalMonitor.

Definition at line 47 of file dtvsignalmonitor.h.

Referenced by DVBStreamHandler::RetuneMonitor().

virtual void DTVSignalMonitor::SetRotorValue ( int   )  [inline, virtual]

Reimplemented in DVBSignalMonitor.

Definition at line 49 of file dtvsignalmonitor.h.

Referenced by DVBStreamHandler::RetuneMonitor().

void DTVSignalMonitor::AddFlags ( uint64_t  _flags  )  [virtual]
void DTVSignalMonitor::RemoveFlags ( uint64_t  _flags  )  [virtual]
void DTVSignalMonitor::SetStreamData ( MPEGStreamData data  ) 

Sets the MPEG stream data for DTVSignalMonitor to use, and connects the table signals to the monitor.

Definition at line 262 of file dtvsignalmonitor.cpp.

Referenced by ChannelScanSM::ChannelScanSM(), TVRec::SetupDTVSignalMonitor(), and ~DTVSignalMonitor().

MPEGStreamData* DTVSignalMonitor::GetStreamData ( void   )  [inline]
ATSCStreamData * DTVSignalMonitor::GetATSCStreamData (  ) 

Returns the ATSC stream data if it exists.

Definition at line 507 of file dtvsignalmonitor.cpp.

Referenced by ApplyCachedPids(), GetPidsToCache(), HandleCVCT(), HandleMGT(), HandleTVCT(), SetChannel(), and SetStreamData().

DVBStreamData * DTVSignalMonitor::GetDVBStreamData (  ) 

Returns the DVB stream data if it exists.

Definition at line 512 of file dtvsignalmonitor.cpp.

Referenced by HandleNIT(), HandleSDT(), ChannelScanSM::HandleSDT(), SetDVBService(), and SetStreamData().

ScanStreamData * DTVSignalMonitor::GetScanStreamData (  ) 
const MPEGStreamData* DTVSignalMonitor::GetStreamData ( void   )  const [inline]

Returns the MPEG stream data if it exists.

Definition at line 68 of file dtvsignalmonitor.h.

const ATSCStreamData * DTVSignalMonitor::GetATSCStreamData (  )  const

Returns the ATSC stream data if it exists.

Definition at line 522 of file dtvsignalmonitor.cpp.

const DVBStreamData * DTVSignalMonitor::GetDVBStreamData (  )  const

Returns the DVB stream data if it exists.

Definition at line 527 of file dtvsignalmonitor.cpp.

const ScanStreamData * DTVSignalMonitor::GetScanStreamData (  )  const

Returns the scan stream data if it exists.

Definition at line 532 of file dtvsignalmonitor.cpp.

bool DTVSignalMonitor::IsAllGood ( void   )  const [virtual]
void DTVSignalMonitor::HandlePAT ( const ProgramAssociationTable pat  )  [virtual]

Implements MPEGStreamListener.

Reimplemented in FirewireSignalMonitor.

Definition at line 295 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleCAT ( const ConditionalAccessTable  )  [inline, virtual]

Implements MPEGStreamListener.

Definition at line 80 of file dtvsignalmonitor.h.

void DTVSignalMonitor::HandlePMT ( uint  ,
const ProgramMapTable pmt 
) [virtual]

Implements MPEGStreamListener.

Reimplemented in DVBSignalMonitor, and FirewireSignalMonitor.

Definition at line 334 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleEncryptionStatus ( uint  ,
bool  enc_status 
) [virtual]

Implements MPEGStreamListener.

Definition at line 500 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleSTT ( const SystemTimeTable  )  [virtual]

Implements ATSCMainStreamListener.

Reimplemented in DVBSignalMonitor.

Definition at line 388 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleVCT ( uint  ,
const VirtualChannelTable  
) [inline, virtual]

Implements ATSCMainStreamListener.

Definition at line 86 of file dtvsignalmonitor.h.

void DTVSignalMonitor::HandleMGT ( const MasterGuideTable mgt  )  [virtual]

Implements ATSCMainStreamListener.

Definition at line 394 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleTVCT ( uint  ,
const TerrestrialVirtualChannelTable tvct 
) [virtual]

Implements ATSCAuxStreamListener.

Definition at line 412 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleCVCT ( uint  ,
const CableVirtualChannelTable cvct 
) [virtual]

Implements ATSCAuxStreamListener.

Definition at line 441 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleRRT ( const RatingRegionTable  )  [inline, virtual]

Implements ATSCAuxStreamListener.

Definition at line 92 of file dtvsignalmonitor.h.

void DTVSignalMonitor::HandleDCCT ( const DirectedChannelChangeTable  )  [inline, virtual]

Implements ATSCAuxStreamListener.

Definition at line 93 of file dtvsignalmonitor.h.

void DTVSignalMonitor::HandleDCCSCT ( const DirectedChannelChangeSelectionCodeTable  )  [inline, virtual]

Implements ATSCAuxStreamListener.

Definition at line 94 of file dtvsignalmonitor.h.

void DTVSignalMonitor::HandleTDT ( const TimeDateTable  )  [virtual]

Implements DVBMainStreamListener.

Reimplemented in DVBSignalMonitor.

Definition at line 466 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleNIT ( const NetworkInformationTable nit  )  [virtual]

Implements DVBMainStreamListener.

Definition at line 472 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::HandleSDT ( uint  ,
const ServiceDescriptionTable sdt 
) [virtual]

Implements DVBMainStreamListener.

Definition at line 480 of file dtvsignalmonitor.cpp.

void DTVSignalMonitor::IgnoreEncrypted ( bool  ignore  )  [inline]

Definition at line 102 of file dtvsignalmonitor.h.

Referenced by TVRec::SetupDTVSignalMonitor(), and TVRec::TuningFrequency().

DTVChannel * DTVSignalMonitor::GetDTVChannel ( void   )  [protected]

Definition at line 76 of file dtvsignalmonitor.cpp.

Referenced by HandlePMT().

void DTVSignalMonitor::UpdateMonitorValues ( void   )  [protected]

Definition at line 159 of file dtvsignalmonitor.cpp.

Referenced by AddFlags(), and RemoveFlags().

void DTVSignalMonitor::UpdateListeningForEIT ( void   )  [protected]

Definition at line 178 of file dtvsignalmonitor.cpp.


Member Data Documentation

vector<uint> DTVSignalMonitor::eit_pids [protected]

Definition at line 111 of file dtvsignalmonitor.h.

Referenced by UpdateListeningForEIT().

Definition at line 112 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 113 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 114 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 115 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 116 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 117 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 118 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), and UpdateMonitorValues().

Definition at line 119 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 120 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 121 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 122 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 123 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 124 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 125 of file dtvsignalmonitor.h.

Referenced by GetStatusList(), IsAllGood(), and UpdateMonitorValues().

Definition at line 128 of file dtvsignalmonitor.h.

Referenced by GetMajorChannel(), HandleCVCT(), HandleTVCT(), and SetChannel().

Definition at line 129 of file dtvsignalmonitor.h.

Referenced by GetMinorChannel(), HandleCVCT(), HandleTVCT(), and SetChannel().

Definition at line 131 of file dtvsignalmonitor.h.

Referenced by GetNetworkID(), HandleSDT(), and SetDVBService().

Definition at line 132 of file dtvsignalmonitor.h.

Referenced by GetTransportID(), HandleSDT(), and SetDVBService().

Definition at line 134 of file dtvsignalmonitor.h.

Referenced by GetDetectedNetworkID(), and HandleSDT().

Definition at line 135 of file dtvsignalmonitor.h.

Referenced by GetDetectedTransportID(), and HandleSDT().

Definition at line 141 of file dtvsignalmonitor.h.

Referenced by HandlePMT(), and IgnoreEncrypted().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sat Feb 11 06:41:58 2012 for MythTV by  doxygen 1.6.3