vdr
2.0.4
Main Page
Namespaces
Classes
Files
File List
File Members
sections.h
Go to the documentation of this file.
1
/*
2
* sections.h: Section data handling
3
*
4
* See the main source file 'vdr.c' for copyright information and
5
* how to reach the author.
6
*
7
* $Id: sections.h 2.0 2005/08/13 11:23:55 kls Exp $
8
*/
9
10
#ifndef __SECTIONS_H
11
#define __SECTIONS_H
12
13
#include <time.h>
14
#include "
filter.h
"
15
#include "
thread.h
"
16
#include "
tools.h
"
17
18
class
cDevice
;
19
class
cChannel
;
20
class
cFilterHandle
;
21
class
cSectionHandlerPrivate
;
22
23
class
cSectionHandler
:
public
cThread
{
24
friend
class
cFilter
;
25
private
:
26
cSectionHandlerPrivate
*
shp
;
27
cDevice
*
device
;
28
int
statusCount
;
29
bool
on
,
waitForLock
;
30
time_t
lastIncompleteSection
;
31
cList<cFilter>
filters
;
32
cList<cFilterHandle>
filterHandles
;
33
void
Add
(
const
cFilterData
*FilterData);
34
void
Del
(
const
cFilterData
*FilterData);
35
virtual
void
Action
(
void
);
36
public
:
37
cSectionHandler
(
cDevice
*Device);
38
virtual
~cSectionHandler
();
39
int
Source
(
void
);
40
int
Transponder
(
void
);
41
const
cChannel
*
Channel
(
void
);
42
void
Attach
(
cFilter
*Filter);
43
void
Detach
(
cFilter
*Filter);
44
void
SetChannel
(
const
cChannel
*
Channel
);
45
void
SetStatus
(
bool
On);
46
};
47
48
#endif //__SECTIONS_H
49
Generated by
1.8.3.1