summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'device.h')
-rw-r--r--device.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/device.h b/device.h
index a383dac..d937e5f 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 2.24 2011/03/21 17:58:41 kls Exp $
+ * $Id: device.h 2.26 2011/06/02 13:15:31 kls Exp $
*/
#ifndef __DEVICE_H
@@ -197,6 +197,9 @@ public:
///< Returns the number of this device (0 ... numDevices).
virtual bool HasDecoder(void) const;
///< Tells whether this device has an MPEG decoder.
+ virtual bool AvoidRecording(void) const { return false; }
+ ///< Returns true if this device should only be used for recording
+ ///< if no other device is available.
// Device hooks
@@ -250,6 +253,16 @@ public:
///< actually provide channels must implement this function.
///< The result of this function is used when selecting a device, in order
///< to avoid devices that provide more than one system.
+ virtual int SignalStrength(void) const;
+ ///< Returns the "strength" of the currently received signal.
+ ///< This is a value in the range 0 (no signal at all) through
+ ///< 100 (best possible signal). A value of -1 indicates that this
+ ///< device has no concept of a "signal strength".
+ virtual int SignalQuality(void) const;
+ ///< Returns the "quality" of the currently received signal.
+ ///< This is a value in the range 0 (worst quality) through
+ ///< 100 (best possible quality). A value of -1 indicates that this
+ ///< device has no concept of a "signal quality".
virtual const cChannel *GetCurrentlyTunedTransponder(void) const;
///< Returns a pointer to the currently tuned transponder.
///< This is not one of the channels in the global cChannels list, but rather