#include "browser_config.h"
-#include <vector>
-#include <boost/signals2/signal.hpp>
-#include <Evas.h>
-
#include "AbstractService.h"
#include "service_macros.h"
#include "BookmarkItem.h"
std::shared_ptr<tizen_browser::tools::BrowserImage> thumbnail=std::shared_ptr<tizen_browser::tools::BrowserImage>(),
std::shared_ptr<tizen_browser::tools::BrowserImage> favicon = std::shared_ptr<tizen_browser::tools::BrowserImage>(),
unsigned int dirId = 0) = 0;
- /**
+ /**
+ * @brief Creates a new folder with name "title" in a folder with id, parent_id
+ * @return folder_id of created folder
+ */
+ virtual int save_folder(const char *title, int *saved_bookmark_id, int parent_id=0, int by_operator=0)=0;
+
+ /**
+ * @brief get folder id of a folder with name "title" in folder with id, parent_id
+ * @return true if found, false otherwise
+ */
+ virtual bool get_folder_id(const char *title, int parent_id, int *folder_id) = 0 ;
+
+ /**
* @brief Count bookmarks and subfolders
* @return Number of bookmarks and subfolders
*/
virtual bool bookmarkExists(const std::string & url)= 0;
/**
- * @brief Get bookmarks from platform service and store it in private m_bookmarksList
+ * @brief Get bookmarks in a folder from platform service and store it in private m_bookmarksList
+ *
+ * @return list of bookmark items in folder with id, folder_id
+ */
+ virtual std::vector<std::shared_ptr<tizen_browser::services::BookmarkItem> > getBookmarks(int folder_id = 0)= 0;
+
+ /**
+ * @brief Get bookmark folders from platform service and store it in private m_bookmarkFoldersList
*
- * @return list of bookmark items
+ * @return list of bookmark folders
*/
- virtual std::vector<std::shared_ptr<tizen_browser::services::BookmarkItem> > getBookmarks()= 0;
+ virtual std::vector<std::shared_ptr<tizen_browser::services::BookmarkItem> > getBookmarkFolders()= 0;
/**
* @brief Delete all bookmarks