blob: 7ad24577881513557cf24c39f03e36ed9bda1d08 (
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
|
#ifndef SERVICEROWS_H
#define SERVICEROWS_H
#include "xmlObjectLoader.h"
#include "rowSet.h"
#include "variables.h"
#include "dvbSiReaderHelper.h"
class Service;
class ServiceRows : public RowSet, DvbSiReaderHelper {
public:
ServiceRows(const xmlpp::Element * p);
~ServiceRows();
void execute(const RowProcessor *) const;
void loadComplete(const CommonObjects *);
void setFilter(const Glib::ustring &);
unsigned int columnCount() const;
const Glib::ustring & getColumnName(unsigned int) const;
VariableType getCurrentValue(const Glib::ustring &) const;
VariableType getCurrentValue(unsigned int) const;
bool isNull(unsigned int ) const;
bool isNull(const Glib::ustring & ) const;
RowAttribute resolveAttr(const Glib::ustring & attrName) const;
private:
typedef std::set<int> SeenServices;
mutable SeenServices seenServices;
void filterInput(int fd) const;
bool parseInfoTable(const u_char *data, size_t len, const RowProcessor *) const;
void parseServiceDescriptor(const u_char *data, size_t len) const;
void parseServiceAuthDescriptor(const u_char *data, size_t len) const;
mutable Service * current;
};
#endif
|