diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-02-06 14:23:03 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-02-06 14:23:03 +0100 |
commit | 644a9f07f26df58b7d79cea8ea961c2232a092be (patch) | |
tree | 3f47c7be9bdb0af8ac5db55e2932c3e9cd0b153b /device.h | |
parent | 2517b2ee8df0a10ae03135a62a9356d4aebdfe64 (diff) | |
download | vdr-644a9f07f26df58b7d79cea8ea961c2232a092be.tar.gz vdr-644a9f07f26df58b7d79cea8ea961c2232a092be.tar.bz2 |
Implemented cDeviceHook
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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: |