Go to file
luzhiping fbfb5cafb3 update info 2022-08-22 16:56:18 +08:00
.reuse Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
LICENSES Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
autotests Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
cmake Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
debian update info 2022-08-22 16:56:18 +08:00
docs Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
src Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
tests Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
.git-blame-ignore-revs Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
.gitignore Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
.gitlab-ci.yml Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
.kde-ci.yml Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
CMakeLists.txt Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
KF5PrisonConfig.cmake.in Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
Mainpage.dox Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
README.md Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00
metainfo.yaml Import Upstream version 5.92.0 2022-05-16 16:30:20 +08:00

README.md

Prison

A barcode abstraction layer providing uniform access to generation of barcodes with data

Introduction

Prison has a Prison::AbstractBarcode, which is the base class for the actual barcode generators, currently Prison::QRCodeBarcode and Prison::DataMatrixBarcode are the two implemented barcode generators.

Prison currently ships a BarcodeWidget, which is a QWidget with a barcode painted upon, as well as a BarcodeItem, which is a QGraphicsItem with a barcode painted upon.

Supported Barcode types

There are basically two types of barcodes:

  • barcodes that carry the data
  • barcodes that carry a lookup number, and require a specific server to look up the actual data.

Prison isn't as such designed for the latter, it will probably work, but patches implementing barcode support for such barcodes will not be accepted. An example is EZCode.

Prison is currently using libdmtx for generation of DataMatrix barcodes and libqrencode for generation of QRCode barcodes.