Merge to XFA: Use stdint.h types throughout PDFium.
[pdfium.git] / xfa / src / fxbarcode / qrcode / BC_QRCoderErrorCorrectionLevel.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _BC_QRCODERERRORCORRECTIONLEVEL_H_\r
8 #define _BC_QRCODERERRORCORRECTIONLEVEL_H_\r
9 class CBC_QRCoderErrorCorrectionLevel\r
10 {\r
11 private:\r
12     int32_t m_ordinal;\r
13     int32_t m_bits;\r
14     CFX_ByteString m_name;\r
15     CBC_QRCoderErrorCorrectionLevel(int32_t ordinal, int32_t bits, FX_CHAR* name);\r
16     CBC_QRCoderErrorCorrectionLevel();\r
17 public:\r
18     static CBC_QRCoderErrorCorrectionLevel* L;\r
19     static CBC_QRCoderErrorCorrectionLevel* M;\r
20     static CBC_QRCoderErrorCorrectionLevel* Q;\r
21     static CBC_QRCoderErrorCorrectionLevel* H;\r
22     virtual ~CBC_QRCoderErrorCorrectionLevel();\r
23     static void Initialize();\r
24     static void Finalize();\r
25     int32_t Ordinal();\r
26     int32_t GetBits();\r
27     CFX_ByteString GetName();\r
28     static void Destroy();\r
29     static CBC_QRCoderErrorCorrectionLevel* ForBits(int32_t bits);\r
30 };\r
31 #endif\r