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