#include <hdhrstreamhandler.h>
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< DTVTunerType > | GetTunerTypes (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 HDHRStreamHandler * | Get (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 |
Definition at line 45 of file hdhrstreamhandler.h.
| HDHRStreamHandler::HDHRStreamHandler | ( | const QString & | device | ) | [private] |
Definition at line 95 of file hdhrstreamhandler.cpp.
Referenced by Get().
| HDHRStreamHandler * HDHRStreamHandler::Get | ( | const QString & | devicename | ) | [static] |
Definition at line 26 of file hdhrstreamhandler.cpp.
Referenced by HDHRSignalMonitor::HDHRSignalMonitor(), HDHRRecorder::Open(), and HDHRChannel::Open().
| void HDHRStreamHandler::Return | ( | HDHRStreamHandler *& | ref | ) | [static] |
Definition at line 58 of file hdhrstreamhandler.cpp.
Referenced by HDHRRecorder::Close(), HDHRChannel::Close(), and HDHRSignalMonitor::~HDHRSignalMonitor().
| 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().
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().
Definition at line 89 of file hdhrstreamhandler.h.
Referenced by Close(), Connect(), GetTunerStatus(), IsConnected(), Open(), run(), TunerGet(), and TunerSet().
int HDHRStreamHandler::_tuner [private] |
Definition at line 90 of file hdhrstreamhandler.h.
Referenced by Connect(), TunerGet(), and TunerSet().
vector<DTVTunerType> HDHRStreamHandler::_tuner_types [private] |
Definition at line 91 of file hdhrstreamhandler.h.
Referenced by GetTunerTypes(), and Open().
HDHRTuneMode HDHRStreamHandler::_tune_mode [private] |
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.
QMap< QString, HDHRStreamHandler * > HDHRStreamHandler::_handlers [static, private] |
Definition at line 98 of file hdhrstreamhandler.h.
QMap< QString, uint > HDHRStreamHandler::_handlers_refcnt [static, private] |
Definition at line 99 of file hdhrstreamhandler.h.
1.6.3