MythTV
master
mythtv
libs
libmythtv
signalmonitorlistener.h
Go to the documentation of this file.
1
// -*- Mode: c++ -*-
2
// Copyright (c) 2008, Daniel Thor Kristjansson
3
4
#ifndef SIGNALMONITORLISTENER_H
5
#define SIGNALMONITORLISTENER_H
6
7
#include "
mythtvexp.h
"
8
#include "
signalmonitorvalue.h
"
9
10
enum
SignalMonitorMessageType
: std::uint8_t {
11
kAllGood
,
12
kStatusChannelTuned
,
13
kStatusSignalLock
,
14
kStatusSignalStrength
,
15
kStatusSignalToNoise
,
16
kStatusBitErrorRate
,
17
kStatusUncorrectedBlocks
,
18
kStatusRotorPosition
,
19
};
20
21
class
MTV_PUBLIC
SignalMonitorListener
22
{
23
protected
:
24
virtual
~
SignalMonitorListener
() =
default
;
25
26
public
:
32
virtual
void
AllGood(
void
) = 0;
33
39
virtual
void
StatusChannelTuned(
const
SignalMonitorValue
&) = 0;
40
48
virtual
void
StatusSignalLock(
const
SignalMonitorValue
&) = 0;
54
virtual
void
StatusSignalStrength(
const
SignalMonitorValue
&) = 0;
55
};
56
57
class
MTV_PUBLIC
DVBSignalMonitorListener
:
public
SignalMonitorListener
58
{
59
protected
:
60
~
DVBSignalMonitorListener
()
override
=
default
;
61
62
public
:
63
virtual
void
StatusSignalToNoise(
const
SignalMonitorValue
&) = 0;
64
virtual
void
StatusBitErrorRate(
const
SignalMonitorValue
&) = 0;
65
virtual
void
StatusUncorrectedBlocks(
const
SignalMonitorValue
&) = 0;
66
virtual
void
StatusRotorPosition(
const
SignalMonitorValue
&) = 0;
67
};
68
69
70
#endif // SIGNALMONITORLISTENER_H
kStatusChannelTuned
@ kStatusChannelTuned
Definition:
signalmonitorlistener.h:12
mythtvexp.h
SignalMonitorMessageType
SignalMonitorMessageType
Definition:
signalmonitorlistener.h:10
signalmonitorvalue.h
SignalMonitorListener
Definition:
signalmonitorlistener.h:21
kStatusSignalStrength
@ kStatusSignalStrength
Definition:
signalmonitorlistener.h:14
SignalMonitorValue
Definition:
signalmonitorvalue.h:13
kStatusUncorrectedBlocks
@ kStatusUncorrectedBlocks
Definition:
signalmonitorlistener.h:17
kStatusBitErrorRate
@ kStatusBitErrorRate
Definition:
signalmonitorlistener.h:16
kStatusSignalToNoise
@ kStatusSignalToNoise
Definition:
signalmonitorlistener.h:15
MTV_PUBLIC
#define MTV_PUBLIC
Definition:
mythtvexp.h:15
kAllGood
@ kAllGood
Definition:
signalmonitorlistener.h:11
DVBSignalMonitorListener
Definition:
signalmonitorlistener.h:57
kStatusRotorPosition
@ kStatusRotorPosition
Definition:
signalmonitorlistener.h:18
kStatusSignalLock
@ kStatusSignalLock
Definition:
signalmonitorlistener.h:13
Generated on Mon Nov 25 2024 03:16:12 for MythTV by
1.8.17