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.
20 * @brief This header file contains the declarations of the BookmarkData class.
24 #ifndef _INT_BOOKMARK_DATA_H_
25 #define _INT_BOOKMARK_DATA_H_
33 * BookmarkType enum is used to define type of bookmark
36 typedef enum BookmarkType
38 BOOKMARK_TYPE_URL = 0,
44 * @brief This is a model class which contains all the properties of Bookmark class
45 * and the methods to get and set the values for those properties
48 : public Tizen::Base::Object
52 * @brief Default constructor
57 *@brief Initialises the instance the class Bookmark with the specified parameter
59 BookmarkData(const BookmarkData& bm);
62 *@brief Default destructor
67 *@brief "=" operator overloading
69 BookmarkData& operator =(const BookmarkData& pBookmark);
72 * This function gets the BookmarkId
77 Tizen::Base::String GetBookmarkId(void);
80 * This function gets the BookmarkTitle
85 Tizen::Base::String GetBookmarkTitle(void);
88 * This function gets the BookmarkType whether FOLDER or URL
93 type GetBookmarkType(void);
96 * This function gets the created time for the bookmark
101 Tizen::Base::DateTime GetCreatedTime(void);
104 * This function gets the FaviconId
107 * @param No parameter
109 Tizen::Base::String GetFaviconId(void);
112 * This function gets the path of the favicon of URL
115 * @param No parameter
117 Tizen::Base::String GetIconPath(void);
120 * This function gets the modified time for the bookmark
123 * @param No parameter
125 Tizen::Base::DateTime GetModifiedTime(void);
128 * This function gets the parentId
131 * @param No parameter
133 Tizen::Base::String GetParentId(void);
136 * This function gets the URL
139 * @param No parameter
141 Tizen::Base::String GetUrl(void);
145 * This function sets the BookmarkId for the bookmark object
147 * @return No return type
148 * @param strBookmarkId The ID for the bookmark object
150 void SetBookmarkId(const Tizen::Base::String& strBookmarkId);
153 * This function sets the BookmarkTitle for the bookmark object
155 * @return No return type
156 * @param strTitle The Title for the bookmark object
158 void SetBookmarkTitle(Tizen::Base::String& strTitle);
160 void SetBookmarkType(type bookmarkType);
163 * This function sets the createdTime for the bookmark object
165 * @return No return type
166 * @param strCreatedTime The createdTime for the bookmark
168 void SetCreatedTime(const Tizen::Base::DateTime& strCreatedTime);
171 * This function sets the faviconid
173 * @return No return type
174 * @param strFaviconId The ID for the favicon object
176 void SetFaviconId(const Tizen::Base::String& strFaviconId);
179 * This function sets the path for the favicon of the bookmark object
181 * @return No return type
182 * @param strFilePath The path for the favicon icon of bookmark
184 void SetIconPath(const Tizen::Base::String& strFilePath);
187 * This function sets the ModifiedTime for the bookmark object
189 * @return No return type
190 * @param strModifiedTime The ModifiedTime for the bookmark
192 void SetModifiedTime(const Tizen::Base::DateTime& strModifiedTime);
195 * This function sets the ParentId for the bookmark object
197 * @return No return type
198 * @param strParentID The parentId for the bookmark object
200 void SetParentId(const Tizen::Base::String& strParentID);
203 * This function sets the URL for the bookmark object
205 * @return No return type
206 * @param strTitle The URL for the bookmark object
208 void SetUrl(const Tizen::Base::String& strUrl);
210 void SetFavIconBitmap(Tizen::Graphics::Bitmap& favIconImage);
212 void SetFavIconBuffer(Tizen::Base::ByteBuffer& favIconBuffer);
214 Tizen::Base::ByteBuffer* GetFavIconBuffer();
216 Tizen::Graphics::Bitmap* GetFavIconBitmap();
218 int GetFavIconWidth();
220 int GetFavIconHeight();
222 void SetFavIconWidth(int favIconWidth);
224 void SetFavIconHeight(int favIconHeight);
226 Tizen::Base::String __bookmarkId;
228 Tizen::Base::String __bookmarkTitle;
229 Tizen::Base::String __bookmarkUrl;
230 Tizen::Base::DateTime __createdTime;
231 Tizen::Base::String __faviconId;
232 Tizen::Base::String __iconPath;
233 Tizen::Base::DateTime __modifiedTime;
234 Tizen::Base::String __parentId;
235 Tizen::Base::ByteBuffer* __pFavIconData;
240 #endif //_INT_BOOKMARK_DATA_H_