vdr  1.7.27
Public Member Functions | Private Member Functions | Private Attributes | Friends
cSectionHandler Class Reference

#include <sections.h>

List of all members.

Public Member Functions

 cSectionHandler (cDevice *Device)
virtual ~cSectionHandler ()
int Source (void)
int Transponder (void)
const cChannelChannel (void)
void Attach (cFilter *Filter)
void Detach (cFilter *Filter)
void SetChannel (const cChannel *Channel)
void SetStatus (bool On)
 cSectionHandler (cDevice *Device)
virtual ~cSectionHandler ()
int Source (void)
int Transponder (void)
const cChannelChannel (void)
void Attach (cFilter *Filter)
void Detach (cFilter *Filter)
void SetChannel (const cChannel *Channel)
void SetStatus (bool On)

Private Member Functions

void Add (const cFilterData *FilterData)
void Del (const cFilterData *FilterData)
virtual void Action (void)
void Add (const cFilterData *FilterData)
void Del (const cFilterData *FilterData)
virtual void Action (void)

Private Attributes

cSectionHandlerPrivateshp
cDevicedevice
int statusCount
bool on
bool waitForLock
time_t lastIncompleteSection
cList< cFilterfilters
cList< cFilterHandlefilterHandles

Friends

class cFilter

Detailed Description

Definition at line 23 of file include/vdr/sections.h.


Constructor & Destructor Documentation

Definition at line 42 of file sections.c.

References device, lastIncompleteSection, on, shp, cThread::Start(), statusCount, and waitForLock.

Definition at line 54 of file sections.c.

References cThread::Cancel(), Detach(), filters, cList< T >::First(), and shp.

virtual cSectionHandler::~cSectionHandler ( ) [virtual]

Member Function Documentation

void cSectionHandler::Action ( void  ) [private, virtual]

A derived cThread class must implement the code it wants to execute as a separate thread in this function.

If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

Definition at line 165 of file sections.c.

References cListBase::Count(), device, dsyslog, cFilterHandle::filterData, filterHandles, filters, cList< T >::First(), cFilterHandle::handle, cDevice::HasLock(), lastIncompleteSection, cThread::Lock(), LOCK_THREAD, cList< T >::Next(), cFilterData::pid, cThread::Running(), safe_read(), cThread::SetPriority(), SetStatus(), cCondWait::SleepMs(), statusCount, cThread::Unlock(), and waitForLock.

virtual void cSectionHandler::Action ( void  ) [private, virtual]

A derived cThread class must implement the code it wants to execute as a separate thread in this function.

If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

void cSectionHandler::Add ( const cFilterData FilterData) [private]
void cSectionHandler::Add ( const cFilterData FilterData) [private]
void cSectionHandler::Attach ( cFilter Filter)
void cSectionHandler::Attach ( cFilter Filter)
const cChannel * cSectionHandler::Channel ( void  )

Definition at line 73 of file sections.c.

References cSectionHandlerPrivate::channel, and shp.

Referenced by cFilter::Channel().

void cSectionHandler::Del ( const cFilterData FilterData) [private]
void cSectionHandler::Del ( const cFilterData FilterData) [private]
void cSectionHandler::Detach ( cFilter Filter)
void cSectionHandler::Detach ( cFilter Filter)
void cSectionHandler::SetChannel ( const cChannel Channel)
void cSectionHandler::SetChannel ( const cChannel Channel)

Definition at line 138 of file sections.c.

References cSectionHandlerPrivate::channel, cThread::Lock(), shp, and cThread::Unlock().

Referenced by cDevice::SetChannel().

void cSectionHandler::SetStatus ( bool  On)
void cSectionHandler::SetStatus ( bool  On)
int cSectionHandler::Source ( void  )

Definition at line 63 of file sections.c.

References cSectionHandlerPrivate::channel, shp, and cChannel::Source().

Referenced by cFilter::Source().

int cSectionHandler::Source ( void  )

Definition at line 68 of file sections.c.

References cSectionHandlerPrivate::channel, shp, and cChannel::Transponder().

Referenced by cFilter::Transponder().


Friends And Related Function Documentation

cFilter [friend]

Definition at line 24 of file include/vdr/sections.h.


Member Data Documentation

Definition at line 27 of file include/vdr/sections.h.

Referenced by Action(), Add(), cSectionHandler(), Del(), and SetStatus().

Definition at line 32 of file include/vdr/sections.h.

Referenced by Action(), Add(), and Del().

Definition at line 31 of file include/vdr/sections.h.

Referenced by Action(), Attach(), Detach(), SetStatus(), and ~cSectionHandler().

Definition at line 30 of file include/vdr/sections.h.

Referenced by Action(), and cSectionHandler().

bool cSectionHandler::on [private]

Definition at line 29 of file include/vdr/sections.h.

Referenced by Attach(), cSectionHandler(), and SetStatus().

Definition at line 28 of file include/vdr/sections.h.

Referenced by Action(), Add(), Attach(), cSectionHandler(), Del(), Detach(), and SetStatus().

Definition at line 29 of file include/vdr/sections.h.

Referenced by Action(), cSectionHandler(), and SetStatus().


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