HDHRChannel Class Reference

#include <hdhrchannel.h>

Inheritance diagram for HDHRChannel:

DTVChannel ChannelBase

List of all members.


Detailed Description

Definition at line 25 of file hdhrchannel.h.


Public Member Functions

 HDHRChannel (TVRec *parent, const QString &device, uint tuner)
 ~HDHRChannel (void)
bool Open (void)
 Opens the channel changing hardware for use.
void Close (void)
 Closes the channel changing hardware to use.
bool EnterPowerSavingMode (void)
 Enters power saving mode if the card supports it.
bool SetChannelByString (const QString &chan)
bool IsOpen (void) const
 Reports whether channel is already open.
QString GetDevice (void) const
 Returns String representing device, useful for debugging.
vector< uintGetPIDs (void) const
QString GetSIStandard (void) const
 Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable.
bool AddPID (uint pid, bool do_update=true)
bool DelPID (uint pid, bool do_update=true)
bool DelAllPIDs (void)
bool UpdateFilters (void)
bool TuneMultiplex (uint mplexid, QString inputname)
 To be used by the channel scanner and possibly the EIT scanner.
bool Tune (const DTVMultiplex &tuning, QString inputname)
 To be used by the channel scanner and possibly the EIT scanner.

Private Member Functions

bool Connect (void)
bool Tune (uint frequency, QString inputname, QString modulation, QString si_std)
struct hdhomerun_device_tGetHDHRDevice (void)
bool DeviceSetTarget (unsigned short localPort)
bool DeviceClearTarget (void)
QString DeviceGet (const QString &name, bool report_error_return=true)
QString DeviceSet (const QString &name, const QString &value, bool report_error_return=true)
QString TunerGet (const QString &name, bool report_error_return=true)
QString TunerSet (const QString &name, const QString &value, bool report_error_return=true)

Private Attributes

struct hdhomerun_device_t_hdhomerun_device
uint _device_id
uint _device_ip
uint _tuner
bool _ignore_filters
vector< uint_pids
QMutex _lock

Friends

class HDHRSignalMonitor
class HDHRRecorder

Constructor & Destructor Documentation

HDHRChannel::HDHRChannel ( TVRec parent,
const QString &  device,
uint  tuner 
)

Definition at line 33 of file hdhrchannel.cpp.

HDHRChannel::~HDHRChannel ( void   ) 

Definition at line 60 of file hdhrchannel.cpp.


Member Function Documentation

bool HDHRChannel::Open ( void   )  [virtual]

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 65 of file hdhrchannel.cpp.

Referenced by SetChannelByString().

void HDHRChannel::Close ( void   )  [virtual]

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 76 of file hdhrchannel.cpp.

Referenced by ~HDHRChannel().

bool HDHRChannel::EnterPowerSavingMode ( void   )  [virtual]

Enters power saving mode if the card supports it.

Reimplemented from DTVChannel.

Definition at line 85 of file hdhrchannel.cpp.

bool HDHRChannel::SetChannelByString ( const QString &  chan  )  [virtual]

Implements ChannelBase.

Definition at line 216 of file hdhrchannel.cpp.

bool HDHRChannel::IsOpen ( void   )  const [inline, virtual]

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 42 of file hdhrchannel.h.

Referenced by Open().

QString HDHRChannel::GetDevice ( void   )  const [inline, virtual]

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 43 of file hdhrchannel.h.

vector<uint> HDHRChannel::GetPIDs ( void   )  const [inline]

Definition at line 45 of file hdhrchannel.h.

Referenced by HDHRRecorder::AdjustFilters().

QString HDHRChannel::GetSIStandard ( void   )  const [inline]

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

Reimplemented from DTVChannel.

Definition at line 47 of file hdhrchannel.h.

bool HDHRChannel::AddPID ( uint  pid,
bool  do_update = true 
)

bool HDHRChannel::DelPID ( uint  pid,
bool  do_update = true 
)

bool HDHRChannel::DelAllPIDs ( void   ) 

Definition at line 449 of file hdhrchannel.cpp.

Referenced by HDHRSignalMonitor::HDHRSignalMonitor().

bool HDHRChannel::UpdateFilters ( void   ) 

Definition at line 473 of file hdhrchannel.cpp.

Referenced by AddPID(), HDHRRecorder::AdjustFilters(), DelAllPIDs(), and DelPID().

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

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

Implements DTVChannel.

Definition at line 327 of file hdhrchannel.cpp.

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

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

Implements DTVChannel.

Definition at line 354 of file hdhrchannel.cpp.

Referenced by SetChannelByString(), and TuneMultiplex().

bool HDHRChannel::Connect ( void   )  [private]

Definition at line 90 of file hdhrchannel.cpp.

Referenced by Open().

bool HDHRChannel::Tune ( uint  frequency,
QString  inputname,
QString  modulation,
QString  si_std 
) [private]

Definition at line 360 of file hdhrchannel.cpp.

struct hdhomerun_device_t * HDHRChannel::GetHDHRDevice ( void   )  [read, private]

bool HDHRChannel::DeviceSetTarget ( unsigned short  localPort  )  [private]

Definition at line 184 of file hdhrchannel.cpp.

Referenced by HDHRRecorder::StartData().

bool HDHRChannel::DeviceClearTarget ( void   )  [private]

Definition at line 211 of file hdhrchannel.cpp.

Referenced by HDHRRecorder::StartRecording().

QString HDHRChannel::DeviceGet ( const QString &  name,
bool  report_error_return = true 
) [private]

Definition at line 105 of file hdhrchannel.cpp.

Referenced by TunerGet().

QString HDHRChannel::DeviceSet ( const QString &  name,
const QString &  value,
bool  report_error_return = true 
) [private]

Definition at line 134 of file hdhrchannel.cpp.

Referenced by TunerSet().

QString HDHRChannel::TunerGet ( const QString &  name,
bool  report_error_return = true 
) [private]

Definition at line 171 of file hdhrchannel.cpp.

QString HDHRChannel::TunerSet ( const QString &  name,
const QString &  value,
bool  report_error_return = true 
) [private]

Definition at line 177 of file hdhrchannel.cpp.

Referenced by UpdateFilters().


Friends And Related Function Documentation

friend class HDHRSignalMonitor [friend]

Definition at line 27 of file hdhrchannel.h.

friend class HDHRRecorder [friend]

Definition at line 28 of file hdhrchannel.h.


Member Data Documentation

Definition at line 80 of file hdhrchannel.h.

Referenced by Connect(), GetDevice(), and HDHRChannel().

Definition at line 81 of file hdhrchannel.h.

Referenced by Connect(), and HDHRChannel().

Definition at line 82 of file hdhrchannel.h.

Referenced by Connect(), GetDevice(), TunerGet(), and TunerSet().

Definition at line 83 of file hdhrchannel.h.

Referenced by SetChannelByString(), and UpdateFilters().

vector<uint> HDHRChannel::_pids [private]

Definition at line 84 of file hdhrchannel.h.

Referenced by AddPID(), DelAllPIDs(), DelPID(), GetPIDs(), and UpdateFilters().

QMutex HDHRChannel::_lock [mutable, private]

Definition at line 85 of file hdhrchannel.h.

Referenced by AddPID(), DelAllPIDs(), DelPID(), DeviceGet(), DeviceSet(), GetPIDs(), and UpdateFilters().


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

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