QBarcode
Loading...
Searching...
No Matches
qrcode.h
1#ifndef QBARCODE_QRCODE_H
2#define QBARCODE_QRCODE_H
3
4#include "qbarcode/datas/barcode.h"
5
6/*****************************/
7/* Namespace instructions */
8/*****************************/
9
10namespace qbar
11{
12
13/*****************************/
14/* Class definitions */
15/*****************************/
16
17class QrCodePrivate;
18class QBAR_EXPORT QrCode : public Barcode
19{
20 QBAR_DISABLE_COPY(QrCode)
21
22public:
23 QrCode();
24 QrCode(QrCode &&other) noexcept;
25 QrCode &operator=(QrCode &&) noexcept;
26
27 virtual ~QrCode();
28
29public:
30 QrLevelEcc getIdLevelEcc() const;
31 int getVersion() const;
32
33public:
34 virtual QSizeF getRatio() const override;
35
36private:
37 Q_DECLARE_PRIVATE(QrCode)
38
39public:
40 static constexpr int VERSION_MIN = 1;
41 static constexpr int VERSION_MAX = 40;
43public:
44 static QrCode create(const Payload &payload, QrLevelEcc idLevel);
45};
46
47/*****************************/
48/* Qt specific methods */
49/*****************************/
50
51QBAR_EXPORT QDebug operator<<(QDebug debug, const QrCode &qrcode);
52
53/*****************************/
54/* Alias for related types */
55/*****************************/
56
57/*****************************/
58/* End namespaces */
59/*****************************/
60
61} // namespace qbar
62
63/*****************************/
64/* Qt specific meta-system */
65/*****************************/
66
67#endif // QBARCODE_QRCODE_H
Represent a barcode entity.
Definition barcode.h:23
Store data of a Barcode.
Definition payload.h:23
Represent a QrCode entity.
Definition qrcode.h:19
Namespace used for QWlanManager library.
Definition barcode.h:15
QrLevelEcc
Qrcode level of errors correction capability (ECC).
Definition qbartypes.h:96