vdr  2.0.6
Classes | Public Member Functions | Static Public Member Functions | Static Private Attributes | Friends | List of all members
cDynamicDeviceProbe Class Referenceabstract

#include <device.h>

Collaboration diagram for cDynamicDeviceProbe:
[legend]

Classes

class  cDynamicDeviceProbeItem
 

Public Member Functions

 cDynamicDeviceProbe (void)
 
virtual ~cDynamicDeviceProbe ()
 
virtual cDeviceAttach (cDevice *ParentDevice, const char *DevPath)=0
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Static Public Member Functions

static void QueueDynamicDeviceCommand (eDynamicDeviceProbeCommand Cmd, const char *DevPath)
 

Static Private Attributes

static cList
< cDynamicDeviceProbeItem
commandQueue
 

Friends

class cDynamicDevice
 

Detailed Description

Definition at line 862 of file device.h.

Constructor & Destructor Documentation

cDynamicDeviceProbe::cDynamicDeviceProbe ( void  )

Definition at line 1882 of file device.c.

References cListBase::Add().

cDynamicDeviceProbe::~cDynamicDeviceProbe ( )
virtual

Definition at line 1887 of file device.c.

References cListBase::Del().

Member Function Documentation

virtual cDevice* cDynamicDeviceProbe::Attach ( cDevice ParentDevice,
const char *  DevPath 
)
pure virtual

Probes for a device at the given device-path like /dev/dvb/adapter0/frontend0 or /dev/video0 etc.

and creates the appropriate object derived from cDevice if applicable. Returns the device that has been created or NULL if not. The dynamite-plugin will delete the device if it is detached.

void cDynamicDeviceProbe::QueueDynamicDeviceCommand ( eDynamicDeviceProbeCommand  Cmd,
const char *  DevPath 
)
static

Plugins which support cDynamicDeviceProbe must use this function to queue the devices they normally create in their Initialize method.

These devices are created as subdevices in the Start-method of the dynamite-plugin.

Definition at line 1876 of file device.c.

References commandQueue.

Friends And Related Function Documentation

friend class cDynamicDevice
friend

Definition at line 863 of file device.h.

Member Data Documentation

cList< cDynamicDeviceProbe::cDynamicDeviceProbeItem > cDynamicDeviceProbe::commandQueue
staticprivate

A list where all attach/detach commands are queued so they can be processed in the MainThreadHook of the dynamite plugin.

Definition at line 872 of file device.h.

Referenced by QueueDynamicDeviceCommand().


The documentation for this class was generated from the following files: