Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / 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 class CBC_QRCoderMode  : public CFX_Object\r
12 {\r
13 private:\r
14     FX_INT32* m_characterCountBitsForVersions;\r
15     FX_INT32 m_bits;\r
16     CFX_ByteString m_name;\r
17     CBC_QRCoderMode(FX_INT32 *characterCountBitsForVersions, FX_INT32 x1, FX_INT32 x2, FX_INT32 x3, FX_INT32 bits, CFX_ByteString name);\r
18     CBC_QRCoderMode();\r
19 public:\r
20     static CBC_QRCoderMode* sBYTE;\r
21     static CBC_QRCoderMode* sNUMERIC;\r
22     static CBC_QRCoderMode* sALPHANUMERIC;\r
23     static CBC_QRCoderMode* sKANJI;\r
24     static CBC_QRCoderMode* sECI;\r
25     static CBC_QRCoderMode* sGBK;\r
26     static CBC_QRCoderMode* sTERMINATOR;\r
27     static CBC_QRCoderMode* sFNC1_FIRST_POSITION;\r
28     static CBC_QRCoderMode* sFNC1_SECOND_POSITION;\r
29     static CBC_QRCoderMode* sSTRUCTURED_APPEND;\r
30     virtual ~CBC_QRCoderMode();\r
31 \r
32     static void Initialize();\r
33     static void Finalize();\r
34     static CBC_QRCoderMode* ForBits(FX_INT32 bits, FX_INT32 &e);\r
35     FX_INT32 GetCharacterCountBits(CBC_QRCoderVersion* version, FX_INT32 &e);\r
36     FX_INT32 GetBits();\r
37     CFX_ByteString GetName();\r
38     static void Destroy();\r
39 };\r
40 #endif\r