deprecated media_info_delete_batch_from_db, media_info_insert_burst_shot_to_db, image_meta_get_burst_id(), image_meta_is_burst_shot() and burst shot related code.
Change-Id: I6ec952ba364ac8d0594f7c07fb063a4468a8beb9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
MEDIA_CONTENT_GROUP_LONGITUDE, /**< Media group ID for the longitude*/
MEDIA_CONTENT_GROUP_LATITUDE, /**< Media group ID for the latitude*/
MEDIA_CONTENT_GROUP_ALTITUDE, /**< Media group ID for the altitude*/
- MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot*/
+ MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_RATING, /**< Media group ID for a rating*/
MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_PROVIDER, /**< Media group ID for a provider*/
/**
+ * @deprecated Deprecated since 4.0.
* @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
* @brief Called when the burst shot is inserted completely.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
#define MEDIA_ORIENTATION "MEDIA_ORIENTATION"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media burst ID
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
int image_meta_get_date_taken(image_meta_h image, char **date_taken);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Gets the burst shot ID.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int image_meta_get_burst_id(image_meta_h image, char **burst_id);
+int image_meta_get_burst_id(image_meta_h image, char **burst_id) TIZEN_DEPRECATED_API;
/**
* @brief Gets the exposure time from exif.
int image_meta_get_model(image_meta_h image, char **model);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Checks whether the media is a burst shot image.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int image_meta_is_burst_shot(image_meta_h image, bool *is_burst_shot);
+int image_meta_is_burst_shot(image_meta_h image, bool *is_burst_shot) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 4.0. This data cannot be saved to the file.
int media_info_insert_batch_to_db(const char **path_array, unsigned int array_length, media_insert_completed_cb callback, void *user_data);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Inserts the burst shot images into the media database, asynchronously.
* @details This function inserts burst images into the media database.
* media_insert_burst_shot_completed_cb() will be called when insertion to media database is finished.
* @see media_content_connect()
* @see media_insert_burst_shot_completed_cb()
*/
-int media_info_insert_burst_shot_to_db(const char **path_array, unsigned int array_length, media_insert_burst_shot_completed_cb callback, void *user_data);
+int media_info_insert_burst_shot_to_db(const char **path_array, unsigned int array_length, media_insert_burst_shot_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @brief Deletes the media information from the media database.
int media_info_delete_from_db(const char *media_id);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Deletes media information that meets the conditions of the filter from the media database.
* @details This function can delete multiple media information from the media database.
*
* @see media_content_connect()
* @see media_filter_create()
*/
-int media_info_delete_batch_from_db(filter_h filter);
+int media_info_delete_batch_from_db(filter_h filter) TIZEN_DEPRECATED_API;
/**
MEDIA_CONTENT_GROUP_LONGITUDE, /**< Media group ID for the longitude*/
MEDIA_CONTENT_GROUP_LATITUDE, /**< Media group ID for the latitude*/
MEDIA_CONTENT_GROUP_ALTITUDE, /**< Media group ID for the altitude*/
- MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot*/
+ MEDIA_CONTENT_GROUP_BURST_IMAGE, /**< Media group ID for the burst shot (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_RATING, /**< Media group ID for a rating*/
MEDIA_CONTENT_GROUP_AUTHOR, /**< Media group ID for an author (Deprecated since 4.0)*/
MEDIA_CONTENT_GROUP_PROVIDER, /**< Media group ID for a provider*/
/**
+ * @deprecated Deprecated since 4.0.
* @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
* @brief Called when the burst shot is inserted completely.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
#define MEDIA_ORIENTATION "MEDIA_ORIENTATION"
/**
+ * @deprecated Deprecated since 4.0.
* @brief Media burst ID
* @details You can use above define to set the condition of media filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
int image_meta_get_date_taken(image_meta_h image, char **date_taken);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Gets the burst shot ID.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int image_meta_get_burst_id(image_meta_h image, char **burst_id);
+int image_meta_get_burst_id(image_meta_h image, char **burst_id) TIZEN_DEPRECATED_API;
/**
* @brief Gets the exposure time from exif.
int image_meta_get_model(image_meta_h image, char **model);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Checks whether the media is a burst shot image.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int image_meta_is_burst_shot(image_meta_h image, bool *is_burst_shot);
+int image_meta_is_burst_shot(image_meta_h image, bool *is_burst_shot) TIZEN_DEPRECATED_API;
/**
* @deprecated Deprecated since 4.0. This data cannot be saved to the file.
int media_info_insert_batch_to_db(const char **path_array, unsigned int array_length, media_insert_completed_cb callback, void *user_data);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Inserts the burst shot images into the media database, asynchronously.
* @details This function inserts burst images into the media database.
* media_insert_burst_shot_completed_cb() will be called when insertion to media database is finished.
* @see media_content_connect()
* @see media_insert_burst_shot_completed_cb()
*/
-int media_info_insert_burst_shot_to_db(const char **path_array, unsigned int array_length, media_insert_burst_shot_completed_cb callback, void *user_data);
+int media_info_insert_burst_shot_to_db(const char **path_array, unsigned int array_length, media_insert_burst_shot_completed_cb callback, void *user_data) TIZEN_DEPRECATED_API;
/**
* @brief Deletes the media information from the media database.
int media_info_delete_from_db(const char *media_id);
/**
+ * @deprecated Deprecated since 4.0.
* @brief Deletes media information that meets the conditions of the filter from the media database.
* @details This function can delete multiple media information from the media database.
*
* @see media_content_connect()
* @see media_filter_create()
*/
-int media_info_delete_batch_from_db(filter_h filter);
+int media_info_delete_batch_from_db(filter_h filter) TIZEN_DEPRECATED_API;
/**
int image_meta_get_burst_id(image_meta_h image, char **burst_id)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
+ media_content_warn("DEPRECATION WARNING: image_meta_get_burst_id() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
if (_image && burst_id) {
int image_meta_is_burst_shot(image_meta_h image, bool *is_burst_shot)
{
int ret = MEDIA_CONTENT_ERROR_NONE;
+ media_content_warn("DEPRECATION WARNING: image_meta_is_burst_shot() is deprecated and will be removed from next release.");
image_meta_s *_image = (image_meta_s*)image;
if (_image && is_burst_shot) {
int ret = MS_MEDIA_ERR_NONE;
char repl_path[MAX_PATH_LEN] = {0, };
+ media_content_warn("DEPRECATION WARNING: media_info_insert_burst_shot_to_db() is deprecated and will be removed from next release.");
+
media_content_retvm_if(path_array == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid path_array");
media_content_retvm_if(array_length <= 0, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid array_length");
int idx = 0;
media_storage_s *storage_item = NULL;
+ media_content_warn("DEPRECATION WARNING: media_info_delete_batch_from_db() is deprecated and will be removed from next release.");
+
media_content_retvm_if(filter == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid filter");
_filter = (filter_s*)filter;