2 // Open Service Platform
3 // Copyright (c) 2012-2013 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 * @file FUi_VariantImpl.h
19 * @brief This is the header file for the _VariantImpl class.
21 * This header file contains declarations of the _VariantImpl class. @n
23 #ifndef _FUI_VARIANT_IMPL_H_
24 #define _FUI_VARIANT_IMPL_H_
26 #include <FUiVariant.h>
28 namespace Tizen { namespace Ui
34 unsigned int valueUInt;
39 unsigned long valueULong;
40 long long valueLongLong;
41 unsigned long long valueULongLong;
42 Tizen::Base::String* pString;
43 Tizen::Base::DateTime* pDateTime;
44 Tizen::Graphics::Color* pColor;
45 Tizen::Graphics::Point* pPoint;
46 Tizen::Graphics::FloatPoint* pFloatPoint;
47 Tizen::Graphics::Rectangle* pRect;
48 Tizen::Graphics::FloatRectangle* pRectf;
49 Tizen::Graphics::Dimension* pDimension;
50 Tizen::Graphics::FloatDimension* pFloatDimension;
51 Tizen::Graphics::FloatMatrix4* pFloatMatrix4;
55 : public Tizen::Base::Object
61 virtual ~_VariantImpl(void);
67 * Deallocates an internal buffer.
74 * Copy an internal buffer.
77 * @param[in] value Variant value
79 void Copy(const Variant& rhs);
82 * Deallocates an internal buffer.
85 * @param[in] type VariantType
87 void SetVariantType(VariantType type);
90 * Check if the type is same
93 * @param[in] type VariantType
95 bool IsSameType(VariantType type) const;
98 * This is the copy constructor for this class.
101 _VariantImpl(const _VariantImpl&);
104 * This is the assignment operator for this class.
108 _VariantImpl& operator =(const _VariantImpl&);
114 friend class Variant;
119 #endif //_FUI_VARIANT_IMPL_H_