File indexing completed on 2024-05-12 04:01:31

0001 /*
0002     SPDX-FileCopyrightText: 2010-2016 Sune Vuorela <sune@vuorela.dk>
0003 
0004     SPDX-License-Identifier: MIT
0005 */
0006 
0007 #ifndef PRISON_DATAMATRIXBARCODE_H
0008 #define PRISON_DATAMATRIXBARCODE_H
0009 
0010 #include "abstractbarcode_p.h"
0011 #include "prison_export.h"
0012 
0013 namespace Prison
0014 {
0015 /**
0016  * This is a Datamatrix barcode generator that uses libdmtx
0017  * for the actual generation of barcodes.
0018  */
0019 class DataMatrixBarcode : public Prison::AbstractBarcodePrivate
0020 {
0021 public:
0022     /**
0023      * creates a datamatrixbarcode generator
0024      */
0025     DataMatrixBarcode();
0026     ~DataMatrixBarcode() override;
0027 
0028 protected:
0029     /**
0030      * This is the function doing the actual work in generating the barcode
0031      * @return QImage containing a DataMatrix, trying to approximate the requested sizes
0032      */
0033     QImage paintImage() override;
0034 };
0035 }
0036 
0037 #endif // PRISON_DATAMATRIXBARCODE_H