Merge to XFA: Kill CFX_Object.
[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     FX_INT32 m_ordinal;\r
13     FX_INT32 m_bits;\r
14     CFX_ByteString m_name;\r
15     CBC_QRCoderErrorCorrectionLevel(FX_INT32 ordinal, FX_INT32 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     FX_INT32 Ordinal();\r
26     FX_INT32 GetBits();\r
27     CFX_ByteString GetName();\r
28     static void Destroy();\r
29     static CBC_QRCoderErrorCorrectionLevel* ForBits(FX_INT32 bits);\r
30 };\r
31 #endif\r