Organize barcode codes into modules.
[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 class CBC_QRCoderErrorCorrectionLevel  : public CFX_Object\r
11 {\r
12 private:\r
13     FX_INT32 m_ordinal;\r
14     FX_INT32 m_bits;\r
15     CFX_ByteString m_name;\r
16     CBC_QRCoderErrorCorrectionLevel(FX_INT32 ordinal, FX_INT32 bits, FX_CHAR* name);\r
17     CBC_QRCoderErrorCorrectionLevel();\r
18 public:\r
19     static CBC_QRCoderErrorCorrectionLevel* L;\r
20     static CBC_QRCoderErrorCorrectionLevel* M;\r
21     static CBC_QRCoderErrorCorrectionLevel* Q;\r
22     static CBC_QRCoderErrorCorrectionLevel* H;\r
23     virtual ~CBC_QRCoderErrorCorrectionLevel();\r
24     static void Initialize();\r
25     static void Finalize();\r
26     FX_INT32 Ordinal();\r
27     FX_INT32 GetBits();\r
28     CFX_ByteString GetName();\r
29     static void Destroy();\r
30     static CBC_QRCoderErrorCorrectionLevel* ForBits(FX_INT32 bits);\r
31 };\r
32 #endif\r