3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://floralicense.org/license
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.
18 #ifndef QRCODERECOGNITIONINFO_H
19 #define QRCODERECOGNITIONINFO_H
21 #include "QRCodeTypes.h"
26 class QRCodeRecognitionInfo
29 friend class QRCodeRecognizer;
32 QRCodeRecognitionInfo();
33 ~QRCodeRecognitionInfo();
34 QRCodeRecognitionInfo(const QRCodeRecognitionInfo&);
35 QRCodeRecognitionInfo& operator=(const QRCodeRecognitionInfo&);
37 inline unsigned char id() const { return mId; }
39 inline unsigned char version() const { return mVersion; }
41 inline QRCodeErrorCorrectionLevel errorCorrectionLevel() const { return mErrorCorrectionLevel; }
43 inline const char* text() const { return mText; }
45 inline const float* transform() const { return mTransform; }
47 void rectangle(float *coordinates) const;
52 unsigned char mVersion;
53 QRCodeErrorCorrectionLevel mErrorCorrectionLevel;
56 const float *mLeft, *mRight;
60 #endif // QRCODERECOGNITIONINFO_H