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);
161 * This function sets the createdTime for the bookmark object
163 * @return No return type
164 * @param strCreatedTime The createdTime for the bookmark
166 void SetCreatedTime(const Tizen::Base::DateTime& strCreatedTime);
169 * This function sets the faviconid
171 * @return No return type
172 * @param strFaviconId The ID for the favicon object
174 void SetFaviconId(const Tizen::Base::String& strFaviconId);
177 * This function sets the path for the favicon of the bookmark object
179 * @return No return type
180 * @param strFilePath The path for the favicon icon of bookmark
182 void SetIconPath(const Tizen::Base::String& strFilePath);
185 * This function sets the ModifiedTime for the bookmark object
187 * @return No return type
188 * @param strModifiedTime The ModifiedTime for the bookmark
190 void SetModifiedTime(const Tizen::Base::DateTime& strModifiedTime);
193 * This function sets the ParentId for the bookmark object
195 * @return No return type
196 * @param strParentID The parentId for the bookmark object
198 void SetParentId(const Tizen::Base::String& strParentID);
201 * This function sets the URL for the bookmark object
203 * @return No return type
204 * @param strTitle The URL for the bookmark object
206 void SetUrl(const Tizen::Base::String& strUrl);
209 Tizen::Base::String __bookmarkId;
211 Tizen::Base::String __bookmarkTitle;
212 Tizen::Base::String __bookmarkUrl;
213 Tizen::Base::DateTime __createdTime;
214 Tizen::Base::String __faviconId;
215 Tizen::Base::String __iconPath;
216 Tizen::Base::DateTime __modifiedTime;
217 Tizen::Base::String __parentId;
220 #endif //_INT_BOOKMARK_DATA_H_