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

0001 /*
0002     SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
0003     SPDX-License-Identifier: MIT
0004 */
0005 
0006 #ifndef PRISON_FORMAT_H
0007 #define PRISON_FORMAT_H
0008 
0009 #include "prisonscanner_export.h"
0010 
0011 #include <QFlag>
0012 #include <QMetaType>
0013 
0014 namespace Prison
0015 {
0016 
0017 /**
0018  * Barcode formats detectable by Prison::VideoScanner.
0019  *
0020  * @see Prison::ScanResult.
0021  * @since 5.94
0022  */
0023 namespace Format
0024 {
0025 Q_NAMESPACE_EXPORT(PRISONSCANNER_EXPORT)
0026 /** Barcode formats. */
0027 enum BarcodeFormat {
0028     NoFormat = 0,
0029     Aztec = 1,
0030     Codabar = 2,
0031     Code39 = 4,
0032     Code93 = 8,
0033     Code128 = 16,
0034     DataBar = 32,
0035     DataBarExpanded = 64,
0036     DataMatrix = 128,
0037     EAN8 = 256,
0038     EAN13 = 512,
0039     ITF = 1024,
0040     MaxiCode = 2048,
0041     PDF417 = 4096,
0042     QRCode = 8192,
0043     UPCA = 16384,
0044     UPCE = 32768,
0045 };
0046 Q_ENUM_NS(BarcodeFormat)
0047 
0048 Q_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
0049 Q_FLAG_NS(BarcodeFormats)
0050 Q_DECLARE_OPERATORS_FOR_FLAGS(BarcodeFormats)
0051 }
0052 }
0053 
0054 #endif // PRISON_FORMAT_H