Update rating info (rating is only for internal support)
[platform/core/api/media-content.git] / include_product / media_info.h
index a4eedfb..9b67dae 100755 (executable)
@@ -30,7 +30,7 @@ extern "C" {
  * @file media_info.h
  * @brief This file contains the media info function and related functions to proceed with it. \n
  *        You can use the functions to insert, delete, count and get list of content files from media database. \n
- *        You can get properties of content file such as size, mime_type, modified_time etc. And you can set properties such as provider, favorite etc. \n
+ *        You can get properties of content file such as size, mime_type, modified_time etc. And you can set properties such as favorite etc. \n
  *        And you can get bookmark, face, tag info related the content file.
  */
 
@@ -132,49 +132,6 @@ int media_info_insert_to_db(const char *path, media_info_h *info);
 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.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write \n
- *                   %http://tizen.org/privilege/mediastorage \n
- *                   %http://tizen.org/privilege/externalstorage
- *
- * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
- *                   If you want to access only internal storage with this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   Or if you want to access only external storage with this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
- *                   If you can access both storage, you must add all privilege. \n
- *                   Since 4.0, This function does not allow a symbolic link. \n
- *
- * @param[in] path_array The path array of the burst shot images to add
- * @param[in] array_length The length of the array
- * @param[in] callback The callback function to be invoked when the images are inserted completely
- * @param[in] user_data The user data to be passed to the callback function
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @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) TIZEN_DEPRECATED_API;
-
-/**
  * @deprecated Deprecated since 5.0. Use media_content_scan_file() instead.
  * @brief Deletes the media information from the media database.
  * @details This function only remove media information in the media database. \n
@@ -206,41 +163,11 @@ int media_info_insert_burst_shot_to_db(const char **path_array, unsigned int arr
  */
 int media_info_delete_from_db(const char *media_id) TIZEN_DEPRECATED_API;
 
-/**
- * @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.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @param[in] filter The handle to the media filter
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- * @see media_filter_create()
- */
-int media_info_delete_batch_from_db(filter_h filter) TIZEN_DEPRECATED_API;
-
 
 /**
  * @brief Destroys media info.
  * @details The function frees all resources related to the media info handle. This handle
- *          can no longer be used to perform any operation. New media info handle has to
+ *          can no longer be used to perform any operations. New media info handle has to
  *          be created before the next usage.
  *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
@@ -263,8 +190,6 @@ int media_info_destroy(media_info_h media);
  * @brief Clones the media info handle.
  *
  * @details This function copies the media info handle from a source to the destination.
- *          There is no media_info_create() function. The media_info_h is created internally and
- *          available through media info foreach function such as media_info_foreach_media_from_db() or media_info_insert_to_db().
  *          To use this handle outside of these foreach functions, use this function.
  *
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
@@ -715,7 +640,7 @@ int media_info_get_modified_time(media_info_h media, time_t *time);
 
 /**
  * @brief Gets the timeline of content file.
- * @details If the content file has the creation time information (like Content recored date or Image creation date), that value is timeline. \n
+ * @details If the content file has the creation time information (like Content recorded date or Image creation date), that value is timeline. \n
  *               Otherwise, timeline value is the same as modified time.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
@@ -818,24 +743,6 @@ int media_info_get_latitude(media_info_h media, double* latitude);
 int media_info_get_altitude(media_info_h media, double* altitude);
 
 /**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the weather of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @remarks The @a weather should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] weather The weather of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_get_weather(media_info_h media, char **weather) TIZEN_DEPRECATED_API;
-
-/**
  * @brief Gets the rating of content file.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
@@ -869,65 +776,6 @@ int media_info_get_rating(media_info_h media, int *rating);
 int media_info_get_favorite(media_info_h media, bool* favorite);
 
 /**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the author of content file.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a author should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] author The author of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_get_author(media_info_h media, char **author) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the provider of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a provider should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] provider The provider of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_provider(media_info_h media, char **provider) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Redundant, use media_info_get_display_name() instead.
- * @brief Gets the content name of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a content_name should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] content_name The content name of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_content_name(media_info_h media, char **content_name) TIZEN_DEPRECATED_API;
-
-/**
  * @brief Gets the title of content file.
  * @details If the content file does not have a title, this method returns the filename without the extension.
  *
@@ -948,86 +796,7 @@ int media_info_get_content_name(media_info_h media, char **content_name) TIZEN_D
 int media_info_get_title(media_info_h media, char **title);
 
 /**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the category of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a category should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] category The category of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_category(media_info_h media, char **category) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the location tag of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a location_tag should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] location_tag The location of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_location_tag(media_info_h media, char **location_tag) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Gets the age_rating of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a age_rating should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] age_rating The age rating of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_age_rating(media_info_h media, char **age_rating) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Use media_tag_insert_to_db() instead.
- * @brief Gets the keyword of content file which User set.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks The @a keyword should be released using free().
- *
- * @param[in] media The handle to the media info
- * @param[out] keyword The keyword of the content file
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- */
-int media_info_get_keyword(media_info_h media, char **keyword) TIZEN_DEPRECATED_API;
-
-/**
+ * @deprecated Deprecated since 5.0.
  * @brief Gets the storage id of content file.
  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
  *
@@ -1043,7 +812,7 @@ int media_info_get_keyword(media_info_h media, char **keyword) TIZEN_DEPRECATED_
  * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_storage_id(media_info_h media, char **storage_id);
+int media_info_get_storage_id(media_info_h media, char **storage_id) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Checks whether the media is protected via DRM.
@@ -1078,6 +847,7 @@ int media_info_is_drm(media_info_h media, bool *is_drm);
 int media_info_is_360_content(media_info_h media, bool *is_360);
 
 /**
+ * @deprecated Deprecated since 5.0. Use storage_get_type_dev() instead.
  * @brief Gets the storage type of content file.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
@@ -1090,43 +860,7 @@ int media_info_is_360_content(media_info_h media, bool *is_360);
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int media_info_get_storage_type(media_info_h media, media_content_storage_e *storage_type);
-
-/**
- * @deprecated Deprecated since 4.0. \n
- *        This function does not guarantee independence of the played count value between applications. It is recommended that the value is managed by the application.
- * @brief Gets number which represents how many times given content has been played.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- *
- * @param[in] media The handle to the media info
- * @param[out] played_count The counter of content played
- *
- * @return 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_get_played_count(media_info_h media, int *played_count) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. \n
- *        This function does not guarantee independence of the played time value between applications. It is recommended that the value is managed by the application.
- * @brief Gets the content's played time parameter.
- * @details Function returns content's elapsed playback time parameter as period
- *          starting from the beginning of the track.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- *
- * @param[in] media The handle to the media info
- * @param[out] played_time The elapsed time of the content
- *
- * @return 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_get_played_time(media_info_h media, time_t *played_time) TIZEN_DEPRECATED_API;
+int media_info_get_storage_type(media_info_h media, media_content_storage_e *storage_type) TIZEN_DEPRECATED_API;
 
 /**
  * @brief Gets the media info from the media database.
@@ -1158,425 +892,72 @@ int media_info_get_played_time(media_info_h media, time_t *played_time) TIZEN_DE
 int media_info_get_media_from_db(const char *media_id, media_info_h *media);
 
 /**
- * @deprecated Deprecated since 4.0. \n
- *        This function does not guarantee independence of the played count value between applications. It is recommended that the value is managed by the application.
- * @brief Increments the played count to content meta handle.
- * @details You can increase the played(opened) count of the content file.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
+ * @brief Sets the favorite of media info.
+ * @details This function can mark favorite of the media. If set to @c true, this function record the time of the change moment. \n
+ *                So, If you use it in order parameter, you can sort the order of the time was a favorite. \n
+ *                Or, if you use it in condition parameter, you can get the result of the favorite media.
+ *
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
  * @param[in] media The handle to the media info
+ * @param[in] favorite Set @c true to set the media info as favorite,
+ *                     otherwise set @c false to not set the media info as favorite
  *
- * @return 0 on success,
+ * @return @c 0 on success,
  *         otherwise a negative error value
  *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
+ * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
  */
-int media_info_increase_played_count(media_info_h media) TIZEN_DEPRECATED_API;
+int media_info_set_favorite(media_info_h media, bool favorite);
 
 /**
- * @deprecated Deprecated since 4.0. \n
- *        This function does not guarantee independence of the played time value between applications. It is recommended that the value is managed by the application.
- * @brief Sets the played time to content meta handle.
- * @details You can set the latest played(opened) time of the content file. the latest played time to be set the current time on the system.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- *
- * @param[in] media The handle to the media info
- *
- * @return 0 on success,
- *         otherwise a negative error value
+ * @brief Updates the media info to the media database.
  *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @details The function updates the given media info in the media database.
  *
- * @post media_info_update_to_db()
- */
-int media_info_set_played_time(media_info_h media) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Redundant, use media_info_move_to_db() instead.
- * @brief Sets the file name including the extension of the content file.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/content.write
+ *
+ * @remarks The function should be called after any change in media, to be updated to the media
+ *          database. For example, after using media_info_set_favorite()
+ *          for setting the name of the media, the media_info_update_to_db() function should be called so as to update
+ *          the given media info attributes in the media database.
  *
  * @param[in] media The handle to the media info
- * @param[in] display_name The file name including the extension of the content file.
  *
  * @return @c 0 on success,
  *         otherwise a negative error value
  *
  * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
  * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
+ * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
+ * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
+ * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
+ * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
+ * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
  *
- * @post media_info_update_to_db().
+ * @pre This function requires opened connection to content service by media_content_connect().
  *
+ * @see media_content_connect()
+ * @see media_info_set_favorite()
  */
-int media_info_set_display_name(media_info_h media, const char *display_name) TIZEN_DEPRECATED_API;
+int media_info_update_to_db(media_info_h media);
 
 /**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the description of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @brief Moves the media info to the given destination path in the media database.
+ * @details After moving or renaming a file in the filesystem, call this function to update the database. \n
+ *               If the source path and destination path are the same, then this function does nothing.
+ *               If you want to refresh media information, you should use media_content_scan_file() function.
  *
- * @param[in] media The handle to the media info
- * @param[in] description The description of the media info
+ * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- *
- */
-int media_info_set_description(media_info_h media, const char *description) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the longitude of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] longitude The longitude of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- */
-int media_info_set_longitude(media_info_h media, double longitude) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the latitude of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] latitude The latitude of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- */
-int media_info_set_latitude(media_info_h media, double latitude) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the altitude of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] altitude The altitude of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- */
-int media_info_set_altitude(media_info_h media, double altitude) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the weather of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] weather The weather of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- *
- */
-int media_info_set_weather(media_info_h media, const char *weather) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the rating of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] rating The rating of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db().
- */
-int media_info_set_rating(media_info_h media, int rating) TIZEN_DEPRECATED_API;
-
-/**
- * @brief Sets the favorite of media info.
- * @details This function can mark favorite of the media. If set to @c true, this function record the time of the change moment. \n
- *                So, If you use it in order parameter, you can sort the order of the time was a favorite. \n
- *                Or, if you use it in condition parameter, you can get the result of the favorite media.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] favorite Set @c true to set the media info as favorite,
- *                     otherwise set @c false to not set the media info as favorite
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_favorite(media_info_h media, bool favorite);
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the author of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] author The author of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_author(media_info_h media, const char *author) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the provider of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] provider The provider of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_provider(media_info_h media, const char *provider) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Redundant, use media_info_move_to_db() instead.
- * @brief Sets the content name of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] content_name The content name of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_content_name(media_info_h media, const char *content_name) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the category of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] category The category of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_category(media_info_h media, const char *category) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the location tag of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] location_tag The location of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_location_tag(media_info_h media, const char *location_tag) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the age rating of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] age_rating The age rating of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_age_rating(media_info_h media, const char *age_rating) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Use media_tag_insert_to_db() instead.
- * @brief Sets the keyword of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] keyword The keyword of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_keyword(media_info_h media, const char *keyword) TIZEN_DEPRECATED_API;
-
-/**
- * @brief Updates the media info to the media database.
- *
- * @details The function updates the given media info in the media database.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @remarks The function should be called after any change in media, to be updated to the media
- *          database. For example, after using media_info_set_favorite()
- *          for setting the name of the media, the media_info_update_to_db() function should be called so as to update
- *          the given media info attributes in the media database.
- *
- * @param[in] media The handle to the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- * @see media_info_set_favorite()
- */
-int media_info_update_to_db(media_info_h media);
-
-/**
- * @deprecated Deprecated since 4.0. Use media_content_scan_file() instead.
- * @brief Refreshes the media metadata to the media database.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write \n
- *                   %http://tizen.org/privilege/mediastorage \n
- *                   %http://tizen.org/privilege/externalstorage
- *
- * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
- *                   If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   Or if you want to access only external storage by using this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
- *                   If you can access both storage, you should add all privilege.
- *
- * @param[in] media_id The media ID
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED         DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY           DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK           Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- */
-int media_info_refresh_metadata_to_db(const char *media_id) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. This data cannot be saved to the file.
- * @brief Sets the added time of media info.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] media The handle to the media info
- * @param[in] added_time The added time of the media info
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- *
- * @post media_info_update_to_db()
- */
-int media_info_set_added_time(media_info_h media, time_t added_time) TIZEN_DEPRECATED_API;
-
-/**
- * @brief Moves the media info to the given destination path in the media database.
- * @details After moving or renaming a file in the filesystem, call this function to update the database. \n
- *               If the source path and destination path are the same, then this function does nothing.
- *               If you want to refresh media information, you should use media_content_scan_file() function.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write \n
- *                   %http://tizen.org/privilege/mediastorage \n
- *                   %http://tizen.org/privilege/externalstorage
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/content.write \n
+ *                   %http://tizen.org/privilege/mediastorage \n
+ *                   %http://tizen.org/privilege/externalstorage
  *
  * @remarks You must add privilege http://tizen.org/privilege/content.write. And You add more privilege depending on your choice of contents path. \n
  *                   If you want to access only internal storage by using this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
@@ -1781,144 +1162,6 @@ int media_info_start_face_detection(media_info_h media, media_face_detection_com
 int media_info_cancel_face_detection(media_info_h media);
 
 /**
- * @deprecated Deprecated since 4.0. Use media_info_insert_to_db() instead.
- * @brief Creates the media info handle.
- * @details If the information about the file that is already known, you can use this function to generate empty handler.
- * @since_tizen 3.0
- *
- *
- * @privilege %http://tizen.org/privilege/mediastorage \n
- *               %http://tizen.org/privilege/externalstorage
- *
- * @remarks The @a media should be released using media_info_destroy().
- * @remarks If you want to access only internal storage with this function, you should add privilege http://tizen.org/privilege/mediastorage. \n
- *                   Or if you want to access only external storage with this function, you should add privilege http://tizen.org/privilege/externalstorage. \n
- *                   If you can access both storage, you must add all privilege.
- *
- * @param[in] path The path to create the media info handle
- * @param[out] media The handle to the media info
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB operation failed
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- *
- * @see media_info_destroy()
- */
-int media_info_create(const char *path, media_info_h *media) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0. Use media_info_insert_to_db() instead.
- * @brief Inserts media info to database with media info data.
- * @since_tizen 3.0
- *
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @remarks The @a media should be released using media_info_destroy().
- *
- * @param[in] media The handle to the media info
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB operation failed
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- */
-int media_info_insert_to_db_with_data(media_info_h media) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Sets the title of media info handle.
- * @since_tizen 3.0
- *
- * @param[in] media The handle to the media info
- * @param[in] title The title of media info handle
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_title(media_info_h media, const char *title) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Sets the album of media info handle.
- * @since_tizen 3.0
- *
- * @param[in] media The handle to the media info
- * @param[in] album The album of the media
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_album(media_info_h media, const char *album) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Sets the artist of media info handle.
- * @since_tizen 3.0
- *
- * @param[in] media The handle to the media info
- * @param[in] artist The artist of media info handle
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_artist(media_info_h media, const char *artist) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Sets the genre of media info handle.
- * @since_tizen 3.0
- *
- * @param[in] media The handle to the media info
- * @param[in] genre The genre of media info handle
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_genre(media_info_h media, const char *genre) TIZEN_DEPRECATED_API;
-
-/**
- * @deprecated Deprecated since 4.0.
- * @brief Sets the recorded date of media info handle.
- * @since_tizen 3.0
- *
- * @param[in] media The handle to the media info
- * @param[in] recorded_date The recorded date of media info handle
- *
- * @return @c 0 on success,
- *           otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY     Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_info_set_recorded_date(media_info_h media, const char *recorded_date) TIZEN_DEPRECATED_API;
-
-/**
  * @}
  */