Initialize Tizen 2.3
[framework/osp/vision.git] / src / FUixVision_QrCodeObjectImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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
19 /**
20  * @file     FUixVision_QrCodeObjectImpl.h
21  * @brief    This is the header file for the %Tizen::Uix::Vision::_QrCodeObjectImpl class.
22  */
23
24 #ifndef _FUIX_VISION_INTERNAL_QR_CODE_RECOGNITION_INFO_IMPL_H_
25 #define _FUIX_VISION_INTERNAL_QR_CODE_RECOGNITION_INFO_IMPL_H_
26
27 #include <FUixVisionQrCodeObject.h>
28 #include <FBase.h>
29 #include <FGraphics.h>
30 #include "QRCodeRecognitionInfo.h"
31
32 namespace Tizen { namespace Uix { namespace Vision
33 {
34
35 class _QrCodeObjectImpl
36 {
37 public:
38     _QrCodeObjectImpl(void);
39     ~_QrCodeObjectImpl(void);
40
41
42     int GetId(void) const;
43     unsigned char GetVersion(void) const;
44     Tizen::Uix::Vision::QrCodeErrorCorrectionLevel GetErrorCorrectionLevel(void);
45     Tizen::Base::String GetText(void) const;
46     const Tizen::Graphics::FloatMatrix4* GetTransformMatrix(void) const;
47     const Tizen::Base::Collection::ArrayListT<Tizen::Graphics::FloatPoint>* GetRectangle(void) const;
48     void SetSariPointer(const sari2::QRCodeRecognitionInfo& sari);
49
50 public:
51     static Tizen::Uix::Vision::QrCodeObject* CreateQRCodeObjectStorageN(const unsigned int size);
52     static Tizen::Uix::Vision::QrCodeObject* CreateQRCodeObjectN();
53     static void ReleaseQrCodeObject(QrCodeObject* pQrCodeObject);
54     static void ReleaseQrCodeObjectArray(QrCodeObject* pQrCodeObject);
55     static _QrCodeObjectImpl* GetInstance(QrCodeObject* pQrObject);
56     static const _QrCodeObjectImpl* GetInstance(const QrCodeObject* pQrObject);
57
58 private:
59
60     Tizen::Uix::Vision::QrCodeErrorCorrectionLevel                    __qrCodeErrorCorrectionLevel;
61     sari2::QRCodeRecognitionInfo                                      __qrCodeObject;
62     Tizen::Base::Collection::ArrayListT<Tizen::Graphics::FloatPoint>* __pRectangleList;
63     Tizen::Graphics::FloatMatrix4*                                    __Matrix;
64
65 };
66
67 } } } //Tizen::Uix::Vision
68
69 #endif //_FUIX_VISION_INTERNAL_QR_CODE_OBJECT_IMPL_H_