3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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.
22 * @brief This is a model class which contains all the properties of History class
23 * and the methods to get and set the values for those properties
25 * This header file contains the declarations of the History class.
27 #ifndef _INT_HISTORY_DATA_H_
28 #define _INT_HISTORY_DATA_H_
33 #include <FGraphics.h>
42 : public Tizen::Base::Object
51 * Initialises the instance the class History with the specified parameter
53 History(const History& hs);
61 * "=" operator overloading
63 History& operator =(const History& pHistory);
66 * This function is used to get the bookmark id
71 Tizen::Base::String GetBookmarkId(void) const;
74 * This function gets the FaviconId
79 Tizen::Base::String GetFaviconId(void) const;
82 * This function gets the HistoryId
87 Tizen::Base::String GetHistoryId(void) const;
90 * This function gets the path of the favicon of URL
95 Tizen::Base::String GetHistoryIconPath(void) const;
98 * This function gets the HistoryTitle
101 * @param No parameter
103 Tizen::Base::String GetHistoryTitle(void) const;
105 * This function gets the URL
108 * @param No parameter
110 Tizen::Base::String GetHistoryUrl(void) const;
113 * This function is used to get thumbnail
116 * @param No parameter
118 Tizen::Graphics::Bitmap* GetThumbnail(void) const;
120 Tizen::Base::String GetThumbnailPath(void) const;
123 * This function is used to get visited count
125 * @return visited count
126 * @param No parameter
128 int GetVisitedCount(void) const;
131 * This function gets the visited time for the History
134 * @param No parameter
136 Tizen::Base::DateTime GetVisitedTime(void) const;
139 * This function sets history to bookmark or removes the history from bookmarks
141 * @return No return type
142 * @param isBookmark true to add to bookmark, false to remove from bookmark
144 void SetBookmarkId(const Tizen::Base::String& bookmarkId);
147 * This function sets the faviconid
149 * @return No return type
150 * @param strFaviconId The ID for the favicon object
152 void SetFaviconId(const Tizen::Base::String& strFaviconId);
155 * This function sets the HistoryId for the History object
157 * @return No return type
158 * @param strHistoryId The ID for the History object
160 void SetHistoryId(const Tizen::Base::String& strHistoryId);
163 * This function sets the HistoryTitle for the History object
165 * @return No return type
166 * @param strTitle The Title for the History object
168 void SetHistoryTitle(Tizen::Base::String& strHistoryTitle);
171 * This function sets the URL for the History object
173 * @return No return type
174 * @param strTitle The URL for the History object
176 void SetHistoryUrl(const Tizen::Base::String& strHistoryUrl);
179 * This function sets the path for the favicon of the History object
181 * @return No return type
182 * @param strFilePath The path for the favicon icon of History
184 void SetIconPath(const Tizen::Base::String& strFilePath);
187 * This function sets thumbnail of a URL
189 * @return No return type
190 * @param thumbnail to set thumbnail of URL
192 void SetThumbnail(Tizen::Graphics::Bitmap* thumbnail);
195 * This function sets thumbnail path of a URL
197 * @return No return type
198 * @param thumbnailPath to set thumbnail path of URL
200 void SetThumbnailPath(Tizen::Base::String& thumbnailPath);
203 * This function sets the createdTime for the History object
205 * @return No return type
206 * @param strCreatedTime The createdTime for the bookmark
208 void SetVisitedTime(const Tizen::Base::DateTime& strVisitedTime);
211 * This function sets visited count of a URL
213 * @return No return type
214 * @param visitedCount to set visited count of URL
216 void SetVisitedCount(int& visitedCount);
218 void SetFavIconBitmap(Tizen::Graphics::Bitmap& favIconImage);
220 void SetFavIconBuffer(Tizen::Base::ByteBuffer& favIconBuffer);
222 Tizen::Base::ByteBuffer* GetFavIconBuffer();
224 Tizen::Graphics::Bitmap* GetFavIconBitmap();
226 int GetFavIconWidth();
228 int GetFavIconHeight();
230 void SetFavIconWidth(int favIconWidth);
232 void SetFavIconHeight(int favIconHeight);
235 Tizen::Base::String __bookmarkId;
236 Tizen::Base::String __faviconId;
237 Tizen::Base::String __historyId;
238 Tizen::Base::String __historyTitle;
239 Tizen::Base::String __historyUrl;
240 Tizen::Base::String __iconPath;
241 Tizen::Base::String __thumbnailPath;
242 Tizen::Graphics::Bitmap* __pThumbnail;
244 Tizen::Base::DateTime __visitedTime;
245 Tizen::Base::ByteBuffer* __pFavIconData;
250 #endif //_INT_HISTORY_DATA_H_