File: setup.h

package info (click to toggle)
vdr-plugin-epgsync 0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 144 kB
  • ctags: 88
  • sloc: ansic: 969; makefile: 71; sh: 9
file content (53 lines) | stat: -rw-r--r-- 1,130 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * setup.h: Settings
 *
 * See the README file for copyright information and how to reach the author.
 */

#ifndef _EPGSYNC_SETUP__H
#define _EPGSYNC_SETUP__H

#include <vdr/config.h>

#define MAX_IP_LENGTH 16

enum eRedirectChannelModes { rcmId, rcmIdName, rcmNameId, rcm_Count };
enum eChannelTypes {
	ctAll, ctDVB_C, ctDVB_S, ctDVB_T, ctAnalog,
#if defined(PLUGINPARAMPATCHVERSNUM) || APIVERSNUM >= 10713
	ctIptv,
#endif
	ct_Count
	};

struct cEpgSyncSetup {
	int hideMainMenuEntry;
	char serverIp[MAX_IP_LENGTH];
	int serverPort;
	int connectAttempts;
	int nowNext;
	int channelByChannel;
	int syncOnStart;
	int redirectChannels;
	int channelTypes;

	bool Parse(const char *Name, const char *Value);
	cEpgSyncSetup& operator=(const cEpgSyncSetup &Setup);
	cEpgSyncSetup();
};

extern cEpgSyncSetup EpgSyncSetup;

class cEpgSyncMenuSetup: public cMenuSetupPage {
	private:
		cEpgSyncSetup setupTmp;
		const char* redirectChannelsTexts[rcm_Count];
		const char* channelTypeTexts[ct_Count];
	protected:
		virtual void Store(void);
	public:
		cEpgSyncMenuSetup();
		virtual ~cEpgSyncMenuSetup();
};

#endif //_EPGSYNC_SETUP__H