summaryrefslogtreecommitdiff
path: root/epgclone.h
blob: e0a4aa7df9dfb079574d131c270a0965e289291c (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
/*
 * epgclone.h: EpgClone list item
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef __EPGFIXER_EPGCLONE_H_
#define __EPGFIXER_EPGCLONE_H_

#include "tools.h"
#include <vdr/epg.h>

class cEpgClone : public cListItem
{
private:
  int dest_num;
  char *dest_str;
  void CloneEvent(cEvent *Source, cEvent *Dest);
public:
  cEpgClone();
  virtual ~cEpgClone();
  using cListItem::Apply;
  virtual bool Apply(cEvent *Event);
  void SetFromString(char *string, bool Enabled);
};

// Global instance
extern cEpgfixerList<cEpgClone, cEvent> EpgfixerEpgClones;

#endif //__EPGFIXER_EPGCLONE_H_