File indexing completed on 2024-05-12 04:01:31
0001 /* 0002 SPDX-FileCopyrightText: 2011 Geoffry Song <goffrie@gmail.com> 0003 0004 SPDX-License-Identifier: MIT 0005 */ 0006 0007 #ifndef PRISON_CODE39BARCODE_H 0008 #define PRISON_CODE39BARCODE_H 0009 0010 #include "abstractbarcode_p.h" 0011 0012 namespace Prison 0013 { 0014 /** 0015 * Code 39 Barcode generator 0016 */ 0017 class Code39Barcode : public Prison::AbstractBarcodePrivate 0018 { 0019 public: 0020 /** 0021 * creates a Code 39 generator 0022 */ 0023 Code39Barcode(); 0024 ~Code39Barcode() override; 0025 0026 protected: 0027 /** 0028 * This function generates the barcode 0029 * @return QImage containing a barcode, trying to approximate the requested sizes, or a null QImage if it can't be painted within requested size 0030 */ 0031 QImage paintImage() override; 0032 }; 0033 } // namespace 0034 0035 #endif // PRISON_CODE39BARCODE_H