Prison

qrcodebarcode.h
1 /*
2  SPDX-FileCopyrightText: 2010-2014 Sune Vuorela <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #ifndef PRISON_QRCODEBARCODE_H
8 #define PRISON_QRCODEBARCODE_H
9 
10 #include "abstractbarcode.h"
11 
12 namespace Prison
13 {
14 /**
15  * QRCode Barcode generator ; uses libqrencode to do the actual encoding
16  * of the barcode.
17  */
19 {
20 public:
21  /**
22  * creates a QRCode generator
23  */
24  QRCodeBarcode();
25  ~QRCodeBarcode() override;
26  /**
27  * This is the function doing the actual work in generating the barcode
28  * @return QImage containing a QRCode, trying to approximate the requested sizes
29  * @param size The requested size of the barcode, approximate. if the barcode generator can't get the data to fit in there, it might be a null QImage
30  */
31  QImage paintImage(const QSizeF &size) override;
32 };
33 } // namespace
34 
35 #endif // PRISON_QRCODEBARCODE_H
QImage paintImage(const QSizeF &size) override
This is the function doing the actual work in generating the barcode.
QRCodeBarcode()
creates a QRCode generator
QRCode Barcode generator ; uses libqrencode to do the actual encoding of the barcode.
Definition: qrcodebarcode.h:18
base class for barcode generators To add your own barcode generator, subclass this class and reimplem...
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 04:09:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.