summaryrefslogtreecommitdiff
path: root/fxbarcode/qrcode/BC_QRCoderECBlocks.h
diff options
context:
space:
mode:
Diffstat (limited to 'fxbarcode/qrcode/BC_QRCoderECBlocks.h')
-rw-r--r--fxbarcode/qrcode/BC_QRCoderECBlocks.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/fxbarcode/qrcode/BC_QRCoderECBlocks.h b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
index bf4f76dc84..4ea7a7abd5 100644
--- a/fxbarcode/qrcode/BC_QRCoderECBlocks.h
+++ b/fxbarcode/qrcode/BC_QRCoderECBlocks.h
@@ -11,24 +11,21 @@
#include "core/fxcrt/fx_basic.h"
-class CBC_QRCoderECB;
+struct CBC_QRCoderECBlockData;
class CBC_QRCoderECBlocks {
public:
- CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock, CBC_QRCoderECB* ecBlocks);
- CBC_QRCoderECBlocks(int32_t ecCodeWordsPerBlock,
- CBC_QRCoderECB* ecBlocks1,
- CBC_QRCoderECB* ecBlocks2);
+ explicit CBC_QRCoderECBlocks(const CBC_QRCoderECBlockData& data);
~CBC_QRCoderECBlocks();
- int32_t GetECCodeWordsPerBlock() const;
int32_t GetNumBlocks() const;
int32_t GetTotalECCodeWords() const;
- std::vector<CBC_QRCoderECB*>* GetECBlocks();
+ int32_t GetTotalDataCodeWords() const;
private:
- int32_t m_ecCodeWordsPerBlock;
- std::vector<CBC_QRCoderECB*> m_ecBlocksArray;
+ int32_t GetECCodeWordsPerBlock() const;
+
+ const CBC_QRCoderECBlockData& m_data;
};
#endif // FXBARCODE_QRCODE_BC_QRCODERECBLOCKS_H_