OLD | NEW |
| (Empty) |
1 // Copyright 2014 PDFium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
6 | |
7 #ifndef XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMODE_H_ | |
8 #define XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMODE_H_ | |
9 | |
10 #include <stdint.h> | |
11 | |
12 #include "core/include/fxcrt/fx_string.h" | |
13 | |
14 class CBC_QRCoderVersion; | |
15 | |
16 class CBC_QRCoderMode { | |
17 private: | |
18 int32_t* m_characterCountBitsForVersions; | |
19 int32_t m_bits; | |
20 CFX_ByteString m_name; | |
21 CBC_QRCoderMode(int32_t* characterCountBitsForVersions, | |
22 int32_t x1, | |
23 int32_t x2, | |
24 int32_t x3, | |
25 int32_t bits, | |
26 CFX_ByteString name); | |
27 CBC_QRCoderMode(); | |
28 | |
29 public: | |
30 static CBC_QRCoderMode* sBYTE; | |
31 static CBC_QRCoderMode* sNUMERIC; | |
32 static CBC_QRCoderMode* sALPHANUMERIC; | |
33 static CBC_QRCoderMode* sKANJI; | |
34 static CBC_QRCoderMode* sECI; | |
35 static CBC_QRCoderMode* sGBK; | |
36 static CBC_QRCoderMode* sTERMINATOR; | |
37 static CBC_QRCoderMode* sFNC1_FIRST_POSITION; | |
38 static CBC_QRCoderMode* sFNC1_SECOND_POSITION; | |
39 static CBC_QRCoderMode* sSTRUCTURED_APPEND; | |
40 virtual ~CBC_QRCoderMode(); | |
41 | |
42 static void Initialize(); | |
43 static void Finalize(); | |
44 static CBC_QRCoderMode* ForBits(int32_t bits, int32_t& e); | |
45 int32_t GetCharacterCountBits(CBC_QRCoderVersion* version, int32_t& e); | |
46 int32_t GetBits(); | |
47 CFX_ByteString GetName(); | |
48 static void Destroy(); | |
49 }; | |
50 | |
51 #endif // XFA_SRC_FXBARCODE_QRCODE_BC_QRCODERMODE_H_ | |
OLD | NEW |