Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 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 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 7 | #ifndef FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |
| 8 | #define FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 9 | |
weili | e76203d | 2016-08-09 13:45:03 -0700 | [diff] [blame] | 10 | #include <memory> |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 11 | |
weili | e76203d | 2016-08-09 13:45:03 -0700 | [diff] [blame] | 12 | class CBC_CommonByteArray; |
| 13 | |
| 14 | class CBC_QRCoderBlockPair { |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 15 | public: |
Lei Zhang | 03d5893 | 2017-04-03 16:40:51 -0700 | [diff] [blame] | 16 | CBC_QRCoderBlockPair(); |
| 17 | ~CBC_QRCoderBlockPair(); |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 18 | |
weili | e76203d | 2016-08-09 13:45:03 -0700 | [diff] [blame] | 19 | const CBC_CommonByteArray* GetDataBytes() const; |
| 20 | const CBC_CommonByteArray* GetErrorCorrectionBytes() const; |
Lei Zhang | 03d5893 | 2017-04-03 16:40:51 -0700 | [diff] [blame] | 21 | void SetData(std::unique_ptr<CBC_CommonByteArray> data, |
| 22 | std::unique_ptr<CBC_CommonByteArray> errorCorrection); |
weili | e76203d | 2016-08-09 13:45:03 -0700 | [diff] [blame] | 23 | |
| 24 | private: |
| 25 | std::unique_ptr<CBC_CommonByteArray> m_dataBytes; |
| 26 | std::unique_ptr<CBC_CommonByteArray> m_errorCorrectionBytes; |
Dan Sinclair | 1770c02 | 2016-03-14 14:14:16 -0400 | [diff] [blame] | 27 | }; |
| 28 | |
Dan Sinclair | e778668 | 2017-03-29 15:18:41 -0400 | [diff] [blame] | 29 | #endif // FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |