HDHRStreamHandler Class Reference

#include <hdhrstreamhandler.h>

Inheritance diagram for HDHRStreamHandler:
StreamHandler MThread DeviceReaderCB

List of all members.

Public Member Functions

virtual void AddListener (MPEGStreamData *data, bool allow_section_reader=false, bool needs_drb=false, QString output_file=QString())
void GetTunerStatus (struct hdhomerun_tuner_status_t *status)
bool IsConnected (void) const
vector< DTVTunerTypeGetTunerTypes (void) const
bool TuneChannel (const QString &chanid)
bool TuneProgram (uint mpeg_prog_num)
bool TuneVChannel (const QString &vchn)
bool EnterPowerSavingMode (void)

Static Public Member Functions

static HDHRStreamHandlerGet (const QString &devicename)
static void Return (HDHRStreamHandler *&ref)

Private Member Functions

 HDHRStreamHandler (const QString &)
bool Connect (void)
QString TunerGet (const QString &name, bool report_error_return=true, bool print_error=true) const
QString TunerSet (const QString &name, const QString &value, bool report_error_return=true, bool print_error=true)
bool Open (void)
void Close (void)
virtual void run (void)
 Reads HDHomeRun socket for tables & data.
virtual bool UpdateFilters (void)

Private Attributes

hdhomerun_device_t_hdhomerun_device
int _tuner
vector< DTVTunerType_tuner_types
HDHRTuneMode _tune_mode
QMutex _hdhr_lock

Static Private Attributes

static QMutex _handlers_lock
static QMap< QString,
HDHRStreamHandler * > 
_handlers
static QMap< QString, uint_handlers_refcnt

Detailed Description

Definition at line 45 of file hdhrstreamhandler.h.


Constructor & Destructor Documentation

HDHRStreamHandler::HDHRStreamHandler ( const QString &  device  )  [private]

Definition at line 95 of file hdhrstreamhandler.cpp.

Referenced by Get().


Member Function Documentation

HDHRStreamHandler * HDHRStreamHandler::Get ( const QString &  devicename  )  [static]
void HDHRStreamHandler::Return ( HDHRStreamHandler *&  ref  )  [static]
virtual void HDHRStreamHandler::AddListener ( MPEGStreamData data,
bool  allow_section_reader = false,
bool  needs_drb = false,
QString  output_file = QString() 
) [inline, virtual]

Reimplemented from StreamHandler.

Definition at line 51 of file hdhrstreamhandler.h.

Referenced by HDHRRecorder::PauseAndWait(), HDHRRecorder::run(), and HDHRSignalMonitor::UpdateValues().

void HDHRStreamHandler::GetTunerStatus ( struct hdhomerun_tuner_status_t status  ) 

Definition at line 417 of file hdhrstreamhandler.cpp.

Referenced by HDHRSignalMonitor::UpdateValues().

bool HDHRStreamHandler::IsConnected ( void   )  const

Definition at line 422 of file hdhrstreamhandler.cpp.

Referenced by HDHRChannel::Open().

vector<DTVTunerType> HDHRStreamHandler::GetTunerTypes ( void   )  const [inline]

Definition at line 61 of file hdhrstreamhandler.h.

Referenced by HDHRChannel::Open().

bool HDHRStreamHandler::TuneChannel ( const QString &  chanid  ) 

Definition at line 427 of file hdhrstreamhandler.cpp.

Referenced by Close(), EnterPowerSavingMode(), and HDHRChannel::Tune().

bool HDHRStreamHandler::TuneProgram ( uint  mpeg_prog_num  ) 

Definition at line 444 of file hdhrstreamhandler.cpp.

bool HDHRStreamHandler::TuneVChannel ( const QString &  vchn  ) 

Definition at line 461 of file hdhrstreamhandler.cpp.

Referenced by HDHRChannel::Tune().

bool HDHRStreamHandler::EnterPowerSavingMode ( void   ) 

Definition at line 324 of file hdhrstreamhandler.cpp.

Referenced by HDHRChannel::EnterPowerSavingMode().

bool HDHRStreamHandler::Connect ( void   )  [private]

Definition at line 301 of file hdhrstreamhandler.cpp.

Referenced by Open().

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

Definition at line 341 of file hdhrstreamhandler.cpp.

Referenced by TuneChannel().

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

Definition at line 377 of file hdhrstreamhandler.cpp.

Referenced by TuneChannel(), TuneProgram(), TuneVChannel(), and UpdateFilters().

bool HDHRStreamHandler::Open ( void   )  [private]

Definition at line 266 of file hdhrstreamhandler.cpp.

Referenced by Get().

void HDHRStreamHandler::Close ( void   )  [private]

Definition at line 291 of file hdhrstreamhandler.cpp.

Referenced by Return().

void HDHRStreamHandler::run ( void   )  [private, virtual]

Reads HDHomeRun socket for tables & data.

Reimplemented from MThread.

Definition at line 108 of file hdhrstreamhandler.cpp.

bool HDHRStreamHandler::UpdateFilters ( void   )  [private, virtual]

Reimplemented from StreamHandler.

Definition at line 203 of file hdhrstreamhandler.cpp.

Referenced by run().


Member Data Documentation

Definition at line 89 of file hdhrstreamhandler.h.

Referenced by Close(), Connect(), GetTunerStatus(), IsConnected(), Open(), run(), TunerGet(), and TunerSet().

Definition at line 90 of file hdhrstreamhandler.h.

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

Definition at line 91 of file hdhrstreamhandler.h.

Referenced by GetTunerTypes(), and Open().

Definition at line 92 of file hdhrstreamhandler.h.

Referenced by run(), TuneChannel(), TuneProgram(), TuneVChannel(), and UpdateFilters().

QMutex HDHRStreamHandler::_hdhr_lock [mutable, private]

Definition at line 94 of file hdhrstreamhandler.h.

Referenced by TunerGet(), and TunerSet().

QMutex HDHRStreamHandler::_handlers_lock [static, private]

Definition at line 97 of file hdhrstreamhandler.h.

Referenced by Get(), and Return().

QMap< QString, HDHRStreamHandler * > HDHRStreamHandler::_handlers [static, private]

Definition at line 98 of file hdhrstreamhandler.h.

Referenced by Get(), and Return().

QMap< QString, uint > HDHRStreamHandler::_handlers_refcnt [static, private]

Definition at line 99 of file hdhrstreamhandler.h.

Referenced by Get(), and Return().


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