sync with master
[framework/osp/vision.git] / src / QRCodeTypes.h
1 #ifndef QRCODETYPES_H
2 #define QRCODETYPES_H
3
4 namespace sari2
5 {
6
7 /// \brief Enumeration that defines possible error correction levels for QR code
8 enum QRCodeErrorCorrectionLevel
9 {
10     QR_ECL_L = 1,
11     QR_ECL_M = 2,
12     QR_ECL_Q = 3,
13     QR_ECL_H = 4
14 };
15
16 /// \brief Enumeration that defines possible encoding modes for QR code
17 enum QRCodeMode
18 {
19     QR_MODE_ALPHANUMERIC = 0,
20     QR_MODE_BYTE = 1,
21     QR_MODE_UTF8 = 2
22 };
23
24 enum QRCodeMessageType
25 {
26     QR_MESSAGE_NULL = -1,
27     QR_MESSAGE_TEXT = 0,
28     QR_MESSAGE_PHONE = 1,
29     QR_MESSAGE_SMS = 2,
30     QR_MESSAGE_EMAIL = 3,
31     QR_MESSAGE_CONTACT = 4,
32     QR_MESSAGE_URL = 5,
33     QR_MESSAGE_EVENT = 6,
34     QR_MESSAGE_LOCATION = 7,
35     QR_MESSAGE_WIFI = 8
36 };
37
38 }
39
40 #endif // QRCODETYPES_H