summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CEncoding.h
blob: 1eee29e770afade980c5656b4b4fda578c7b1074 (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
#ifndef __CENCODING_H
#define __CENCODING_H

#include "CExpander.h"

class CEncoding : public CCharacterSource
{
  friend class CFilterChain;
 protected:
  CExpander* parent;
public:
  CEncoding() : parent(NULL) {}
  void setparent(CExpander* p) { parent = p; }
  virtual ~CEncoding() {};
};

class CUtf8 : public CEncoding
{
public:
    tchar getch();
};

class CUcs16be : public CEncoding
{
public:
    tchar getch();
};

class CUcs16le : public CEncoding
{
public:
    tchar getch();
};

class Ccp1252 : public CEncoding
{
public:
    virtual tchar getch();
};

class CPalm : public Ccp1252
{
public:
    tchar getch();
};

class CAscii : public CEncoding
{
public:
    tchar getch();
};

#endif