blob: 36cbee7c33f8d034f6e9ceb0cc2897952668c637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef SERVICEROWS_H
#define SERVICEROWS_H
#include "scripts.h"
#include "rowSet.h"
#include "variables.h"
#include "dvbSiReaderHelper.h"
class Service;
class ServiceRows : public RowSet, DvbSiReaderHelper {
public:
ServiceRows(const ScriptNodePtr p);
~ServiceRows();
void execute(const Glib::ustring &, const RowProcessorCallback &, ExecContext *) const;
void loadComplete(const CommonObjects *);
private:
void filterInput(int fd) const;
};
class ServiceRowState : public RowState, DvbSiParserHelper {
public:
ServiceRowState();
const Columns & getColumns() const;
RowAttribute resolveAttr(const Glib::ustring & attrName) const;
bool parseInfoTable(const u_char *data, size_t len, const RowProcessorCallback &);
private:
void parseServiceDescriptor(const u_char *data, size_t len, Service * current) const;
void parseServiceAuthDescriptor(const u_char *data, size_t len, Service * current) const;
typedef std::set<int> SeenServices;
SeenServices seenServices;
Columns columns;
friend class ServiceRows;
mutable Service * current;
};
#endif
|