~ubuntu-branches/ubuntu/maverick/vdr-plugin-mp3/maverick

« back to all changes in this revision

Viewing changes to compat.h

  • Committer: Bazaar Package Importer
  • Author(s): Tobias Grimm
  • Date: 2010-03-28 15:09:21 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100328150921-3kti802cqh0pe1hl
Tags: 0.10.2-3
* Build-depend on vdr-dev >= 1.6.0-16
* Minor debian/copyright update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * MP3/MPlayer plugin to VDR (C++)
 
3
 *
 
4
 * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
 
5
 *
 
6
 * This code is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 *
 
11
 * This code is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
19
 * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
 
20
 */
 
21
 
 
22
#ifndef ___COMPAT_H
 
23
#define ___COMPAT_H
 
24
 
 
25
#ifndef APIVERSNUM
 
26
#include <vdr/config.h>
 
27
#endif
 
28
 
 
29
#if APIVERSNUM < 10503
 
30
#include <iconv.h>
 
31
 
 
32
class cCharSetConv {
 
33
private:
 
34
  iconv_t cd;
 
35
  char *result;
 
36
  size_t length;
 
37
  static char *systemCharacterTable;
 
38
public:
 
39
  cCharSetConv(const char *FromCode = NULL, const char *ToCode = NULL);
 
40
  ~cCharSetConv();
 
41
  const char *Convert(const char *From, char *To = NULL, size_t ToLength = 0);
 
42
  static const char *SystemCharacterTable(void) { return systemCharacterTable; }
 
43
  static void SetSystemCharacterTableX(const char *CharacterTable);
 
44
  };
 
45
 
 
46
#endif
 
47
 
 
48
#endif //___COMPAT_H