summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/vdrmanagerthread.h
blob: 96866b72571973c4cdfb5886639f287aefd07727 (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
/*
 * VdrmonThread
 */

#ifndef _VDRMON_THREAD
#define _VDRMON_THREAD

#include <sys/poll.h>
#include <vdr/plugin.h>
#include <vdr/thread.h>
#include <vdr/device.h>
#include <vdr/player.h>
#include <string>

using namespace std;

class cSelect;

class cVdrManagerThread : public cThread {
private:
  cSelect * select;
  int port;
  const char * password;
  bool forceCheckSvdrp;
  int compressionMode;
#if VDRMANAGER_USE_SSL
  int sslPort;
  const char * certFile;
  const char * keyFile;
#endif
public:
  cVdrManagerThread(int port,
#if VDRMANAGER_USE_SSL
      int sslPort,
#endif
      const char * password, bool forceCheckSvdrp, int compressionMode
#if VDRMANAGER_USE_SSL
      , const char * certFile, const char * keyFile
#endif
      );
  virtual void Action(void);
  void Shutdown();
private:
  virtual ~cVdrManagerThread();
  void Cleanup();
  bool Init();
};

#endif