| 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_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 7 #ifndef XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ |
| 8 #define XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 8 #define XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ |
| 9 | 9 |
| 10 class CBC_DecoderResult; | 10 #include "core/include/fxcrt/fx_basic.h" |
| 11 |
| 11 class CBC_DecoderResult { | 12 class CBC_DecoderResult { |
| 12 public: | 13 public: |
| 13 CBC_DecoderResult(CFX_ByteArray* rawBytes, | 14 CBC_DecoderResult(CFX_ByteArray* rawBytes, |
| 14 CFX_ByteString text, | 15 CFX_ByteString text, |
| 15 CFX_ByteString ecLevel); | 16 CFX_ByteString ecLevel); |
| 16 virtual ~CBC_DecoderResult(); | 17 virtual ~CBC_DecoderResult(); |
| 17 CFX_ByteArray* getRawBytes(); | 18 CFX_ByteArray* getRawBytes(); |
| 18 CFX_ByteString getText(); | 19 CFX_ByteString getText(); |
| 19 CFX_ByteString getECLevel(); | 20 CFX_ByteString getECLevel(); |
| 20 int32_t getErrorsCorrected(); | 21 int32_t getErrorsCorrected(); |
| 21 void setErrorsCorrected(int32_t errorsCorrected); | 22 void setErrorsCorrected(int32_t errorsCorrected); |
| 22 int32_t getErasures(); | 23 int32_t getErasures(); |
| 23 void setErasures(int32_t erasures); | 24 void setErasures(int32_t erasures); |
| 24 void* getOther(); | 25 void* getOther(); |
| 25 void setOther(void* other); | 26 void setOther(void* other); |
| 26 | 27 |
| 27 private: | 28 private: |
| 28 CFX_ByteArray* m_rawBytes; | 29 CFX_ByteArray* m_rawBytes; |
| 29 CFX_ByteString m_text; | 30 CFX_ByteString m_text; |
| 30 CFX_ByteString m_ecLevel; | 31 CFX_ByteString m_ecLevel; |
| 31 int32_t m_errorsCorrected; | 32 int32_t m_errorsCorrected; |
| 32 int32_t m_erasures; | 33 int32_t m_erasures; |
| 33 void* m_other; | 34 void* m_other; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 #endif // XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ | 37 #endif // XFA_SRC_FXBARCODE_BC_DECODERRESULT_H_ |
| OLD | NEW |