Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CEncoding.h | 53 |
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 | |||
6 | class CEncoding : public CCharacterSource | ||
7 | { | ||
8 | friend class CFilterChain; | ||
9 | protected: | ||
10 | CExpander* parent; | ||
11 | public: | ||
12 | CEncoding() : parent(NULL) {} | ||
13 | void setparent(CExpander* p) { parent = p; } | ||
14 | virtual ~CEncoding() {}; | ||
15 | }; | ||
16 | |||
17 | class CUtf8 : public CEncoding | ||
18 | { | ||
19 | public: | ||
20 | tchar getch(); | ||
21 | }; | ||
22 | |||
23 | class CUcs16be : public CEncoding | ||
24 | { | ||
25 | public: | ||
26 | tchar getch(); | ||
27 | }; | ||
28 | |||
29 | class CUcs16le : public CEncoding | ||
30 | { | ||
31 | public: | ||
32 | tchar getch(); | ||
33 | }; | ||
34 | |||
35 | class Ccp1252 : public CEncoding | ||
36 | { | ||
37 | public: | ||
38 | virtual tchar getch(); | ||
39 | }; | ||
40 | |||
41 | class CPalm : public Ccp1252 | ||
42 | { | ||
43 | public: | ||
44 | tchar getch(); | ||
45 | }; | ||
46 | |||
47 | class CAscii : public CEncoding | ||
48 | { | ||
49 | public: | ||
50 | tchar getch(); | ||
51 | }; | ||
52 | |||
53 | #endif | ||