Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fxbarcode / src / include / BC_QRDataBlock.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_QRDATABLOCK_H_\r
8 #define _BC_QRDATABLOCK_H_\r
9 class CBC_QRCoderVersion;\r
10 class CBC_QRCoderECBlocks;\r
11 class CBC_QRCoderECB;\r
12 class CBC_QRCoderErrorCorrectionLevel;\r
13 class CBC_QRDataBlock;\r
14 class CBC_QRDataBlock : public CFX_Object\r
15 {\r
16 private:\r
17     FX_INT32 m_numDataCodewords;\r
18     CFX_ByteArray *m_codewords;\r
19     CBC_QRDataBlock(FX_INT32 numDataCodewords, CFX_ByteArray *codewords);\r
20 public:\r
21     virtual ~CBC_QRDataBlock();\r
22     FX_INT32 GetNumDataCodewords();\r
23     CFX_ByteArray* GetCodewords();\r
24     static CFX_PtrArray *GetDataBlocks(CFX_ByteArray* rawCodewords,\r
25                                        CBC_QRCoderVersion *version, CBC_QRCoderErrorCorrectionLevel* ecLevel, FX_INT32 &e);\r
26 };\r
27 #endif\r