3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
5 // Licensed under the Flora License, Version 1.0 (the License);
\r
6 // you may not use this file except in compliance with the License.
\r
7 // You may obtain a copy of the License at
\r
9 // http://floralicense.org/license/
\r
11 // Unless required by applicable law or agreed to in writing, software
\r
12 // distributed under the License is distributed on an AS IS BASIS,
\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 // See the License for the specific language governing permissions and
\r
15 // limitations under the License.
\r
19 /*@file: IntHistory.cpp
\r
20 *@brief: Used to define History
\r
23 #include "IntHistoryData.h"
\r
25 using namespace Tizen::App;
\r
26 using namespace Tizen::Base;
\r
27 using namespace Tizen::Base::Collection;
\r
28 using namespace Tizen::Base::Utility;
\r
29 using namespace Tizen::Content;
\r
30 using namespace Tizen::Graphics;
\r
31 using namespace Tizen::Io;
\r
32 using namespace Tizen::System;
\r
33 using namespace Tizen::Locales;
\r
34 using namespace Tizen::Media;
\r
35 using namespace Tizen::Ui;
\r
36 using namespace Tizen::Ui::Controls;
\r
38 History::History(void)
\r
40 , __historyTitle("")
\r
46 , __pThumbnail(null)
\r
47 , __thumbnailPath("")
\r
49 AppLog("History::History(void)");
\r
50 __visitedTime.SetValue(0,0,0);
\r
53 History::History(const History& hs)
\r
55 AppLog("History::History(const History& hs)");
\r
56 __historyId = hs.__historyId;
\r
57 __historyTitle = hs.__historyTitle;
\r
58 __historyUrl = hs.__historyUrl;
\r
61 History::~History(void)
\r
63 if(__pThumbnail != null)
\r
65 delete __pThumbnail; //TODO To get this reviewed
\r
67 AppLog("History::~History()");
\r
71 History::operator =(const History& rhs)
\r
75 __historyId = rhs.__historyId;
\r
76 __historyTitle = rhs.__historyTitle;
\r
77 __historyUrl = rhs.__historyUrl;
\r
83 History::GetHistoryId(void) const
\r
89 History::GetHistoryTitle(void) const
\r
91 return __historyTitle;
\r
95 History::GetHistoryUrl(void) const
\r
97 return __historyUrl;
\r
101 History::GetVisitedTime(void) const
\r
103 return __visitedTime;
\r
107 History::GetHistoryIconPath(void) const
\r
113 History::GetFaviconId(void) const
\r
115 return __faviconId;
\r
119 History::GetBookmarkId(void) const
\r
121 return __bookmarkId;
\r
125 History::GetVisitedCount(void) const
\r
127 return __visitedCount;
\r
131 History::GetThumbnail(void) const
\r
133 return __pThumbnail;
\r
137 History::GetThumbnailPath(void) const
\r
139 return __thumbnailPath;
\r
143 History::SetHistoryId(const String& strHistoryId)
\r
145 __historyId = strHistoryId;
\r
150 History::SetHistoryTitle(String& strHistoryTitle)
\r
152 strHistoryTitle.Trim();
\r
153 __historyTitle = strHistoryTitle;
\r
158 History::SetHistoryUrl(const String& strHistoryUrl)
\r
160 __historyUrl = strHistoryUrl;
\r
165 History::SetVisitedTime(const DateTime& strVisitedTime)
\r
167 __visitedTime = strVisitedTime;
\r
172 History::SetIconPath(const String& strFilePath)
\r
174 __iconPath = strFilePath;
\r
179 History::SetFaviconId(const String& strFaviconId)
\r
181 __faviconId = strFaviconId;
\r
185 History::SetBookmarkId(const String& bookmarkId)
\r
187 __bookmarkId = bookmarkId;
\r
191 History::SetVisitedCount(int& visitedCount)
\r
193 __visitedCount = visitedCount;
\r
197 History::SetThumbnail(Bitmap* thumbnail)
\r
199 //TODO To get this reviewed
\r
200 if(__pThumbnail != thumbnail && __pThumbnail != null) {
\r
201 delete __pThumbnail;
\r
203 __pThumbnail = thumbnail;
\r
207 History::SetThumbnailPath(String& thumbnailPath)
\r
209 __thumbnailPath = thumbnailPath;
\r