3b50e16757f435efc6380d69940917450348dd92
[platform/framework/native/vision.git] / src / QRCodeTypes.h
1 //
2 // Tizen C++ SDK
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.tizenopensource.org/license
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 #ifndef QRCODETYPES_H
19 #define QRCODETYPES_H
20
21 namespace sari2
22 {
23
24 /// \brief Enumeration that defines possible error correction levels for QR code
25 enum QRCodeErrorCorrectionLevel
26 {
27     QR_ECL_L = 1,
28     QR_ECL_M = 2,
29     QR_ECL_Q = 3,
30     QR_ECL_H = 4
31 };
32
33 /// \brief Enumeration that defines possible encoding modes for QR code
34 enum QRCodeMode
35 {
36     QR_MODE_ALPHANUMERIC = 0,
37     QR_MODE_BYTE = 1,
38     QR_MODE_UTF8 = 2
39 };
40
41 enum QRCodeMessageType
42 {
43     QR_MESSAGE_NULL = -1,
44     QR_MESSAGE_TEXT = 0,
45     QR_MESSAGE_PHONE = 1,
46     QR_MESSAGE_SMS = 2,
47     QR_MESSAGE_EMAIL = 3,
48     QR_MESSAGE_CONTACT = 4,
49     QR_MESSAGE_URL = 5,
50     QR_MESSAGE_EVENT = 6,
51     QR_MESSAGE_LOCATION = 7,
52     QR_MESSAGE_WIFI = 8
53 };
54
55 }
56
57 #endif // QRCODETYPES_H