summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CEncoding.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CEncoding.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/CEncoding.h b/noncore/apps/opie-reader/CEncoding.h
new file mode 100644
index 0000000..1eee29e
--- a/dev/null
+++ b/noncore/apps/opie-reader/CEncoding.h
@@ -0,0 +1,53 @@
1#ifndef __CENCODING_H
2#define __CENCODING_H
3
4#include "CExpander.h"
5
6class CEncoding : public CCharacterSource
7{
8 friend class CFilterChain;
9 protected:
10 CExpander* parent;
11public:
12 CEncoding() : parent(NULL) {}
13 void setparent(CExpander* p) { parent = p; }
14 virtual ~CEncoding() {};
15};
16
17class CUtf8 : public CEncoding
18{
19public:
20 tchar getch();
21};
22
23class CUcs16be : public CEncoding
24{
25public:
26 tchar getch();
27};
28
29class CUcs16le : public CEncoding
30{
31public:
32 tchar getch();
33};
34
35class Ccp1252 : public CEncoding
36{
37public:
38 virtual tchar getch();
39};
40
41class CPalm : public Ccp1252
42{
43public:
44 tchar getch();
45};
46
47class CAscii : public CEncoding
48{
49public:
50 tchar getch();
51};
52
53#endif