MythTV  master
analogsignalmonitor.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 // Copyright (c) 2005, Daniel Thor Kristjansson
3 
4 #ifndef _ANALOG_SIGNAL_MONITOR_H_
5 #define _ANALOG_SIGNAL_MONITOR_H_
6 
7 // MythTV headers
8 #include "signalmonitor.h"
9 
10 class V4LChannel;
11 
13 {
14  public:
15  AnalogSignalMonitor(int db_cardnum, V4LChannel *_channel,
16  bool _release_stream,
17  uint64_t _flags = kSigMon_WaitForSig);
18 
19  void UpdateValues(void) override; // SignalMonitor
20 
21  private:
22  bool VerifyHDPVRaudio(int videofd);
23  bool handleHDPVR(int videofd);
24 
25  bool m_usingv4l2 {false};
26  QString m_card;
27  QString m_driver;
28  uint32_t m_version {0};
30  int m_stable_time {2000};
33  int m_log_idx {40};
34 };
35 
36 #endif // _ANALOG_SIGNAL_MONITOR_H_
void UpdateValues(void) override
This should be overridden to actually do signal monitoring.
A QElapsedTimer based timer to replace use of QTime as a timer.
Definition: mythtimer.h:13
unsigned int uint
Definition: compat.h:140
static const uint64_t kSigMon_WaitForSig
bool handleHDPVR(int videofd)
bool VerifyHDPVRaudio(int videofd)
AnalogSignalMonitor(int db_cardnum, V4LChannel *_channel, bool _release_stream, uint64_t _flags=kSigMon_WaitForSig)
Implements tuning for TV cards using the V4L driver API, both versions 1 and 2.
Definition: v4lchannel.h:32
Signal monitoring base class.
Definition: signalmonitor.h:32