mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
/*
|
|
* config.h: IPTV plugin for the Video Disk Recorder
|
|
*
|
|
* See the README file for copyright information and how to reach the author.
|
|
*
|
|
*/
|
|
|
|
#ifndef __IPTV_CONFIG_H
|
|
#define __IPTV_CONFIG_H
|
|
|
|
#include <vdr/menuitems.h>
|
|
#include "common.h"
|
|
|
|
class cIptvConfig
|
|
{
|
|
private:
|
|
unsigned int tsBufferSizeM;
|
|
unsigned int tsBufferPrefillRatioM;
|
|
unsigned int extProtocolBasePortM;
|
|
unsigned int useBytesM;
|
|
unsigned int sectionFilteringM;
|
|
int disabledFiltersM[SECTION_FILTER_TABLE_SIZE];
|
|
char configDirectoryM[PATH_MAX];
|
|
|
|
public:
|
|
cIptvConfig();
|
|
unsigned int GetTsBufferSize(void) const { return tsBufferSizeM; }
|
|
unsigned int GetTsBufferPrefillRatio(void) const { return tsBufferPrefillRatioM; }
|
|
unsigned int GetExtProtocolBasePort(void) const { return extProtocolBasePortM; }
|
|
unsigned int GetUseBytes(void) const { return useBytesM; }
|
|
unsigned int GetSectionFiltering(void) const { return sectionFilteringM; }
|
|
const char *GetConfigDirectory(void) const { return configDirectoryM; }
|
|
unsigned int GetDisabledFiltersCount(void) const;
|
|
int GetDisabledFilters(unsigned int indexP) const;
|
|
void SetTsBufferSize(unsigned int sizeP) { tsBufferSizeM = sizeP; }
|
|
void SetTsBufferPrefillRatio(unsigned int ratioP) { tsBufferPrefillRatioM = ratioP; }
|
|
void SetExtProtocolBasePort(unsigned int portNumberP) { extProtocolBasePortM = portNumberP; }
|
|
void SetUseBytes(unsigned int onOffP) { useBytesM = onOffP; }
|
|
void SetSectionFiltering(unsigned int onOffP) { sectionFilteringM = onOffP; }
|
|
void SetDisabledFilters(unsigned int indexP, int numberP);
|
|
void SetConfigDirectory(const char *directoryP);
|
|
};
|
|
|
|
extern cIptvConfig IptvConfig;
|
|
|
|
#endif // __IPTV_CONFIG_H
|