CetonChannel Class Reference

#include <cetonchannel.h>

Inheritance diagram for CetonChannel:
DTVChannel ChannelBase

List of all members.

Public Member Functions

 CetonChannel (TVRec *parent, const QString &device)
 ~CetonChannel (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 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
CetonStreamHandler_stream_handler
vector< DTVTunerType_tuner_types

Friends

class CetonSignalMonitor
class CetonRecorder

Detailed Description

Definition at line 20 of file cetonchannel.h.


Constructor & Destructor Documentation

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

Definition at line 18 of file cetonchannel.cpp.

CetonChannel::~CetonChannel ( void   ) 

Definition at line 23 of file cetonchannel.cpp.


Member Function Documentation

bool CetonChannel::Open ( void   )  [virtual]

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 28 of file cetonchannel.cpp.

void CetonChannel::Close ( void   )  [virtual]

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 49 of file cetonchannel.cpp.

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

bool CetonChannel::EnterPowerSavingMode ( void   )  [virtual]

Enters power saving mode if the card supports it.

Reimplemented from DTVChannel.

Definition at line 59 of file cetonchannel.cpp.

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

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 67 of file cetonchannel.cpp.

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

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

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 35 of file cetonchannel.h.

Referenced by CetonSignalMonitor::CetonSignalMonitor(), and CetonRecorder::Open().

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

Returns a vector of supported tuning types.

Reimplemented from DTVChannel.

Definition at line 36 of file cetonchannel.h.

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

Reimplemented from DTVChannel.

Definition at line 107 of file cetonchannel.cpp.

bool CetonChannel::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 91 of file cetonchannel.cpp.

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

This is used when the tuner type is kTunerTypeOCUR.

Reimplemented from DTVChannel.

Definition at line 73 of file cetonchannel.cpp.


Friends And Related Function Documentation

friend class CetonSignalMonitor [friend]

Definition at line 22 of file cetonchannel.h.

friend class CetonRecorder [friend]

Definition at line 23 of file cetonchannel.h.


Member Data Documentation

QString CetonChannel::_device_id [private]

Definition at line 49 of file cetonchannel.h.

Referenced by GetDevice(), and Open().

Definition at line 50 of file cetonchannel.h.

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

Definition at line 51 of file cetonchannel.h.

Referenced by GetTunerTypes(), and Open().


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:41:54 2012 for MythTV by  doxygen 1.6.3