2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FWebCtrl_HitElementResultImpl.h
20 * @brief The file contains the declaration of _HitElementResultImpl class.
22 * The file contains the declaration of _HitElementResultImpl class.
24 #ifndef _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_
27 #include <unique_ptr.h>
28 #include <FBaseColAllElementsDeleter.h>
29 #include <FBaseColIMap.h>
30 #include <FBaseString.h>
32 namespace Tizen { namespace Graphics
37 namespace Tizen { namespace Web { namespace Controls
39 class HitElementResult;
42 class _HitElementResultImpl
43 : public Tizen::Base::Object
46 _HitElementResultImpl(void);
48 virtual ~_HitElementResultImpl(void);
50 void SetHitElementResult(Tizen::Base::Collection::IMap* pAttributeMap, Tizen::Graphics::Bitmap* pImage, const Tizen::Base::String& tagName, const Tizen::Base::String& content, const Tizen::Base::String& url);
52 Tizen::Base::String GetAttributeValue(const Tizen::Base::String& attributeName) const;
54 Tizen::Base::String GetContent(void) const;
56 const Tizen::Graphics::Bitmap* GetImage(void) const;
58 Tizen::Base::String GetTagName(void) const;
60 Tizen::Base::String GetUrl(void) const;
62 bool HasImage(void) const;
64 bool HasUrl(void) const;
66 static _HitElementResultImpl* GetInstance(HitElementResult* pHitElementResult);
68 static const _HitElementResultImpl* GetInstance(const HitElementResult* pHitElementResult);
71 _HitElementResultImpl(_HitElementResultImpl& hitElementResultImpl);
73 _HitElementResultImpl& operator =(const _HitElementResultImpl& hitElementResultImpl);
76 std::unique_ptr<Tizen::Base::Collection::IMap, Tizen::Base::Collection::AllElementsDeleter> __pAttributeMap;
78 std::unique_ptr<Tizen::Graphics::Bitmap> __pImage;
80 Tizen::Base::String __content;
82 Tizen::Base::String __tagName;
84 Tizen::Base::String __url;
85 }; // _HitElementResultImpl
87 }}} // Tizen::Web::Controls
88 #endif // _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_