Add the web_bookmark_product.h 48/94048/2 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen/3.0/common/20161114.081539 accepted/tizen/3.0/ivi/20161102.080256 accepted/tizen/3.0/mobile/20161102.080222 accepted/tizen/3.0/tv/20161102.080236 accepted/tizen/common/20161027.124414 accepted/tizen/ivi/20161102.235553 accepted/tizen/mobile/20161102.235526 accepted/tizen/tv/20161102.235531 accepted/tizen/unified/20170309.035214 submit/tizen/20161102.065843 submit/tizen_3.0/20161102.064626 submit/tizen_3.0_common/20161110.084657 submit/tizen_common/20161027.085026 submit/tizen_common/20161102.044904 submit/tizen_ivi/20161027.085050 submit/tizen_mobile/20161027.084910 submit/tizen_mobile/20161027.084938 submit/tizen_mobile/20161102.044846 submit/tizen_tv/20161027.084848 submit/tizen_tv/20161027.085006 submit/tizen_tv/20161102.044731 submit/tizen_tv/20161102.044820 submit/tizen_unified/20170308.100411
authorHyeKyoung Hwang <cookie@samsung.com>
Thu, 27 Oct 2016 02:54:21 +0000 (11:54 +0900)
committerHyeKyoung Hwang <cookie@samsung.com>
Thu, 27 Oct 2016 08:15:14 +0000 (17:15 +0900)
[ Problem] There is missing the web_bookmark_product.h
[ Soultion ] Add the API into web_bookmark_product.h

Change-Id: I684dbab32fc39800106568bed015ca93240d0238
Signed-off-by: HyeKyoung Hwang <cookie@samsung.com>
bookmark-adaptor/CMakeLists.txt
bookmark-adaptor/include/bookmark-adaptor.h
bookmark-adaptor/include/web_bookmark_product.h [new file with mode: 0755]
packaging/browser-provider.spec

index ef88c9fa57589b93b5a4b8f173f4fc2fe5a5bae4..a21d39c696ec3b9d4da877bf756a0849dd705c2a 100755 (executable)
@@ -46,6 +46,7 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION 0)
 
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/web_bookmark.h DESTINATION ${INCLUDE_INSTALL_DIR}/web)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/web_bookmark_product.h DESTINATION ${INCLUDE_INSTALL_DIR}/web)
 CONFIGURE_FILE(${PROJECT_NAME}.pc.in ${PROJECT_NAME}.pc @ONLY)
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/bookmark-adaptor.h DESTINATION ${INCLUDE_INSTALL_DIR}/web)
index 532c6a3af19b9648eb4ba610730461c7e20cc63b..d80b3afc2cb6f6d6f576422fdea6f518b2ad25e1 100755 (executable)
@@ -18,5 +18,6 @@
 #define __TIZEN_WEB_BOOKMARK_ADAPTOR_H__
 
 #include <web_bookmark.h>
+#include <web_bookmark_product.h>
 
 #endif /* __TIZEN_WEB_BOOKMARK_ADAPTOR_H__ */
diff --git a/bookmark-adaptor/include/web_bookmark_product.h b/bookmark-adaptor/include/web_bookmark_product.h
new file mode 100755 (executable)
index 0000000..f8e0d1d
--- /dev/null
@@ -0,0 +1,166 @@
+/*
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_WEB_BOOKMARK_PRODUCT_H__
+#define __TIZEN_WEB_BOOKMARK_PRODUCT_H__
+
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+ * @file web_bookmark_product.h
+ */
+
+typedef struct {
+       bp_bookmark_info_fmt base_bookmark_info;
+       int is_private;
+       char *sync_extra;
+} bp_bookmark_ext_info_fmt;
+
+/**
+ * @internal
+ * @addtogroup CAPI_WEB_BOOKMARK_MODULE
+ * @{
+ */
+
+/**
+ * @brief Gets an id array and the number of rows of all items with deleted items from the storage.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks Allocated memory (ids) has to be released by caller.
+ * @param[out] ids  Id array
+ * @param[out] count  The size of array
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ */
+EXPORT_API int bp_bookmark_adaptor_get_full_with_deleted_ids_p(int **ids, int *count);
+
+/**
+ * @brief Gets an id array and the number of rows of all modified items from the storage.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks Allocated memory (ids) has to be released by caller.
+ * @param[out] ids  Id array
+ * @param[out] count  The size of array
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ */
+EXPORT_API int bp_bookmark_adaptor_get_dirty_ids_p(int **ids, int *count);
+
+/**
+ * @brief Gets an id array and the number of rows of all deleted items from the storage.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks Allocated memory (ids) has to be released by caller.
+ * @param[out] ids  Id array
+ * @param[out] count  The size of array
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ */
+EXPORT_API int bp_bookmark_adaptor_get_deleted_ids_p(int **ids, int *count);
+
+/**
+ * @brief Commits all modified bookmarks.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @details Clears "is_dirty" property of each items.
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ */
+EXPORT_API int bp_bookmark_adaptor_clear_dirty_ids(void);
+
+/**
+ * @brief Deletes all bookmarks having set is_deleted property from the storage.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @details If cloud is on, "is_dirty" property is off by calling delete function \n
+ *                     if cloud is off, a bookmark is deleted really from storage whenever calling delete function.
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ */
+EXPORT_API int bp_bookmark_adaptor_clear_deleted_ids(void);
+
+/**
+ * @brief Gets an extra property for sync of an item with the given id.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks Allocated string memory has to be released by caller.
+ * @param[in] id  Id of an item
+ * @param[out] value  String
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ * @see bp_bookmark_adaptor_set_sync()
+ */
+EXPORT_API int bp_bookmark_adaptor_get_sync(const int id, char **value);
+
+/**
+ * @brief Sets an extra property for sync of an item with the given id.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @param[in] id  Id of an item
+ * @param[in] value  String
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ * @exception BP_BOOKMARK_ERROR_PERMISSION_DENY Permission denied by insufficient privilege
+ * @see bp_bookmark_adaptor_get_sync()
+ */
+EXPORT_API int bp_bookmark_adaptor_set_sync(const int id, const char *value);
+
+/**
+ * @brief Gets an id array and the number of rows of whole bookmark items at once from the storage.
+ * @since_tizen 2.3
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks Allocated memory (ids) have to be released by caller.
+ * @param[out] ids  Id array
+ * @param[out] count  The size of array
+ * @return 0 on success, otherwise, -1 is returned and error code is set to indicate the error
+ */
+EXPORT_API int bp_bookmark_adaptor_get_full_ids_p(int **ids, int *count);
+/**
+ * @brief Gets one or more properties indicated by the offset mask of the item with the given ID.
+ * @since_tizen 2.4
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bookmark.admin
+ * @remarks The allocated memory of strings in the structure has to be released by the caller.
+ * @param[in] id  The ID of the item
+ * @param[in] offset  The value that indicates one or more properties by '|' bit masking
+ * @param[in] info  The structure that includes all properties
+ * @return @c 0 on success,
+ *         otherwise @c -1 is returned and the error code is set to indicate the error
+ * @pre First the structure has to be initialized to @c 0, then set the variables to change.
+ * @see #bp_bookmark_ext_info_fmt
+ * @see bp_bookmark_ext_adaptor_get_easy_all()
+ */
+EXPORT_API int bp_bookmark_ext_adaptor_get_info(const int id, const bp_bookmark_offset offset, bp_bookmark_ext_info_fmt *info);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_WEB_BOOKMARK_PRODUCT_H__ */
index 59682a22bf9195d696fd29010c0bc42c2a01e0ab..f532063f3063c9a633de4e5dd9dbc8785290ec18 100755 (executable)
@@ -137,6 +137,7 @@ chown -R web_fw:web_fw %{_data_install_path}
 %{_includedir}/web/web_bookmark_csc.h
 #%{_includedir}/web/web_bookmark_csc_doc.h
 %{_includedir}/web/web_bookmark.h
+%{_includedir}/web/web_bookmark_product.h
 %{_includedir}/web/web_tab.h
 #%{_includedir}/web/web_tab_doc.h
 %{_includedir}/web/web_history.h