File indexing completed on 2024-05-12 15:49:08
0001 /* 0002 SPDX-FileCopyrightText: 2018 Volker Krause <vkrause@kde.org> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef PRISON_CODE128BARCODE_H 0008 #define PRISON_CODE128BARCODE_H 0009 0010 #include "abstractbarcode.h" 0011 0012 class Code128BarcodeTest; 0013 0014 namespace Prison 0015 { 0016 class BitVector; 0017 0018 /** Code 128 barcode 0019 * @see https://en.wikipedia.org/wiki/Code_128 0020 */ 0021 class Code128Barcode : public AbstractBarcode 0022 { 0023 public: 0024 Code128Barcode(); 0025 ~Code128Barcode() override; 0026 0027 protected: 0028 QImage paintImage(const QSizeF &size) override; 0029 0030 private: 0031 friend class ::Code128BarcodeTest; 0032 BitVector encode(const QByteArray &data) const; 0033 }; 0034 0035 } 0036 0037 #endif // PRISON_CODE128BARCODE_H