adding new popups for indexeddb, app cache and FS access request
[framework/osp/web.git] / src / controls / FWebCtrl_HitElementResultImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 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  * @file                FWebCtrl_HitElementResultImpl.h
20  * @brief               The file contains the declaration of _HitElementResultImpl class.
21  *
22  * The file contains the declaration of _HitElementResultImpl class.
23  */
24 #ifndef _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_
26
27 #include <unique_ptr.h>
28 #include <FBaseColAllElementsDeleter.h>
29 #include <FBaseColIMap.h>
30 #include <FBaseString.h>
31
32 namespace Tizen { namespace Graphics
33 {
34 class Bitmap;
35 }} // Tizen::Graphics
36
37 namespace Tizen { namespace Web { namespace Controls
38 {
39 class HitElementResult;
40
41
42 class _HitElementResultImpl
43         : public Tizen::Base::Object
44 {
45 public:
46         _HitElementResultImpl(void);
47
48         virtual ~_HitElementResultImpl(void);
49
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);
51
52         Tizen::Base::String GetAttributeValue(const Tizen::Base::String& attributeName) const;
53
54         Tizen::Base::String GetContent(void) const;
55
56         const Tizen::Graphics::Bitmap* GetImage(void) const;
57
58         Tizen::Base::String GetTagName(void) const;
59
60         Tizen::Base::String GetUrl(void) const;
61
62         bool HasImage(void) const;
63
64         bool HasUrl(void) const;
65
66         static _HitElementResultImpl* GetInstance(HitElementResult* pHitElementResult);
67
68         static const _HitElementResultImpl* GetInstance(const HitElementResult* pHitElementResult);
69
70 private:
71         _HitElementResultImpl(_HitElementResultImpl& hitElementResultImpl);
72
73         _HitElementResultImpl& operator =(const _HitElementResultImpl& hitElementResultImpl);
74
75 private:
76         std::unique_ptr<Tizen::Base::Collection::IMap, Tizen::Base::Collection::AllElementsDeleter> __pAttributeMap;
77
78         std::unique_ptr<Tizen::Graphics::Bitmap> __pImage;
79
80         Tizen::Base::String __content;
81
82         Tizen::Base::String __tagName;
83
84         Tizen::Base::String __url;
85 }; // _HitElementResultImpl
86
87 }}} // Tizen::Web::Controls
88 #endif // _FWEB_CTRL_INTERNAL_HIT_ELEMENT_RESULT_IMPL_H_