summaryrefslogtreecommitdiff
path: root/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'device.h')
-rw-r--r--device.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/device.h b/device.h
index 897de2af..9318bb1b 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.19 2010/01/01 15:04:27 kls Exp $
+ * $Id: device.h 2.20 2010/02/06 13:55:41 kls Exp $
*/
#ifndef __DEVICE_H
@@ -88,10 +88,18 @@ class cPlayer;
class cReceiver;
class cLiveSubtitle;
+class cDeviceHook : public cListObject {
+public:
+ cDeviceHook(void);
+ virtual bool DeviceProvidesTransponder(const cDevice *Device, const cChannel *Channel) const;
+ ///< Returns true if the given Device can provide the given Channel's transponder.
+ };
+
/// The cDevice class is the base from which actual devices can be derived.
class cDevice : public cThread {
friend class cLiveSubtitle;
+ friend class cDeviceHook;
private:
static int numDevices;
static int useDevice;
@@ -187,6 +195,13 @@ public:
virtual bool HasDecoder(void) const;
///< Tells whether this device has an MPEG decoder.
+// Device hooks
+
+private:
+ static cList<cDeviceHook> deviceHooks;
+protected:
+ bool DeviceHooksProvidesTransponder(const cChannel *Channel) const;
+
// SPU facilities
private: