2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef __TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__
19 #define __TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__
26 #endif /* __cplusplus */
29 * @file media_content_type.h
30 * @brief This file contains API related to media-content enumerations for media data types, groups, orientations, \n
31 * classes of errors and definitions of media-data. \n
32 * Listed APIs are called when iterating over lists of album, group, bookmark and other media, \n
33 * when media items are inserted completely and when notification of media DB change is subscribed.
37 * @addtogroup CAPI_MEDIA_CONTENT_MODULE
42 * @ingroup CAPI_MEDIA_CONTENT_MODULE
43 * @brief Enumeration for the media file format.
45 * @remarks Since 4.0, #MEDIA_CONTENT_TYPE_OTHERS is related to the following feature:\n
46 * %http://tizen.org/feature/content.scanning.others\n
47 * If this feature is not supported on the device, #MEDIA_CONTENT_TYPE_OTHERS type file is not scanned.
50 MEDIA_CONTENT_TYPE_IMAGE = 0, /**<The type of an image */
51 MEDIA_CONTENT_TYPE_VIDEO = 1, /**<The type of a video */
52 MEDIA_CONTENT_TYPE_SOUND = 2, /**<The type of sound */
53 MEDIA_CONTENT_TYPE_MUSIC = 3, /**<The type of music */
54 MEDIA_CONTENT_TYPE_OTHERS = 4, /**<The type of other */
55 MEDIA_CONTENT_TYPE_BOOK = 5, /**<The type of book (Since 6.5)*/
56 MEDIA_CONTENT_TYPE_PVR = 1001, /**<The type of PVR */
57 MEDIA_CONTENT_TYPE_UHD = 1002, /**<The type of UHD */
58 MEDIA_CONTENT_TYPE_SCSA = 1003, /**<The type of SCSA */
59 MEDIA_CONTENT_TYPE_APK = 1004, /**<The type of ARK*/
60 MEDIA_CONTENT_TYPE_DOC = 1005, /**<The type of DOC*/
61 } media_content_type_e;
64 * @ingroup CAPI_MEDIA_CONTENT_MODULE
65 * @brief Enumeration for media content DB update items.
69 MEDIA_ITEM_FILE = 0, /**< File type, an item updated to DB */
70 MEDIA_ITEM_DIRECTORY = 1, /**< Directory type, an item updated to DB */
71 MEDIA_ITEM_STORAGE = 2, /**< Storage type, an item updated to DB */
72 } media_content_db_update_item_type_e;
75 * @ingroup CAPI_MEDIA_CONTENT_MODULE
76 * @brief Enumeration for media content DB update types.
80 MEDIA_CONTENT_INSERT = 0, /**< Insert, the type of DB update */
81 MEDIA_CONTENT_DELETE = 1, /**< Delete, The type of DB update */
82 MEDIA_CONTENT_UPDATE = 2, /**< Update, The type of DB update */
83 } media_content_db_update_type_e;
86 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
87 * @brief Enumeration for orientation types.
91 MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE = 0, /**< Not available*/
92 MEDIA_CONTENT_ORIENTATION_NORMAL = 1, /**< Normal*/
93 MEDIA_CONTENT_ORIENTATION_HFLIP = 2, /**< Flip horizontal*/
94 MEDIA_CONTENT_ORIENTATION_ROT_180 = 3, /**< Rotate 180 degrees*/
95 MEDIA_CONTENT_ORIENTATION_VFLIP = 4, /**< Flip vertical*/
96 MEDIA_CONTENT_ORIENTATION_TRANSPOSE = 5, /**< Transpose*/
97 MEDIA_CONTENT_ORIENTATION_ROT_90 = 6, /**< Rotate 90 degrees*/
98 MEDIA_CONTENT_ORIENTATION_TRANSVERSE = 7, /**< Transverse*/
99 MEDIA_CONTENT_ORIENTATION_ROT_270 = 8, /**< Rotate 270 degrees*/
100 } media_content_orientation_e;
103 * @ingroup CAPI_MEDIA_CONTENT_MODULE
104 * @brief Enumeration for ordering.
108 MEDIA_CONTENT_ORDER_ASC = 0, /**< Ascending order*/
109 MEDIA_CONTENT_ORDER_DESC = 1, /**< Descending order*/
110 MEDIA_CONTENT_ORDER_OTHER = 2, /**< order by order key**/
111 } media_content_order_e;
114 * @ingroup CAPI_MEDIA_CONTENT_MODULE
115 * @brief Enumeration for collations.
119 MEDIA_CONTENT_COLLATE_DEFAULT = 0, /**< Default collation BINARY */
120 MEDIA_CONTENT_COLLATE_NOCASE = 1, /**< Collation NOCASE, not case sensitive */
121 MEDIA_CONTENT_COLLATE_RTRIM = 2, /**< Collation RTRIM, trailing space characters are ignored */
122 MEDIA_CONTENT_COLLATE_LOCALIZED = 3, /**< Collation LOCALIZATION, NOCASE also applied */
123 } media_content_collation_e;
126 * @brief Error class.
127 * @details Class for Media Content error
131 #define MEDIA_CONTENT_ERROR_CLASS TIZEN_ERROR_MEDIA_CONTENT
134 * @ingroup CAPI_MEDIA_CONTENT_MODULE
135 * @brief Enumeration for a media content error.
139 MEDIA_CONTENT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
140 MEDIA_CONTENT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
141 MEDIA_CONTENT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
142 MEDIA_CONTENT_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid Operation */
143 MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
144 MEDIA_CONTENT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
145 MEDIA_CONTENT_ERROR_DB_FAILED = MEDIA_CONTENT_ERROR_CLASS | 0x01, /**< DB operation failed */
146 MEDIA_CONTENT_ERROR_DB_BUSY = MEDIA_CONTENT_ERROR_CLASS | 0x02, /**< DB operation BUSY */
147 MEDIA_CONTENT_ERROR_NETWORK = MEDIA_CONTENT_ERROR_CLASS | 0x03, /**< Network Fail */
148 MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT = MEDIA_CONTENT_ERROR_CLASS | 0x04, /**< Unsupported Content */
149 MEDIA_CONTENT_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
150 } media_content_error_e;
153 * @ingroup CAPI_MEDIA_CONTENT_MODULE
154 * @brief Enumeration for a media group.
158 MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0, /**< @deprecated Media group ID for display name. Deprecated since 9.0*/
159 MEDIA_CONTENT_GROUP_TYPE, /**< @deprecated Media group ID for a media type. Deprecated since 9.0*/
160 MEDIA_CONTENT_GROUP_MIME_TYPE, /**< @deprecated Media group ID for a mime type. Deprecated since 9.0*/
161 MEDIA_CONTENT_GROUP_SIZE, /**< @deprecated Media group ID for content size. Deprecated since 9.0*/
162 MEDIA_CONTENT_GROUP_ADDED_TIME, /**< @deprecated Media group ID for the added time. Deprecated since 9.0*/
163 MEDIA_CONTENT_GROUP_MODIFIED_TIME, /**< @deprecated Media group ID for the modified time. Deprecated since 9.0*/
164 MEDIA_CONTENT_GROUP_TITLE, /**< @deprecated Media group ID for a content title. Deprecated since 9.0*/
165 MEDIA_CONTENT_GROUP_ARTIST, /**< Media group ID for an artist*/
166 MEDIA_CONTENT_GROUP_ALBUM_ARTIST, /**< Media group ID for an album artist */
167 MEDIA_CONTENT_GROUP_GENRE, /**< Media group ID for a genre*/
168 MEDIA_CONTENT_GROUP_COMPOSER, /**< @deprecated Media group ID for a composer. Deprecated since 9.0*/
169 MEDIA_CONTENT_GROUP_YEAR, /**< Media group ID for a year*/
170 MEDIA_CONTENT_GROUP_RECORDED_DATE, /**< @deprecated Media group ID for the recorded date. Deprecated since 9.0*/
171 MEDIA_CONTENT_GROUP_COPYRIGHT, /**< @deprecated Media group ID for the copyright. Deprecated since 9.0*/
172 MEDIA_CONTENT_GROUP_TRACK_NUM, /**< @deprecated Media group ID for a track number. Deprecated since 9.0*/
173 MEDIA_CONTENT_GROUP_DESCRIPTION, /**< @deprecated Media group ID for a description. Deprecated since 9.0*/
174 MEDIA_CONTENT_GROUP_LONGITUDE, /**< @deprecated Media group ID for the longitude. Deprecated since 9.0*/
175 MEDIA_CONTENT_GROUP_LATITUDE, /**< @deprecated Media group ID for the latitude. Deprecated since 9.0*/
176 MEDIA_CONTENT_GROUP_ALTITUDE, /**< @deprecated Media group ID for the altitude. Deprecated since 9.0*/
177 MEDIA_CONTENT_GROUP_RATING = 20, /**< @deprecated Media group ID for a rating. Deprecated since 9.0*/
178 MEDIA_CONTENT_GROUP_MODIFIED_DATE = 29, /**< Media group ID for the modified date*/
179 MEDIA_CONTENT_GROUP_ALBUM,
180 MEDIA_CONTENT_GROUP_MAX, /**< @deprecated Invalid media group ID. Deprecated since 9.0*/
181 MEDIA_PVR_GROUP_DURATION,
182 MEDIA_PVR_GROUP_TIME_ZONE,
184 MEDIA_PVR_GROUP_MAJOR,
185 MEDIA_PVR_GROUP_MINOR,
186 MEDIA_PVR_GROUP_CHANNEL_TYPE,
187 MEDIA_PVR_GROUP_CHANNEL_NAME,
188 MEDIA_PVR_GROUP_CHANNEL_NUM,
189 MEDIA_PVR_GROUP_PROGRAM_TITLE,
190 MEDIA_PVR_GROUP_PROGRAM_NUM,
191 MEDIA_PVR_GROUP_PROGRAM_CRID,
192 MEDIA_PVR_GROUP_GUIDANCE,
193 MEDIA_PVR_GROUP_SYNOPSIS,
194 MEDIA_PVR_GROUP_GENRE,
195 MEDIA_PVR_GROUP_LANGUAGE,
196 MEDIA_PVR_GROUP_EMBARGO_TIME,
197 MEDIA_PVR_GROUP_EXPIRY_TIME,
198 MEDIA_PVR_GROUP_START_TIME,
199 MEDIA_PVR_GROUP_PROGRAM_START_TIME,
200 MEDIA_PVR_GROUP_PROGRAM_END_TIME,
201 MEDIA_PVR_GROUP_PROGRAM_DATE,
202 MEDIA_PVR_GROUP_PARENTAL_RATING,
203 MEDIA_PVR_GROUP_TIMER_RECORD,
204 MEDIA_PVR_GROUP_SERIES_RECORD,
206 MEDIA_PVR_GROUP_SUBTITLE,
209 MEDIA_PVR_GROUP_HARDOF_HEARINGRADIO,
210 MEDIA_PVR_GROUP_DATA_SERVICE,
211 MEDIA_PVR_GROUP_CONTENT_LOCK,
212 MEDIA_PVR_GROUP_CONTENT_WATCH,
213 MEDIA_PVR_GROUP_HAS_AUDIO_ONLY,
214 MEDIA_PVR_GROUP_IS_LOCAL_RECORDED,
215 MEDIA_PVR_GROUP_RESOLUTION,
216 MEDIA_PVR_GROUP_ASPECTRATIO,
217 MEDIA_PVR_GROUP_MODIFIED_MONTH,
218 MEDIA_PVR_GROUP_MODIFIED_DATE,
219 MEDIA_PVR_GROUP_SPORTS_TYPE,
220 MEDIA_PVR_GROUP_GUIDANCE_LENGTH,
221 MEDIA_PVR_GROUP_TVMODE,
222 MEDIA_PVR_GROUP_PLAY_COUNT,
223 MEDIA_PVR_GROUP_PRIVATE_DATA,
225 MEDIA_UHD_GROUP_CONTENT_TITLE,
226 MEDIA_UHD_GROUP_RELEASE_DATE,
227 MEDIA_UHD_GROUP_SUB_TYPE,
228 MEDIA_UHD_GROUP_FILE_NAME,
229 MEDIA_UHD_GROUP_PLAYED_COUNT,
240 * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
241 * @deprecated Deprecated since 5.0.
242 * @brief The structure type for the Media storage handle.
245 typedef void *media_storage_h;
248 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
249 * @brief The structure type for the Media info handle.
252 typedef struct media_info_s *media_info_h;
255 * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
256 * @brief The structure type for the Media folder handle.
259 typedef struct media_folder_s *media_folder_h;
262 * @deprecated Deprecated since 9.0.
263 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
264 * @brief The structure type for the Media playlist handle.
267 typedef struct media_playlist_s *media_playlist_h;
270 * @deprecated Deprecated since 9.0.
271 * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
272 * @brief The structure type for the Media tag handle.
275 typedef struct media_tag_s *media_tag_h;
278 * @deprecated Deprecated since 9.0.
279 * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
280 * @brief The structure type for the Media bookmark handle.
283 typedef struct media_bookmark_s *media_bookmark_h;
286 * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
287 * @brief The structure type for the Media album handle.
290 typedef struct media_album_s *media_album_h;
293 * @ingroup CAPI_CONTENT_MEDIA_IMAGE_META_MODULE
294 * @brief The structure type for the Image metadata handle.
297 typedef struct image_meta_s *image_meta_h;
300 * @deprecated Deprecated since 9.0.
301 * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
302 * @brief The structure type for the Video metadata handle.
305 typedef struct video_meta_s *video_meta_h;
308 * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
309 * @brief The structure type for the Audio metadata handle.
312 typedef struct audio_meta_s *audio_meta_h;
315 * @ingroup CAPI_CONTENT_MEDIA_BOOK_META_MODULE
316 * @brief The structure type for the Book metadata handle.
319 typedef struct book_meta_s *book_meta_h;
322 * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
323 * @brief The structure type for the Media filter handle.
326 typedef struct filter_s *filter_h;
329 * @deprecated Deprecated since 8.0.
330 * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
331 * @brief The structure type for the Media face handle.
334 typedef void *media_face_h;
337 * @ingroup CAPI_MEDIA_CONTENT_MODULE
338 * @brief The structure type for the Media content noti handle.
341 typedef void *media_content_noti_h;
344 * @ingroup CAPI_MEDIA_CONTENT_MODULE
345 * @brief Called when the media scanning is finished.
346 * @details The following error codes can be received: \n
347 * #MEDIA_CONTENT_ERROR_NONE : Success \n
348 * #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
349 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
350 * #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
351 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
352 * #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
353 * #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
354 * #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
356 * @remarks The callback is called in a separate thread(not in the main loop).
358 * @param[in] error The error code
359 * @param[in] user_data The user data passed from the foreach function
361 * @pre media_content_scan_folder().
362 * @see media_content_scan_folder()
364 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
367 * @ingroup CAPI_MEDIA_CONTENT_MODULE
368 * @brief Called when the notification of the media DB change is subscribed.
369 * @details The following error codes can be received: \n
370 * #MEDIA_CONTENT_ERROR_NONE : Success \n
373 * @remarks The callback is called in a separate thread(not in the main loop).
375 * @param[in] error The error code
376 * @param[in] pid The PID which publishes notification
377 * @param[in] update_item The update item of notification
378 * @param[in] update_type The update type of notification
379 * @param[in] media_type The type of the media content (#media_content_type_e)
380 * @param[in] id The ID of media or directory, which is updated
381 * @param[in] path The path of the media or directory
382 * @param[in] mime_type The MIME of the media info
383 * @param[in] user_data The user data passed from the foreach function
385 * @pre media_content_add_db_updated_cb().
386 * @see media_content_add_db_updated_cb()
388 typedef void (*media_content_db_update_cb)(
389 media_content_error_e error,
391 media_content_db_update_item_type_e update_item,
392 media_content_db_update_type_e update_type,
393 media_content_type_e media_type,
401 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
402 * @brief Called for every available media info.
403 * @details Iterates over a list of media info.
406 * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function. \n
407 * The callback is called in the main loop.
409 * @param[in] media The handle to the media info
410 * @param[in] user_data The user data passed from the foreach function
412 * @return @c true to continue with the next iteration of the loop,
413 * otherwise @c false to break out of the loop
415 * @pre media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
417 * @see media_info_clone()
418 * @see media_album_foreach_media_from_db()
419 * @see media_info_foreach_media_from_db()
420 * @see media_folder_foreach_media_from_db()
422 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
426 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
427 * @brief Called when media items are inserted completely.
428 * @details The following error codes can be received: \n
429 * #MEDIA_CONTENT_ERROR_NONE : Success \n
430 * #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
431 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
432 * #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
433 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
434 * #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
435 * #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
436 * #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
437 * #MEDIA_CONTENT_ERROR_NOT_SUPPORTED : Not supported \n
440 * @remarks The callback is called in a separate thread(not in the main loop).
442 * @param[in] error The error code
443 * @param[in] user_data The user data passed from the foreach function
445 * @pre media_info_insert_batch_to_db()
446 * @see media_info_insert_batch_to_db()
448 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
451 * @deprecated Deprecated since 8.0.
452 * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
453 * @brief Called when face detection on the image is completed.
455 * @details The following error codes can be delivered. \n
456 * #MEDIA_CONTENT_ERROR_NONE, \n
457 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, \n
458 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
459 * #MEDIA_CONTENT_ERROR_DB_FAILED, \n
460 * #MEDIA_CONTENT_ERROR_DB_BUSY, \n
461 * #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
465 * @remarks The callback is called in a separate thread(not in the main loop).
467 * @param[in] error The error code
468 * @param[in] face_count The number of all detected faces
469 * @param[in] user_data The user data passed from the foreach function
471 * @pre media_info_start_face_detection()
472 * @see media_info_start_face_detection()
474 typedef void (*media_face_detection_completed_cb)(media_content_error_e error, const int face_count, void *user_data);
478 * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
479 * @brief Called for every available media folder.
480 * @details Iterates over a list of folders.
484 * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function. \n
485 * The callback is called in the main loop.
487 * @param[in] folder The handle to the media folder
488 * @param[in] user_data The user data passed from the foreach function
490 * @return @c true to continue with the next iteration of the loop,
491 * otherwise @c false to break out of the loop
493 * @pre media_folder_foreach_folder_from_db() will invoke this function.
494 * @see media_folder_clone()
495 * @see media_folder_foreach_folder_from_db()
497 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
500 * @deprecated Deprecated since 9.0.
501 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
502 * @brief Called for every playlist in the obtained list of playlists.
503 * @details Iterates over a playlist list.
507 * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function. \n
508 * The callback is called in the main loop.
510 * @param[in] playlist The handle to the media playlist
511 * @param[in] user_data The user data passed from the foreach function
513 * @return @c true to continue with the next iteration of the loop,
514 * otherwise @c false to break out of the loop
516 * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
518 * @see media_playlist_clone()
519 * @see media_playlist_foreach_playlist_from_db()
521 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
524 * @deprecated Deprecated since 9.0.
525 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
526 * @brief Called for every media info with playlist member ID in the obtained list of media info.
527 * @details Iterates over playlist members.
531 * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function. \n
532 * The callback is called in the main loop.
534 * @param[in] playlist_member_id The ID of the playlist member
535 * @param[in] media The handle to the media info
536 * @param[in] user_data The user data passed from the foreach function
538 * @return @c true to continue with the next iteration of the loop,
539 * otherwise @c false to break out of the loop
541 * @pre media_playlist_foreach_media_from_db() will invoke this function.
543 * @see media_info_clone()
544 * @see media_playlist_foreach_media_from_db()
546 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
549 * @deprecated Deprecated since 9.0.
550 * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
551 * @brief Called for every tag in the obtained list of tags.
552 * @details Iterates over a list of tags.
556 * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function. \n
557 * The callback is called in the main loop.
559 * @param[in] tag The handle to the media tag
560 * @param[in] user_data The user data passed from the foreach function
562 * @return @c true to continue with the next iteration of the loop,
563 * otherwise @c false to break out of the loop
565 * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
567 * @see media_tag_clone()
568 * @see media_tag_foreach_tag_from_db()
569 * @see media_info_foreach_tag_from_db()
571 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
574 * @deprecated Deprecated since 9.0.
575 * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
576 * @brief Called for every bookmark in the obtained list of bookmarks.
577 * @details Iterates over a bookmark list.
581 * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function. \n
582 * The callback is called in the main loop.
584 * @param[in] bookmark The handle to the media bookmark
585 * @param[in] user_data The user data passed from the foreach function
587 * @return @c true to continue with the next iteration of the loop,
588 * otherwise @c false to break out of the loop
590 * @pre media_info_foreach_bookmark_from_db() will invoke this function.
591 * @see media_info_foreach_bookmark_from_db()
593 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
596 * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
597 * @brief Called for every album in the obtained list of groups.
598 * @details Iterates over an album list.
602 * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function. \n
603 * The callback is called in the main loop.
605 * @param[in] album The handle to the media album
606 * @param[in] user_data The user data passed from the foreach function
608 * @return @c true to continue with the next iteration of the loop,
609 * otherwise @c false to break out of the loop
611 * @pre media_album_foreach_album_from_db() will invoke this function.
613 * @see media_album_clone()
614 * @see media_album_foreach_album_from_db()
616 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
619 * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
620 * @brief Called for every group in the obtained list of groups.
621 * @details Iterates over a media group list.
625 * @remarks You should not free @a group_name returned by this function. \n
626 * The callback is called in the main loop.
628 * @param[in] group_name The name of the media group
629 * @param[in] user_data The user data passed from the foreach function
631 * @return @c true to continue with the next iteration of the loop,
632 * otherwise @c false to break out of the loop
634 * @pre media_group_foreach_group_from_db() will invoke this function.
635 * @see media_group_foreach_group_from_db()
637 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
640 * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
641 * @brief Called for every storage in the obtained list of storages.
642 * @details Iterates over a media storage list.
646 * @remarks You should not destroy @a storage returned by this function. \n
647 * The callback is called in the main loop.
649 * @param[in] storage The handle of the media storage
650 * @param[in] user_data The user data passed from the foreach function
652 * @return @c true to continue with the next iteration of the loop,
653 * otherwise @c false to break out of the loop
655 * @pre media_storage_foreach_storage_from_db() will invoke this function.
656 * @see media_storage_foreach_storage_from_db()
658 typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
661 * @deprecated Deprecated since 8.0.
662 * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
663 * @brief Called for every face in the obtained list of face.
664 * @details Iterates over a media face list.
668 * @remarks You should not destroy @a face returned by this function. \n
669 * The callback is called in the main loop.
671 * @param[in] face The handle of the media face
672 * @param[in] user_data The user data passed from the foreach function
674 * @return @c true to continue with the next iteration of the loop,
675 * otherwise @c false to break out of the loop
677 * @pre media_info_foreach_face_from_db() will invoke this function.
678 * @see media_info_foreach_face_from_db()
680 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
687 * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
693 * @details You can use above define to set the condition of media filter and order keyword.
697 #define MEDIA_ID "MEDIA_ID"
700 * @brief Media full path.
701 * @details You can use above define to set the condition of media filter and order keyword.
705 #define MEDIA_PATH "MEDIA_PATH"
708 * @brief The file name including the extension.
709 * @details You can use above define to set the condition of media filter and order keyword.
713 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"
717 * @details There are 5 media types:\n
718 * 0-image, 1-video, 2-sound, 3-music, 4-other\n
719 * You can use above define to set the condition of media filter and order keyword.
723 #define MEDIA_TYPE "MEDIA_TYPE"
726 * @brief Media MIME type.
727 * @details You can use above define to set the condition of media filter and order keyword.
731 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"
735 * @brief Media file size.
736 * @details You can use above define to set the condition of media filter and order keyword.
740 #define MEDIA_SIZE "MEDIA_SIZE"
743 * @brief The time that content file was first added to media database.
744 * @details You can use above define to set the condition of media filter and order keyword.
748 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"
751 * @brief The last modification time provided by the file system.
752 * @details You can use above define to set the condition of media filter and order keyword.
756 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"
759 * @deprecated Deprecated since 9.0.
760 * @brief Media created time.
761 * @details You can use above define to set the condition of media filter and order keyword.
765 #define MEDIA_TIMELINE "MEDIA_TIMELINE"
768 * @brief Media thumbnail path.
769 * @details You can use above define to set the condition of media filter and order keyword.
773 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"
776 * @brief Media title get from tag or file name.
777 * @details You can use above define to set the condition of media filter and order keyword.
781 #define MEDIA_TITLE "MEDIA_TITLE"
784 * @brief Media album name.
785 * @details You can use above define to set the condition of media filter and order keyword.
789 #define MEDIA_ALBUM "MEDIA_ALBUM"
792 * @brief Media artist.
793 * @details You can use above define to set the condition of media filter and order keyword.
797 #define MEDIA_ARTIST "MEDIA_ARTIST"
800 * @brief Media album artist.
801 * @details You can use above define to set the condition of media filter and order keyword.
805 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"
808 * @brief Media genre.
809 * @details You can use above define to set the condition of media filter and order keyword.
813 #define MEDIA_GENRE "MEDIA_GENRE"
816 * @deprecated Deprecated since 9.0.
817 * @brief Media composer.
818 * @details You can use above define to set the condition of media filter and order keyword.
822 #define MEDIA_COMPOSER "MEDIA_COMPOSER"
826 * @details You can use above define to set the condition of media filter and order keyword.
830 #define MEDIA_YEAR "MEDIA_YEAR"
833 * @deprecated Deprecated since 9.0.
834 * @brief Media recorded date.
835 * @details You can use above define to set the condition of media filter and order keyword.
839 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"
842 * @brief Media track number.
843 * @details You can use above define to set the condition of media filter and order keyword.
847 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"
850 * @deprecated Deprecated since 9.0.
851 * @brief Media duration.
852 * @details You can use above define to set the condition of media filter and order keyword.
856 #define MEDIA_DURATION "MEDIA_DURATION"
859 * @deprecated Deprecated since 9.0.
860 * @brief Media longitude.
861 * @details You can use above define to set the condition of media filter and order keyword.
865 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"
868 * @deprecated Deprecated since 9.0.
869 * @brief Media latitude.
870 * @details You can use above define to set the condition of media filter and order keyword.
874 #define MEDIA_LATITUDE "MEDIA_LATITUDE"
877 * @deprecated Deprecated since 9.0.
878 * @brief Media altitude.
879 * @details You can use above define to set the condition of media filter and order keyword.
883 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"
886 * @brief Media width.
887 * @details You can use above define to set the condition of media filter and order keyword.
891 #define MEDIA_WIDTH "MEDIA_WIDTH"
894 * @brief Media height.
895 * @details You can use above define to set the condition of media filter and order keyword.
899 #define MEDIA_HEIGHT "MEDIA_HEIGHT"
902 * @brief Media datetaken.
903 * @details You can use above define to set the condition of media filter and order keyword.
907 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"
910 * @deprecated Deprecated since 9.0.
911 * @brief The time to register favourite.
912 * @details You can use above define to set the condition of media filter and order keyword.
916 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
919 * @deprecated Deprecated since 9.0.
921 * @details There are 2 types:\n
923 * You can use above define to set the condition of media filter and order keyword.
927 #define MEDIA_IS_DRM "MEDIA_IS_DRM"
930 * @deprecated Deprecated since 9.0.
931 * @brief Virtual Reality content.
932 * @details You can use above define to set the condition of media filter and order keyword.
936 #define MEDIA_360 "MEDIA_360"
940 * @details You can use above define to set the condition of folder filter and order keyword.
943 #define FOLDER_ID "FOLDER_ID"
946 * @brief Folder full path.
947 * @details You can use above define to set the condition of folder filter and order keyword.
950 #define FOLDER_PATH "FOLDER_PATH"
953 * @brief Folder base name.
954 * @details You can use above define to set the condition of folder filter and order keyword.
957 #define FOLDER_NAME "FOLDER_NAME"
960 * @deprecated Deprecated since 9.0.
961 * @brief Playlist name.
962 * @details You can use above define to set the condition of playlist filter and order keyword.
965 #define PLAYLIST_NAME "PLAYLIST_NAME"
968 * @deprecated Deprecated since 9.0.
969 * @brief Playlist id.
970 * @details You can use above define to set the condition of playlist filter and order keyword.
973 #define MEDIA_PLAYLIST_ID "PLAYLIST_ID"
976 * @deprecated Deprecated since 9.0.
977 * @brief Playlist member order.
978 * @details You can use above define to set the condition of playlist filter and order keyword.
981 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"
984 * @deprecated Deprecated since 9.0.
985 * @brief Media count in playlist.
986 * @details You can use above define to set the condition of playlist filter and order keyword.
989 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"
992 * @deprecated Deprecated since 9.0.
994 * @details You can use above define to set the condition of tag filter and order keyword.
997 #define TAG_NAME "TAG_NAME"
1000 * @deprecated Deprecated since 9.0.
1002 * @details You can use above define to set the condition of tag filter and order keyword.
1005 #define MEDIA_TAG_ID "TAG_ID"
1008 * @deprecated Deprecated since 9.0.
1009 * @brief Media count in tag.
1010 * @details You can use above define to set the condition of tag filter and order keyword.
1013 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"
1016 * @deprecated Deprecated since 9.0.
1017 * @brief Bookmark marked time.
1018 * @details You can use above define to set the condition of bookmark filter and order keyword.
1021 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"
1024 * @deprecated Deprecated since 9.0.
1025 * @brief Bookmark id.
1026 * @details You can use above define to set the condition of bookmark filter and order keyword.
1029 #define MEDIA_BOOKMARK_ID "BOOKMARK_ID"
1032 * @deprecated Deprecated since 9.0.
1033 * @brief Bookmark name.
1034 * @details You can use above define to set the condition of bookmark filter and order keyword.
1037 #define BOOKMARK_NAME "BOOKMARK_NAME"
1040 * @deprecated Deprecated since 8.0.
1042 * @details You can use above define to set the condition of face filter and order keyword.
1045 #define MEDIA_FACE_TAG "MEDIA_FACE_TAG"
1048 * @deprecated Deprecated since 8.0.
1050 * @details You can use above define to set the condition of face filter and order keyword.
1053 #define MEDIA_FACE_ID "MEDIA_FACE_ID"
1062 #endif /* __cplusplus */
1065 #endif /*__TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__*/