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 {
16  friend class FirewireSignalMonitor;
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:
54  QString m_videodevice;
58  bool m_isopen {false};
59 };
60 
61 #endif // _FIREWIRECHANNEL_H_
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
FirewireChannel & operator=(const FirewireChannel &)=delete
FireWireDBOptions m_fw_opts
~FirewireChannel() override
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 Retune(void) override
This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input.
FirewireDevice * m_device
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
virtual FirewireDevice::PowerState GetPowerState(void) const
FirewireChannel Copyright (c) 2005 by Jim Westfall and Dave Abrahams Distributed as part of MythTV un...
void Close(void) override
Closes the channel changing hardware to use.
unsigned int uint
Definition: compat.h:140
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
bool IsOpen(void) const override
Reports whether channel is already open.
virtual FirewireDevice * GetFirewireDevice(void)
FirewireChannel(TVRec *parent, QString videodevice, FireWireDBOptions firewire_opts)
bool IsExternalChannelChangeSupported(void) override
virtual bool SetPowerState(bool on)