summaryrefslogtreecommitdiff
path: root/ffnetdev.h
blob: 36d8358ef6ed1913e069e191282d7e957e5b20fd (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
/* 
 * ffnetdev.h: Full Featured Network Device VDR-Plugin for Streaming
 *
 * See the README file for copyright information and how to reach the author.
 *
 */
#ifndef _FFNETDEV__H
#define _FFNETDEV__H

#include <vdr/plugin.h>
#include "streamdevice.h"
#include "remote.h"

#define OSDPORT 20001
#define STREAMPORT 20002
#define CONTROLPORT 20005

class cPluginFFNetDev : public cPlugin {
private:
//	static const char *DESCRIPTION;
//	static const char *VERSION;
	//static const char *MAINMENUENTRY;
	cStreamDevice *m_StreamDevice;
	cMyRemote *m_Remote;
	int OSDPort;
	int TSPort;
	int ControlPort;
	bool EnableRemote;
	int  m_origPrimaryDevice;	
	char m_ClientName[20];
	cLearningThread *m_LearningThread;
	
public:
  cPluginFFNetDev(void);
  virtual ~cPluginFFNetDev();
  virtual const char *Description(void); 
  virtual const char *Version(void);
  virtual const char *CommandLineHelp(void);
  virtual bool Initialize(void);
  virtual bool ProcessArgs(int argc, char *argv[]);
  virtual bool Start(void);
  virtual void Housekeeping(void);
  //virtual const char *MainMenuEntry(void) { return tr(MAINMENUENTRY); }
  virtual cOsdObject *MainMenuAction(void);
  virtual cMenuSetupPage *SetupMenu(void);
  virtual bool SetupParse(const char *Name, const char *Value);
  
#ifndef VDRVERSNUM
#define VDRVERSNUM 10346
#endif

#if VDRVERSNUM >= 10347
  virtual cString Active(void);
#else
  virtual bool Active(void);
#endif
 

  void SetPrimaryDevice();
  void RestorePrimaryDevice();
  cMyRemote *GetRemote() { return m_Remote; }
  void SetClientName(char* ClientName);
};

#endif