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
DTVMultiplex
Definition: dtvmultiplex.h:24
dtvchannel.h
FirewireRecorder
This is a specialization of DTVRecorder used to handle DVB and ATSC streams from a firewire input.
Definition: firewirerecorder.h:24
FirewireChannel::m_device
FirewireDevice * m_device
Definition: firewirechannel.h:56
FirewireChannel::Open
bool Open(void) override
Opens the channel changing hardware for use.
Definition: firewirechannel.cpp:47
FirewireSignalMonitor
Definition: firewiresignalmonitor.h:34
FirewireChannel::operator=
FirewireChannel & operator=(const FirewireChannel &)=delete
FirewireChannel::m_fw_opts
FireWireDBOptions m_fw_opts
Definition: firewirechannel.h:55
firewiredevice.h
DTVChannel::Tune
virtual bool Tune(const DTVMultiplex &tuning)=0
This performs the actual frequency tuning and in some cases input switching.
FirewireChannel::m_isopen
bool m_isopen
Definition: firewirechannel.h:58
FirewireDevice::PowerState
PowerState
Definition: firewiredevice.h:29
FirewireChannel::FirewireChannel
FirewireChannel(TVRec *parent, QString videodevice, FireWireDBOptions firewire_opts)
Definition: firewirechannel.cpp:21
FirewireChannel::Close
void Close(void) override
Closes the channel changing hardware to use.
Definition: firewirechannel.cpp:80
FirewireChannel::m_current_channel
uint m_current_channel
Definition: firewirechannel.h:57
FirewireChannel
FirewireChannel Copyright (c) 2005 by Jim Westfall and Dave Abrahams Distributed as part of MythTV un...
Definition: firewirechannel.h:14
FirewireChannel::Retune
bool Retune(void) override
Definition: firewirechannel.cpp:121
FirewireChannel::~FirewireChannel
~FirewireChannel() override
Definition: firewirechannel.cpp:41
FirewireChannel::Tune
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
Definition: firewirechannel.h:32
uint
unsigned int uint
Definition: compat.h:140
FirewireChannel::GetPowerState
virtual FirewireDevice::PowerState GetPowerState(void) const
Definition: firewirechannel.cpp:108
FirewireChannel::IsExternalChannelChangeSupported
bool IsExternalChannelChangeSupported(void) override
Definition: firewirechannel.h:46
FirewireChannel::SetPowerState
virtual bool SetPowerState(bool on)
Definition: firewirechannel.cpp:95
FirewireChannel::GetDevice
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
Definition: firewirechannel.cpp:90
TVRec
This is the coordinating class of the Recorder Subsystem.
Definition: tv_rec.h:142
FireWireDBOptions
Definition: tv_rec.h:91
FirewireChannel::GetFirewireDevice
virtual FirewireDevice * GetFirewireDevice(void)
Definition: firewirechannel.h:51
tv_rec.h
DTVChannel
Class providing a generic interface to digital tuning hardware.
Definition: dtvchannel.h:34
FirewireChannel::IsOpen
bool IsOpen(void) const override
Reports whether channel is already open.
Definition: firewirechannel.h:41
FirewireDevice
Definition: firewiredevice.h:24
FirewireChannel::m_videodevice
QString m_videodevice
Definition: firewirechannel.h:54