HDHRChannel Class Reference

#include <hdhrchannel.h>

Inheritance diagram for HDHRChannel:
DTVChannel ChannelBase

List of all members.

Public Member Functions

 HDHRChannel (TVRec *parent, const QString &device)
 ~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 IsOpen (void) const
 Reports whether channel is already open.
QString GetDevice (void) const
 Returns String representing device, useful for debugging.
virtual vector< DTVTunerTypeGetTunerTypes (void) const
 Returns a vector of supported tuning types.
virtual bool IsMaster (void) const
 Returns true if this is the first of a number of multi-rec devs.
virtual bool SetChannelByString (const QString &channum)
bool Tune (const DTVMultiplex &tuning, QString inputname)
 This performs the actual frequency tuning and in some cases input switching.
bool Tune (const QString &freqid, int)
 This is used when the tuner type is kTunerTypeOCUR.

Private Attributes

QString _device_id
HDHRStreamHandler_stream_handler
vector< DTVTunerType_tuner_types

Friends

class HDHRSignalMonitor
class HDHRRecorder

Detailed Description

Definition at line 20 of file hdhrchannel.h.


Constructor & Destructor Documentation

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

Definition at line 33 of file hdhrchannel.cpp.

HDHRChannel::~HDHRChannel ( void   ) 

Definition at line 41 of file hdhrchannel.cpp.


Member Function Documentation

bool HDHRChannel::Open ( void   )  [virtual]

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 55 of file hdhrchannel.cpp.

void HDHRChannel::Close ( void   )  [virtual]

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 77 of file hdhrchannel.cpp.

Referenced by Open(), and ~HDHRChannel().

bool HDHRChannel::EnterPowerSavingMode ( void   )  [virtual]

Enters power saving mode if the card supports it.

Reimplemented from DTVChannel.

Definition at line 87 of file hdhrchannel.cpp.

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

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 95 of file hdhrchannel.cpp.

Referenced by Close(), EnterPowerSavingMode(), and Open().

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

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 35 of file hdhrchannel.h.

Referenced by HDHRSignalMonitor::HDHRSignalMonitor(), and HDHRRecorder::Open().

virtual vector<DTVTunerType> HDHRChannel::GetTunerTypes ( void   )  const [inline, virtual]

Returns a vector of supported tuning types.

Reimplemented from DTVChannel.

Definition at line 36 of file hdhrchannel.h.

bool HDHRChannel::IsMaster ( void   )  const [virtual]

Returns true if this is the first of a number of multi-rec devs.

Reimplemented from DTVChannel.

Definition at line 47 of file hdhrchannel.cpp.

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

Reimplemented from DTVChannel.

Definition at line 181 of file hdhrchannel.cpp.

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

This performs the actual frequency tuning and in some cases input switching.

In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.

Implements DTVChannel.

Definition at line 165 of file hdhrchannel.cpp.

bool HDHRChannel::Tune ( const QString &  freqid,
int   
) [virtual]

This is used when the tuner type is kTunerTypeOCUR.

Reimplemented from DTVChannel.

Definition at line 101 of file hdhrchannel.cpp.


Friends And Related Function Documentation

friend class HDHRSignalMonitor [friend]

Definition at line 22 of file hdhrchannel.h.

friend class HDHRRecorder [friend]

Definition at line 23 of file hdhrchannel.h.


Member Data Documentation

QString HDHRChannel::_device_id [private]

Definition at line 50 of file hdhrchannel.h.

Referenced by GetDevice(), HDHRChannel(), IsMaster(), Open(), and ~HDHRChannel().

Definition at line 51 of file hdhrchannel.h.

Referenced by Close(), EnterPowerSavingMode(), IsOpen(), Open(), and Tune().

Definition at line 52 of file hdhrchannel.h.

Referenced by GetTunerTypes(), Open(), and SetChannelByString().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:05 2012 for MythTV by  doxygen 1.6.3