MythTV master
firewirechannel.h
Go to the documentation of this file.
1
7#ifndef FIREWIRECHANNEL_H
8#define FIREWIRECHANNEL_H
9
10#include "tv_rec.h"
11#include "dtvchannel.h"
12#include "firewiredevice.h"
13
15{
17 friend class FirewireRecorder;
18
19 public:
20 FirewireChannel(TVRec *parent, QString videodevice,
21 FireWireDBOptions firewire_opts);
22 ~FirewireChannel() override;
23
24 FirewireChannel(const FirewireChannel &) = delete; // not copyable
25 FirewireChannel &operator=(const FirewireChannel &) = delete; // not copyable
26
27 // Commands
28 bool Open(void) override; // ChannelBase
29 void Close(void) override; // ChannelBase
30
31 using DTVChannel::Tune;
32 bool Tune(const DTVMultiplex &/*tuning*/) override // DTVChannel
33 { return false; }
34 bool Tune(const QString &freqid, int finetune) override; // DTVChannel
35 bool Retune(void) override; // ChannelBase
36
37 // Sets
38 virtual bool SetPowerState(bool on);
39
40 // Gets
41 bool IsOpen(void) const override // ChannelBase
42 { return m_isopen; }
43 QString GetDevice(void) const override; // ChannelBase
44
45 protected:
46 bool IsExternalChannelChangeSupported(void) override // ChannelBase
47 { return true; }
48
49 private:
50 virtual FirewireDevice::PowerState GetPowerState(void) const;
51 virtual FirewireDevice *GetFirewireDevice(void) { return m_device; }
52
53 protected:
58 bool m_isopen {false};
59};
60
61#endif // FIREWIRECHANNEL_H
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
FirewireChannel Copyright (c) 2005 by Jim Westfall and Dave Abrahams Distributed as part of MythTV un...
FirewireDevice * m_device
virtual FirewireDevice * GetFirewireDevice(void)
FirewireChannel(const FirewireChannel &)=delete
FirewireChannel(TVRec *parent, QString videodevice, FireWireDBOptions firewire_opts)
FirewireChannel & operator=(const FirewireChannel &)=delete
virtual bool SetPowerState(bool on)
virtual FirewireDevice::PowerState GetPowerState(void) const
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
void Close(void) override
Closes the channel changing hardware to use.
bool Retune(void) override
FireWireDBOptions m_fwOpts
bool Open(void) override
Opens the channel changing hardware for use.
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
bool IsExternalChannelChangeSupported(void) override
~FirewireChannel() override
bool IsOpen(void) const override
Reports whether channel is already open.
This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input.
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:143
unsigned int uint
Definition: freesurround.h:24