1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00
vdr-plugin-iptv/config.h

44 lines
1.4 KiB
C
Raw Normal View History

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.
*
*/
#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
class cIptvConfig
{
private:
2014-02-19 20:38:11 +01:00
unsigned int protocolBasePortM;
2013-02-23 14:31:11 +01:00
unsigned int useBytesM;
unsigned int sectionFilteringM;
int disabledFiltersM[SECTION_FILTER_TABLE_SIZE];
char configDirectoryM[PATH_MAX];
char resourceDirectoryM[PATH_MAX];
2007-09-15 17:38:38 +02:00
public:
cIptvConfig();
2014-02-19 20:38:11 +01:00
unsigned int GetProtocolBasePort(void) const { return protocolBasePortM; }
2013-02-23 14:31:11 +01:00
unsigned int GetUseBytes(void) const { return useBytesM; }
unsigned int GetSectionFiltering(void) const { return sectionFilteringM; }
const char *GetConfigDirectory(void) const { return configDirectoryM; }
const char *GetResourceDirectory(void) const { return resourceDirectoryM; }
2008-01-05 00:36:37 +01:00
unsigned int GetDisabledFiltersCount(void) const;
2013-02-23 14:31:11 +01:00
int GetDisabledFilters(unsigned int indexP) const;
2014-02-19 20:38:11 +01:00
void SetProtocolBasePort(unsigned int portNumberP) { protocolBasePortM = portNumberP; }
2013-02-23 14:31:11 +01:00
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);
void SetResourceDirectory(const char *directoryP);
2007-09-15 17:38:38 +02:00
};
extern cIptvConfig IptvConfig;
#endif // __IPTV_CONFIG_H