summaryrefslogtreecommitdiff
path: root/p2pvr/scanner/serviceRows.h
blob: 0a048a0413f085aa2797663ce400eb28a830fdbd (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
#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:
		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