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 7 #ifndef XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ 8 #define XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ 9 10 #include <memory> 11 12 class CBC_CommonByteArray; 13 14 class CBC_QRCoderBlockPair { 15 public: 16 CBC_QRCoderBlockPair(std::unique_ptr<CBC_CommonByteArray> data, 17 std::unique_ptr<CBC_CommonByteArray> errorCorrection); 18 virtual ~CBC_QRCoderBlockPair(); 19 20 const CBC_CommonByteArray* GetDataBytes() const; 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; 26 }; 27 28 #endif // XFA_FXBARCODE_QRCODE_BC_QRCODERBLOCKPAIR_H_ 29