summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CEncoding.h
Side-by-side diff
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 @@
+#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