ASIChannel Class Reference

#include <asichannel.h>

Inheritance diagram for ASIChannel:
DTVChannel ChannelBase

List of all members.

Public Member Functions

 ASIChannel (TVRec *parent, const QString &device)
 ~ASIChannel (void)
virtual bool Open (void)
 Opens the channel changing hardware for use.
virtual void Close (void)
 Closes the channel changing hardware to use.
virtual bool Tune (const DTVMultiplex &, QString)
 This performs the actual frequency tuning and in some cases input switching.
virtual bool Tune (const QString &, int)
 This tunes on the frequency Identification parameter for hardware that supports it.
virtual bool Tune (uint64_t, QString)
virtual bool IsOpen (void) const
 Reports whether channel is already open.
virtual 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 IsPIDTuningSupported (void) const

Private Attributes

vector< DTVTunerTypem_tuner_types
QString m_device
bool m_isopen

Detailed Description

Definition at line 18 of file asichannel.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file asichannel.cpp.

ASIChannel::~ASIChannel ( void   ) 

Definition at line 18 of file asichannel.cpp.


Member Function Documentation

bool ASIChannel::Open ( void   )  [virtual]

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 24 of file asichannel.cpp.

void ASIChannel::Close ( void   )  [virtual]

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 45 of file asichannel.cpp.

Referenced by ~ASIChannel().

virtual bool ASIChannel::Tune ( const DTVMultiplex tuning,
QString  inputname 
) [inline, 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 27 of file asichannel.h.

virtual bool ASIChannel::Tune ( const QString &  freqid,
int  finetune 
) [inline, virtual]

This tunes on the frequency Identification parameter for hardware that supports it.

This is only called when there is no frequency set. This is used to implement "Channel Numbers" in analog tuning scenarios and to implement "Virtual Channels" in the OCUR and Firewire tuners.

Reimplemented from DTVChannel.

Definition at line 28 of file asichannel.h.

virtual bool ASIChannel::Tune ( uint64_t  ,
QString   
) [inline, virtual]

Reimplemented from DTVChannel.

Definition at line 29 of file asichannel.h.

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

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 32 of file asichannel.h.

Referenced by ~ASIChannel().

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

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 33 of file asichannel.h.

Referenced by ASISignalMonitor::ASISignalMonitor(), and ASIRecorder::Open().

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

Returns a vector of supported tuning types.

Reimplemented from DTVChannel.

Definition at line 34 of file asichannel.h.

virtual bool ASIChannel::IsPIDTuningSupported ( void   )  const [inline, virtual]

Reimplemented from DTVChannel.

Definition at line 36 of file asichannel.h.


Member Data Documentation

Definition at line 39 of file asichannel.h.

Referenced by ASIChannel(), and GetTunerTypes().

QString ASIChannel::m_device [private]

Definition at line 40 of file asichannel.h.

Referenced by GetDevice(), and Open().

Definition at line 41 of file asichannel.h.

Referenced by Close(), IsOpen(), 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:51 2012 for MythTV by  doxygen 1.6.3