2007-09-15 17:38:38 +02:00
|
|
|
/*
|
|
|
|
* config.h: IPTV plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
2007-10-20 19:26:46 +02:00
|
|
|
* $Id: config.h,v 1.16 2007/10/20 17:26:46 rahrenbe Exp $
|
2007-09-15 17:38:38 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IPTV_CONFIG_H
|
|
|
|
#define __IPTV_CONFIG_H
|
|
|
|
|
|
|
|
#include <vdr/menuitems.h>
|
2007-10-07 22:08:44 +02:00
|
|
|
#include "common.h"
|
2007-09-15 17:38:38 +02:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
class cIptvConfig
|
|
|
|
{
|
2007-10-20 00:54:03 +02:00
|
|
|
private:
|
2007-09-28 18:44:59 +02:00
|
|
|
unsigned int readBufferTsCount;
|
2007-09-16 15:38:20 +02:00
|
|
|
unsigned int tsBufferSize;
|
|
|
|
unsigned int tsBufferPrefillRatio;
|
2007-10-20 19:26:46 +02:00
|
|
|
unsigned int extProtocolBasePort;
|
2007-10-09 01:51:58 +02:00
|
|
|
unsigned int useBytes;
|
2007-09-30 23:38:31 +02:00
|
|
|
unsigned int sectionFiltering;
|
|
|
|
unsigned int sidScanning;
|
2007-10-06 02:02:50 +02:00
|
|
|
int disabledFilters[SECTION_FILTER_TABLE_SIZE];
|
2007-10-20 00:54:03 +02:00
|
|
|
char configDirectory[255];
|
2007-09-28 18:44:59 +02:00
|
|
|
|
2007-09-15 17:38:38 +02:00
|
|
|
public:
|
|
|
|
cIptvConfig();
|
2007-09-28 18:44:59 +02:00
|
|
|
unsigned int GetReadBufferTsCount(void) { return readBufferTsCount; }
|
2007-09-16 15:38:20 +02:00
|
|
|
unsigned int GetTsBufferSize(void) { return tsBufferSize; }
|
|
|
|
unsigned int GetTsBufferPrefillRatio(void) { return tsBufferPrefillRatio; }
|
2007-10-20 19:26:46 +02:00
|
|
|
unsigned int GetExtProtocolBasePort(void) { return extProtocolBasePort; }
|
2007-10-09 01:51:58 +02:00
|
|
|
unsigned int GetUseBytes(void) { return useBytes; }
|
2007-09-30 23:38:31 +02:00
|
|
|
unsigned int GetSectionFiltering(void) { return sectionFiltering; }
|
|
|
|
unsigned int GetSidScanning(void) { return sidScanning; }
|
2007-10-20 00:54:03 +02:00
|
|
|
const char *GetConfigDirectory(void) { return configDirectory; }
|
2007-10-06 02:02:50 +02:00
|
|
|
unsigned int GetDisabledFiltersCount(void);
|
|
|
|
int GetDisabledFilters(unsigned int Index);
|
2007-09-16 15:38:20 +02:00
|
|
|
void SetTsBufferSize(unsigned int Size) { tsBufferSize = Size; }
|
|
|
|
void SetTsBufferPrefillRatio(unsigned int Ratio) { tsBufferPrefillRatio = Ratio; }
|
2007-10-20 19:26:46 +02:00
|
|
|
void SetExtProtocolBasePort(unsigned int PortNumber) { extProtocolBasePort = PortNumber; }
|
2007-10-09 01:51:58 +02:00
|
|
|
void SetUseBytes(unsigned int On) { useBytes = On; }
|
2007-09-30 23:38:31 +02:00
|
|
|
void SetSectionFiltering(unsigned int On) { sectionFiltering = On; }
|
|
|
|
void SetSidScanning(unsigned int On) { sidScanning = On; }
|
2007-10-06 02:02:50 +02:00
|
|
|
void SetDisabledFilters(unsigned int Index, int Number);
|
2007-10-20 00:54:03 +02:00
|
|
|
void SetConfigDirectory(const char *directoryP);
|
2007-09-15 17:38:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern cIptvConfig IptvConfig;
|
|
|
|
|
|
|
|
#endif // __IPTV_CONFIG_H
|