Tizen 2.2.1
[framework/osp/web.git] / src / FWeb_BookmarkItemImpl.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_BOOKMARK_ITEM_IMPL_H_
25 #define _FWEB_INTERNAL_BOOKMARK_ITEM_IMPL_H_
26
27 #include <FBaseString.h>
28
29 namespace Tizen { namespace Web
30 {
31 class BookmarkItem;
32
33 class _BookmarkItemImpl
34         : public Tizen::Base::Object
35 {
36 public:
37         _BookmarkItemImpl(void);
38
39         virtual ~_BookmarkItemImpl(void);
40
41         void SetBookmarkItem(RecordId id, const Tizen::Base::String& url, const Tizen::Base::String& title, RecordId parentId, bool isFolder);
42
43         Tizen::Base::String GetTitle(void) const;
44
45         Tizen::Base::String GetUrl(void) const;
46
47         Tizen::Graphics::Bitmap* GetFaviconN(void) const;
48
49         RecordId GetParentFolderId(void) const;
50
51         bool IsFolder(void) const;
52
53         virtual int GetHashCode(void) const;
54
55         virtual bool Equals(const Object& obj) const;
56
57         static _BookmarkItemImpl* GetInstance(BookmarkItem* pBookmarkItem);
58
59         static const _BookmarkItemImpl* GetInstance(const BookmarkItem* pBookmarkItem);
60
61 private:
62         bool __isFolder;
63
64         RecordId __id;
65
66         RecordId __parentId;
67
68         Tizen::Base::String __url;
69
70         Tizen::Base::String __title;
71 }; // _BookmarkItemImpl
72
73 }} // Tizen::Web
74 #endif // _FWEB_INTERNAL_BOOKMARK_ITEM_IMPL_H_