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, const QString &videodevice,
21  const FireWireDBOptions &firewire_opts);
22  virtual ~FirewireChannel();
23 
24  // Commands
25  bool Open(void) override; // ChannelBase
26  void Close(void) override; // ChannelBase
27 
28  using DTVChannel::Tune;
29  bool Tune(const DTVMultiplex&) override // DTVChannel
30  { return false; }
31  bool Tune(const QString &freqid, int finetune) override; // DTVChannel
32  bool Retune(void) override; // ChannelBase
33 
34  // Sets
35  virtual bool SetPowerState(bool on);
36 
37  // Gets
38  bool IsOpen(void) const override // ChannelBase
39  { return m_isopen; }
40  QString GetDevice(void) const override; // ChannelBase
41 
42  protected:
43  bool IsExternalChannelChangeSupported(void) override // ChannelBase
44  { return true; }
45 
46  private:
47  FirewireChannel(const FirewireChannel &) = delete; // not copyable
48  FirewireChannel &operator=(const FirewireChannel &) = delete; // not copyable
49  virtual FirewireDevice::PowerState GetPowerState(void) const;
50  virtual FirewireDevice *GetFirewireDevice(void) { return m_device; }
51 
52  protected:
53  QString m_videodevice;
57  bool m_isopen {false};
58 };
59 
60 #endif // _FIREWIRECHANNEL_H_
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
FirewireChannel & operator=(const FirewireChannel &)=delete
FireWireDBOptions m_fw_opts
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.
unsigned int uint
Definition: compat.h:140
virtual ~FirewireChannel()
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:150
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.
FirewireChannel(TVRec *parent, const QString &videodevice, const FireWireDBOptions &firewire_opts)
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)
bool IsExternalChannelChangeSupported(void) override
virtual bool SetPowerState(bool on)