OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ | 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |
8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ | 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 class CBC_CommonByteArray; | 12 class CBC_CommonByteArray; |
| 13 |
11 class CBC_QRCoderBlockPair { | 14 class CBC_QRCoderBlockPair { |
12 private: | |
13 CBC_CommonByteArray* m_dataBytes; | |
14 CBC_CommonByteArray* m_errorCorrectionBytes; | |
15 | |
16 public: | 15 public: |
17 CBC_QRCoderBlockPair(CBC_CommonByteArray* data, | 16 CBC_QRCoderBlockPair(std::unique_ptr<CBC_CommonByteArray> data, |
18 CBC_CommonByteArray* errorCorrection); | 17 std::unique_ptr<CBC_CommonByteArray> errorCorrection); |
19 virtual ~CBC_QRCoderBlockPair(); | 18 virtual ~CBC_QRCoderBlockPair(); |
20 | 19 |
21 CBC_CommonByteArray* GetDataBytes(); | 20 const CBC_CommonByteArray* GetDataBytes() const; |
22 CBC_CommonByteArray* GetErrorCorrectionBytes(); | 21 const CBC_CommonByteArray* GetErrorCorrectionBytes() const; |
| 22 |
| 23 private: |
| 24 std::unique_ptr<CBC_CommonByteArray> m_dataBytes; |
| 25 std::unique_ptr<CBC_CommonByteArray> m_errorCorrectionBytes; |
23 }; | 26 }; |
24 | 27 |
25 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ | 28 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ |
OLD | NEW |