diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-26 19:01:11 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-11-26 19:01:11 +0000 |
| commit | f94e2c9821eb8784ca03b7122485d4720ec6d6e6 (patch) | |
| tree | 6da2323d2220093ea1c3756dbddb8e02fded2969 /lib/base/encoding.h | |
| parent | 68271eeaf83872270f13cc01e98960367d7d553f (diff) | |
| download | enigma2-f94e2c9821eb8784ca03b7122485d4720ec6d6e6.tar.gz enigma2-f94e2c9821eb8784ca03b7122485d4720ec6d6e6.zip | |
add ability to select default encoding for dvb texts in many ways.. ( take a look in data/encodings.conf )
Diffstat (limited to 'lib/base/encoding.h')
| -rw-r--r-- | lib/base/encoding.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/base/encoding.h b/lib/base/encoding.h new file mode 100644 index 00000000..3f107d66 --- /dev/null +++ b/lib/base/encoding.h @@ -0,0 +1,22 @@ +#ifndef __lib_base_encoding_h__ +#define __lib_base_encoding_h__ + +#include <string> +#include <set> +#include <map> + +class eDVBTextEncodingHandler +{ + std::map<std::string, int> m_CountryCodeDefaultMapping; + std::map<int, int> m_TransponderDefaultMapping; + std::set<int> m_TransponderUseTwoCharMapping; +public: + eDVBTextEncodingHandler(); + void getTransponderDefaultMapping(int tsidonid, int &table); + bool getTransponderUseTwoCharMapping(int tsidonid); + int getCountryCodeDefaultMapping( const std::string &country_code ); +}; + +extern eDVBTextEncodingHandler encodingHandler; + +#endif // __lib_base_encoding_h__
\ No newline at end of file |
