File indexing completed on 2024-05-12 15:49:08
0001 /* 0002 SPDX-FileCopyrightText: 2011 Geoffry Song <goffrie@gmail.com> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef PRISON_CODE93BARCODE_H 0008 #define PRISON_CODE93BARCODE_H 0009 0010 #include "abstractbarcode.h" 0011 0012 namespace Prison 0013 { 0014 /** 0015 * Code 93 Barcode generator 0016 */ 0017 class Code93Barcode : public Prison::AbstractBarcode 0018 { 0019 public: 0020 /** 0021 * creates a Code 93 generator 0022 */ 0023 Code93Barcode(); 0024 ~Code93Barcode() override; 0025 /** 0026 * This function generates the barcode 0027 * @return QImage containing a barcode, trying to approximate the requested sizes 0028 * @param size The requested size of the barcode, approximate. if the barcode generator can't generate it, it can return a null QImage 0029 */ 0030 QImage paintImage(const QSizeF &size) override; 0031 }; 0032 } // namespace 0033 0034 #endif // PRISON_CODE39BARCODE_H