summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-04-04 09:52:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-04-04 09:52:15 +0200
commitd5aa5f7294c27ccd4fa516afbc16793965e73e73 (patch)
tree93f2dfe688350c9b44a8dfef857d9ddc664e8af1 /device.h
parent0ac4d23cab27ba035ce692bef12961ed35a52766 (diff)
downloadvdr-d5aa5f7294c27ccd4fa516afbc16793965e73e73.tar.gz
vdr-d5aa5f7294c27ccd4fa516afbc16793965e73e73.tar.bz2
The new function cDevice::DeviceType() returns a string identifying the type of the given device
Diffstat (limited to 'device.h')
-rw-r--r--device.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/device.h b/device.h
index 987dfd2f..f279fda3 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.38 2012/03/13 10:17:16 kls Exp $
+ * $Id: device.h 2.39 2012/04/04 09:48:21 kls Exp $
*/
#ifndef __DEVICE_H
@@ -201,6 +201,12 @@ public:
///< Returns the card index of this device (0 ... MAXDEVICES - 1).
int DeviceNumber(void) const;
///< Returns the number of this device (0 ... numDevices).
+ virtual cString DeviceType(void) const;
+ ///< Returns a string identifying the type of this device (like "DVB-S").
+ ///< If this device can receive different delivery systems, the returned
+ ///< string shall be that of the currently used system.
+ ///< The length of the returned string should not exceed 6 characters.
+ ///< The default implementation returns an empty string.
virtual cString DeviceName(void) const;
///< Returns a string identifying the name of this device.
///< The default implementation returns an empty string.