openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
encoding.h
Go to the documentation of this file.
1 #ifndef __lib_base_encoding_h__
2 #define __lib_base_encoding_h__
3 
4 #include <string>
5 #include <set>
6 #include <map>
7 
8 #define ISO8859_5 0x01 // Latin/Cyrillic
9 #define ISO8859_6 0x02 // Latin/Arabic
10 #define ISO8859_7 0x03 // Latin/Greek
11 #define ISO8859_8 0x04 // Latin/Gebrew
12 #define ISO8859_9 0x05 // Latin 5
13 #define ISO8859_10 0x06 // Latin 6
14 #define ISO8859_11 0x07 // Latin/Thai
15 #define ISO8859_12 0x08 // Reserved
16 #define ISO8859_13 0x09 // Latin 7
17 #define ISO8859_14 0x0A // Latin 8 (Celtic)
18 #define ISO8859_15 0x0B // Latin 9
19 #define ISO8859_xx 0x10 // encoded in next two bytes
20 #define UNICODE_ENCODING 0x11 // ISO10646 Basic Multilingual Plane
21 #define KSX1001_ENCODING 0x12 // KSX1001 Korean
22 #define GB18030_ENCODING 0x13 // ISO10646 Simplified Chinese
23 #define BIG5_ENCODING 0x14 // ISO10646 Big5 Traditional Chineese
24 #define UTF8_ENCODING 0x15 // ISO10646 Basic Multilingual Plane in UTF8 encoding
25 #define UTF16BE_ENCODING 0x16
26 #define UTF16LE_ENCODING 0x17
27 #define GEOSTD8_ENCODING 0x1E // GEOSTD8 Georgian
28 #define HUFFMAN_ENCODING 0x1F
29 
30 #define MASK_NO_TABLEID 0x0800
31 #define MASK_IGNORE_TABLEID 0x0100
32 
34 {
35  std::map<std::string, int> m_CountryCodeDefaultMapping;
36  std::map<int, int> m_TransponderDefaultMapping;
37  std::set<int> m_TransponderUseTwoCharMapping;
38 public:
40  void getTransponderDefaultMapping(int tsidonid, int &table);
41  bool getTransponderUseTwoCharMapping(int tsidonid);
42  int getCountryCodeDefaultMapping( const std::string &country_code );
43 };
44 
46 extern int defaultEncodingTable;
47 #endif // __lib_base_encoding_h__
Definition: encoding.h:34
bool getTransponderUseTwoCharMapping(int tsidonid)
Definition: encoding.cpp:140
int getCountryCodeDefaultMapping(const std::string &country_code)
Definition: encoding.cpp:145
eDVBTextEncodingHandler()
Definition: encoding.cpp:59
void getTransponderDefaultMapping(int tsidonid, int &table)
Definition: encoding.cpp:132
int defaultEncodingTable
Definition: encoding.cpp:9
eDVBTextEncodingHandler encodingHandler
Definition: encoding.cpp:8