summaryrefslogtreecommitdiff
path: root/channelmap.h
blob: de40039eb39c87804b87a6bde45303d451ca63b2 (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
/*
 * channelmap.h: TVTV plugin for the Video Disk Recorder
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef _CHANNELMAP__H
#define _CHANNELMAP__H

#include <map>
#include <fstream>
#include <string>
#include <stdlib.h>

#include <vdr/plugin.h>
#include <vdr/tools.h>

using namespace std;


class cChannelMap {
private:
  map<int, char *> chanmap;
  void remove_whitespaces(char *s);
  int read_config_file();
public:
  cChannelMap();
  ~cChannelMap();
  int ReloadChannelMap();
  char *GetChanStr(int tvtvid);
  tChannelID GetChanID(int tvtvid);
};

#endif