Prison

code128barcode.h
1 /*
2  SPDX-FileCopyrightText: 2018 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: MIT
5 */
6 
7 #ifndef PRISON_CODE128BARCODE_H
8 #define PRISON_CODE128BARCODE_H
9 
10 #include "abstractbarcode.h"
11 
12 class Code128BarcodeTest;
13 
14 namespace Prison
15 {
16 class BitVector;
17 
18 /** Code 128 barcode
19  * @see https://en.wikipedia.org/wiki/Code_128
20  */
22 {
23 public:
25  ~Code128Barcode() override;
26 
27 protected:
28  QImage paintImage(const QSizeF &size) override;
29 
30 private:
31  friend class ::Code128BarcodeTest;
32  BitVector encode(const QByteArray &data) const;
33 };
34 
35 }
36 
37 #endif // PRISON_CODE128BARCODE_H
QImage paintImage(const QSizeF &size) override
Doing the actual painting of the image.
base class for barcode generators To add your own barcode generator, subclass this class and reimplem...
QString data() const
Textual content encoded in this barcode.
Code 128 barcode.
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.