Tizen 2.2.1
[framework/osp/web.git] / src / FWeb_HistoryItemImpl.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                FWeb_HistoryItemImpl.h
20  * @brief               The file contains the declaration of _HistoryItemImpl class.
21  *
22  * The file contains the declaration of _HistoryItemImpl class.
23  */
24 #ifndef _FWEB_INTERNAL_HISTORY_ITEM_IMPL_H_
25 #define _FWEB_INTERNAL_HISTORY_ITEM_IMPL_H_
26
27 #include <FBaseString.h>
28
29 namespace Tizen { namespace Web { namespace Controls
30 {
31 class _WebImpl;
32 }}} // Tizen::Web::Controls
33
34 namespace Tizen { namespace Web
35 {
36 class HistoryItem;
37
38
39 class _HistoryItemImpl
40         : public Tizen::Base::Object
41 {
42 public:
43         _HistoryItemImpl(void);
44
45         virtual ~_HistoryItemImpl(void);
46
47         void SetHistoryItem(const Tizen::Base::String& url, const Tizen::Base::String& title, int id = -1);
48
49         Tizen::Base::String GetTitle(void) const;
50
51         Tizen::Base::String GetUrl(void) const;
52
53         Tizen::Graphics::Bitmap* GetFaviconN(void) const;
54
55         static _HistoryItemImpl* GetInstance(HistoryItem* pHistoryItem);
56
57         static const _HistoryItemImpl* GetInstance(const HistoryItem* pHistoryItem);
58
59 private:
60         int __id;
61
62         Tizen::Base::String __url;
63
64         Tizen::Base::String __title;
65 }; // _HistoryItemImpl
66
67 }} // Tizen::Web
68 #endif // _FWEB_INTERNAL_HISTORY_ITEM_IMPL_H_