Go to the documentation of this file.
3 #ifndef HDHRSTREAMHANDLER_H
4 #define HDHRSTREAMHANDLER_H
11 #include <QRecursiveMutex>
26 #ifdef USING_HDHOMERUN
27 #include HDHOMERUN_HEADERFILE
29 struct hdhomerun_device_t {
int dummy; };
30 struct hdhomerun_device_selector_t {
int dummy; };
57 const QString& output_file = QString()) override
76 QString
TunerGet(
const QString &name);
77 QString
TunerSet(
const QString &name,
const QString &value);
82 void run(
void)
override;
102 #endif // HDHRSTREAMHANDLER_H
void run(void) override
Reads HDHomeRun socket for tables & data.
QString TunerSet(const QString &name, const QString &value)
QString TunerGet(const QString &name)
void AddListener(MPEGStreamData *data, bool=false, bool=false, const QString &output_file=QString()) override
std::vector< DTVTunerType > m_tunerTypes
static QMap< int, uint > s_handlersRefCnt
hdhomerun_device_selector_t * m_deviceSelector
@ hdhrTuneModeFrequencyProgram
Buffers reads from device files.
bool TuneVChannel(const QString &vchn)
std::vector< DTVTunerType > GetTunerTypes(void) const
static void Return(HDHRStreamHandler *&ref, int inputid)
Encapsulates data about MPEG stream and emits events for each table.
hdhomerun_device_t * m_hdhomerunDevice
bool IsConnected(void) const
HDHRStreamHandler(const QString &device, int inputid, int majorid)
bool TuneChannel(const QString &chanid)
QRecursiveMutex m_hdhrLock
void GetTunerStatus(struct hdhomerun_tuner_status_t *status)
bool UpdateFilters(void) override
This class is intended to detect the presence of needed tables.
virtual void AddListener(MPEGStreamData *data, bool allow_section_reader=false, bool needs_buffering=false, const QString &output_file=QString())
bool TuneProgram(uint mpeg_prog_num)
static HDHRStreamHandler * Get(const QString &devname, int inputid, int majorid)
static QMutex s_handlersLock
@ hdhrTuneModeFrequencyPid
static QMap< int, HDHRStreamHandler * > s_handlers