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-09-20 23:45:51 +02:00
|
|
|
* $Id: config.h,v 1.4 2007/09/20 21:45:51 rahrenbe Exp $
|
2007-09-15 17:38:38 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IPTV_CONFIG_H
|
|
|
|
#define __IPTV_CONFIG_H
|
|
|
|
|
|
|
|
#include <vdr/menuitems.h>
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
class cIptvConfig
|
|
|
|
{
|
|
|
|
protected:
|
2007-09-16 15:38:20 +02:00
|
|
|
unsigned int tsBufferSize;
|
|
|
|
unsigned int tsBufferPrefillRatio;
|
|
|
|
unsigned int udpBufferSize;
|
|
|
|
unsigned int httpBufferSize;
|
|
|
|
unsigned int fileBufferSize;
|
2007-09-20 23:45:51 +02:00
|
|
|
unsigned int maxBufferSize;
|
2007-09-15 17:38:38 +02:00
|
|
|
public:
|
|
|
|
cIptvConfig();
|
2007-09-16 15:38:20 +02:00
|
|
|
unsigned int GetTsBufferSize(void) { return tsBufferSize; }
|
|
|
|
unsigned int GetTsBufferPrefillRatio(void) { return tsBufferPrefillRatio; }
|
|
|
|
unsigned int GetUdpBufferSize(void) { return udpBufferSize; }
|
|
|
|
unsigned int GetHttpBufferSize(void) { return httpBufferSize; }
|
|
|
|
unsigned int GetFileBufferSize(void) { return fileBufferSize; }
|
2007-09-20 23:45:51 +02:00
|
|
|
unsigned int GetMaxBufferSize(void) { return maxBufferSize; }
|
2007-09-16 15:38:20 +02:00
|
|
|
void SetTsBufferSize(unsigned int Size) { tsBufferSize = Size; }
|
|
|
|
void SetTsBufferPrefillRatio(unsigned int Ratio) { tsBufferPrefillRatio = Ratio; }
|
|
|
|
void SetUdpBufferSize(unsigned int Size) { udpBufferSize = Size; }
|
|
|
|
void SetHttpBufferSize(unsigned int Size) { httpBufferSize = Size; }
|
|
|
|
void SetFileBufferSize(unsigned int Size) { fileBufferSize = Size; }
|
2007-09-15 17:38:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern cIptvConfig IptvConfig;
|
|
|
|
|
|
|
|
#endif // __IPTV_CONFIG_H
|