author | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-01 23:24:08 (UTC) |
commit | 59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2 (patch) (unidiff) | |
tree | f148d4858859dac3b413e675c760acfdab24b8e6 /noncore/apps/opie-reader/CEncoding.h | |
parent | c08be8ae22dcc1bfb83cfdec807149b161d770f5 (diff) | |
download | opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.zip opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.gz opie-59222a752fa4c8a1e8c2a00ee2f9e22855f12bb2.tar.bz2 |
initial
Diffstat (limited to 'noncore/apps/opie-reader/CEncoding.h') (more/less context) (show 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 | ||