Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fxbarcode / qrcode / BC_QRCoderMode.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _BC_QRCODERMODE_H_\r
8 #define _BC_QRCODERMODE_H_\r
9 class CBC_QRCoderVersion;\r
10 class CBC_QRCoderMode\r
11 {\r
12 private:\r
13     int32_t* m_characterCountBitsForVersions;\r
14     int32_t m_bits;\r
15     CFX_ByteString m_name;\r
16     CBC_QRCoderMode(int32_t *characterCountBitsForVersions, int32_t x1, int32_t x2, int32_t x3, int32_t bits, CFX_ByteString name);\r
17     CBC_QRCoderMode();\r
18 public:\r
19     static CBC_QRCoderMode* sBYTE;\r
20     static CBC_QRCoderMode* sNUMERIC;\r
21     static CBC_QRCoderMode* sALPHANUMERIC;\r
22     static CBC_QRCoderMode* sKANJI;\r
23     static CBC_QRCoderMode* sECI;\r
24     static CBC_QRCoderMode* sGBK;\r
25     static CBC_QRCoderMode* sTERMINATOR;\r
26     static CBC_QRCoderMode* sFNC1_FIRST_POSITION;\r
27     static CBC_QRCoderMode* sFNC1_SECOND_POSITION;\r
28     static CBC_QRCoderMode* sSTRUCTURED_APPEND;\r
29     virtual ~CBC_QRCoderMode();\r
30 \r
31     static void Initialize();\r
32     static void Finalize();\r
33     static CBC_QRCoderMode* ForBits(int32_t bits, int32_t &e);\r
34     int32_t GetCharacterCountBits(CBC_QRCoderVersion* version, int32_t &e);\r
35     int32_t GetBits();\r
36     CFX_ByteString GetName();\r
37     static void Destroy();\r
38 };\r
39 #endif\r