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_e;
59 * @ingroup CAPI_MEDIA_CONTENT_MODULE
60 * @brief Enumeration for media content DB update items.
64 MEDIA_ITEM_FILE = 0, /**< File type, an item updated to DB */
65 MEDIA_ITEM_DIRECTORY = 1, /**< Directory type, an item updated to DB */
66 } media_content_db_update_item_type_e;
69 * @ingroup CAPI_MEDIA_CONTENT_MODULE
70 * @brief Enumeration for media content DB update types.
74 MEDIA_CONTENT_INSERT = 0, /**< Insert, the type of DB update */
75 MEDIA_CONTENT_DELETE = 1, /**< Delete, The type of DB update */
76 MEDIA_CONTENT_UPDATE = 2, /**< Update, The type of DB update */
77 } media_content_db_update_type_e;
80 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
81 * @brief Enumeration for orientation types.
85 MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE = 0, /**< Not available*/
86 MEDIA_CONTENT_ORIENTATION_NORMAL = 1, /**< Normal*/
87 MEDIA_CONTENT_ORIENTATION_HFLIP = 2, /**< Flip horizontal*/
88 MEDIA_CONTENT_ORIENTATION_ROT_180 = 3, /**< Rotate 180 degrees*/
89 MEDIA_CONTENT_ORIENTATION_VFLIP = 4, /**< Flip vertical*/
90 MEDIA_CONTENT_ORIENTATION_TRANSPOSE = 5, /**< Transpose*/
91 MEDIA_CONTENT_ORIENTATION_ROT_90 = 6, /**< Rotate 90 degrees*/
92 MEDIA_CONTENT_ORIENTATION_TRANSVERSE = 7, /**< Transverse*/
93 MEDIA_CONTENT_ORIENTATION_ROT_270 = 8, /**< Rotate 270 degrees*/
94 } media_content_orientation_e;
97 * @ingroup CAPI_MEDIA_CONTENT_MODULE
98 * @brief Enumeration for ordering.
102 MEDIA_CONTENT_ORDER_ASC = 0, /**< Ascending order*/
103 MEDIA_CONTENT_ORDER_DESC = 1, /**< Descending order*/
104 MEDIA_CONTENT_ORDER_OTHER = 2, /**< order by order key**/
105 } media_content_order_e;
108 * @ingroup CAPI_MEDIA_CONTENT_MODULE
109 * @brief Enumeration for collations.
113 MEDIA_CONTENT_COLLATE_DEFAULT = 0, /**< Default collation BINARY */
114 MEDIA_CONTENT_COLLATE_NOCASE = 1, /**< Collation NOCASE, not case sensitive */
115 MEDIA_CONTENT_COLLATE_RTRIM = 2, /**< Collation RTRIM, trailing space characters are ignored */
116 MEDIA_CONTENT_COLLATE_LOCALIZED = 3, /**< Collation LOCALIZATION, NOCASE also applied */
117 } media_content_collation_e;
120 * @brief Error class.
121 * @details Class for Media Content error
125 #define MEDIA_CONTENT_ERROR_CLASS TIZEN_ERROR_MEDIA_CONTENT
128 * @ingroup CAPI_MEDIA_CONTENT_MODULE
129 * @brief Enumeration for a media content error.
133 MEDIA_CONTENT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
134 MEDIA_CONTENT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */
135 MEDIA_CONTENT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */
136 MEDIA_CONTENT_ERROR_INVALID_OPERATION = TIZEN_ERROR_INVALID_OPERATION, /**< Invalid Operation */
137 MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
138 MEDIA_CONTENT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */
139 MEDIA_CONTENT_ERROR_DB_FAILED = MEDIA_CONTENT_ERROR_CLASS | 0x01, /**< DB operation failed */
140 MEDIA_CONTENT_ERROR_DB_BUSY = MEDIA_CONTENT_ERROR_CLASS | 0x02, /**< DB operation BUSY */
141 MEDIA_CONTENT_ERROR_NETWORK = MEDIA_CONTENT_ERROR_CLASS | 0x03, /**< Network Fail */
142 MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT = MEDIA_CONTENT_ERROR_CLASS | 0x04, /**< Unsupported Content */
143 MEDIA_CONTENT_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */
144 } media_content_error_e;
147 * @ingroup CAPI_MEDIA_CONTENT_MODULE
148 * @brief Enumeration for a media group.
152 MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0, /**< Media group ID for display name */
153 MEDIA_CONTENT_GROUP_TYPE, /**< Media group ID for a media type */
154 MEDIA_CONTENT_GROUP_MIME_TYPE, /**< Media group ID for a mime type */
155 MEDIA_CONTENT_GROUP_SIZE, /**< Media group ID for content size */
156 MEDIA_CONTENT_GROUP_ADDED_TIME, /**< Media group ID for the added time */
157 MEDIA_CONTENT_GROUP_MODIFIED_TIME, /**< Media group ID for the modified time */
158 MEDIA_CONTENT_GROUP_TITLE, /**< Media group ID for a content title */
159 MEDIA_CONTENT_GROUP_ARTIST, /**< Media group ID for an artist*/
160 MEDIA_CONTENT_GROUP_ALBUM_ARTIST, /**< Media group ID for an album artist */
161 MEDIA_CONTENT_GROUP_GENRE, /**< Media group ID for a genre*/
162 MEDIA_CONTENT_GROUP_COMPOSER, /**< Media group ID for a composer*/
163 MEDIA_CONTENT_GROUP_YEAR, /**< Media group ID for a year*/
164 MEDIA_CONTENT_GROUP_RECORDED_DATE, /**< Media group ID for the recorded date*/
165 MEDIA_CONTENT_GROUP_COPYRIGHT, /**< Media group ID for the copyright*/
166 MEDIA_CONTENT_GROUP_TRACK_NUM, /**< Media group ID for a track number*/
167 MEDIA_CONTENT_GROUP_DESCRIPTION, /**< Media group ID for a description */
168 MEDIA_CONTENT_GROUP_LONGITUDE, /**< Media group ID for the longitude*/
169 MEDIA_CONTENT_GROUP_LATITUDE, /**< Media group ID for the latitude*/
170 MEDIA_CONTENT_GROUP_ALTITUDE, /**< Media group ID for the altitude*/
171 MEDIA_CONTENT_GROUP_RATING = 20, /**< Media group ID for a rating*/
172 MEDIA_CONTENT_GROUP_MAX = 29 /**< Invalid media group ID*/
176 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
177 * @brief The structure type for the Media info handle.
180 typedef struct media_info_s *media_info_h;
183 * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
184 * @brief The structure type for the Media folder handle.
187 typedef struct media_folder_s *media_folder_h;
190 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
191 * @brief The structure type for the Media playlist handle.
194 typedef struct media_playlist_s *media_playlist_h;
197 * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
198 * @brief The structure type for the Media tag handle.
201 typedef struct media_tag_s *media_tag_h;
204 * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
205 * @brief The structure type for the Media bookmark handle.
208 typedef struct media_bookmark_s *media_bookmark_h;
211 * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
212 * @brief The structure type for the Media album handle.
215 typedef struct media_album_s *media_album_h;
218 * @ingroup CAPI_CONTENT_MEDIA_IMAGE_META_MODULE
219 * @brief The structure type for the Image metadata handle.
222 typedef struct image_meta_s *image_meta_h;
225 * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
226 * @brief The structure type for the Video metadata handle.
229 typedef struct video_meta_s *video_meta_h;
232 * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
233 * @brief The structure type for the Audio metadata handle.
236 typedef struct audio_meta_s *audio_meta_h;
239 * @ingroup CAPI_CONTENT_MEDIA_BOOK_META_MODULE
240 * @brief The structure type for the Book metadata handle.
243 typedef struct book_meta_s *book_meta_h;
246 * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
247 * @brief The structure type for the Media filter handle.
250 typedef struct filter_s *filter_h;
253 * @deprecated Deprecated since 8.0.
254 * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
255 * @brief The structure type for the Media face handle.
258 typedef void *media_face_h;
261 * @ingroup CAPI_MEDIA_CONTENT_MODULE
262 * @brief The structure type for the Media content noti handle.
265 typedef void *media_content_noti_h;
268 * @ingroup CAPI_MEDIA_CONTENT_MODULE
269 * @brief Called when the media scanning is finished.
270 * @details The following error codes can be received: \n
271 * #MEDIA_CONTENT_ERROR_NONE : Success \n
272 * #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
273 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
274 * #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
275 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
276 * #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
277 * #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
278 * #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
280 * @remarks The callback is called in a separate thread(not in the main loop).
282 * @param[in] error The error code
283 * @param[in] user_data The user data passed from the foreach function
285 * @pre media_content_scan_folder().
286 * @see media_content_scan_folder()
288 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
291 * @ingroup CAPI_MEDIA_CONTENT_MODULE
292 * @brief Called when the notification of the media DB change is subscribed.
293 * @details The following error codes can be received: \n
294 * #MEDIA_CONTENT_ERROR_NONE : Success \n
297 * @remarks The callback is called in a separate thread(not in the main loop).
299 * @param[in] error The error code
300 * @param[in] pid The PID which publishes notification
301 * @param[in] update_item The update item of notification
302 * @param[in] update_type The update type of notification
303 * @param[in] media_type The type of the media content (#media_content_type_e)
304 * @param[in] id The ID of media or directory, which is updated
305 * @param[in] path The path of the media or directory
306 * @param[in] mime_type The MIME of the media info
307 * @param[in] user_data The user data passed from the foreach function
309 * @pre media_content_add_db_updated_cb().
310 * @see media_content_add_db_updated_cb()
312 typedef void (*media_content_db_update_cb)(
313 media_content_error_e error,
315 media_content_db_update_item_type_e update_item,
316 media_content_db_update_type_e update_type,
317 media_content_type_e media_type,
325 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
326 * @brief Called for every available media info.
327 * @details Iterates over a list of media info.
330 * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function. \n
331 * The callback is called in the main loop.
333 * @param[in] media The handle to the media info
334 * @param[in] user_data The user data passed from the foreach function
336 * @return @c true to continue with the next iteration of the loop,
337 * otherwise @c false to break out of the loop
339 * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
340 * media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
342 * @see media_info_clone()
343 * @see media_album_foreach_media_from_db()
344 * @see media_playlist_foreach_media_from_db()
345 * @see media_tag_foreach_media_from_db()
346 * @see media_info_foreach_media_from_db()
347 * @see media_folder_foreach_media_from_db()
349 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
353 * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
354 * @brief Called when media items are inserted completely.
355 * @details The following error codes can be received: \n
356 * #MEDIA_CONTENT_ERROR_NONE : Success \n
357 * #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
358 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
359 * #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
360 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
361 * #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
362 * #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
363 * #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
364 * #MEDIA_CONTENT_ERROR_NOT_SUPPORTED : Not supported \n
367 * @remarks The callback is called in a separate thread(not in the main loop).
369 * @param[in] error The error code
370 * @param[in] user_data The user data passed from the foreach function
372 * @pre media_info_insert_batch_to_db()
373 * @see media_info_insert_batch_to_db()
375 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
378 * @deprecated Deprecated since 8.0.
379 * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
380 * @brief Called when face detection on the image is completed.
382 * @details The following error codes can be delivered. \n
383 * #MEDIA_CONTENT_ERROR_NONE, \n
384 * #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, \n
385 * #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
386 * #MEDIA_CONTENT_ERROR_DB_FAILED, \n
387 * #MEDIA_CONTENT_ERROR_DB_BUSY, \n
388 * #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
392 * @remarks The callback is called in a separate thread(not in the main loop).
394 * @param[in] error The error code
395 * @param[in] face_count The number of all detected faces
396 * @param[in] user_data The user data passed from the foreach function
398 * @pre media_info_start_face_detection()
399 * @see media_info_start_face_detection()
401 typedef void (*media_face_detection_completed_cb)(media_content_error_e error, const int face_count, void *user_data);
405 * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
406 * @brief Called for every available media folder.
407 * @details Iterates over a list of folders.
411 * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function. \n
412 * The callback is called in the main loop.
414 * @param[in] folder The handle to the media folder
415 * @param[in] user_data The user data passed from the foreach function
417 * @return @c true to continue with the next iteration of the loop,
418 * otherwise @c false to break out of the loop
420 * @pre media_folder_foreach_folder_from_db() will invoke this function.
421 * @see media_folder_clone()
422 * @see media_folder_foreach_folder_from_db()
424 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
427 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
428 * @brief Called for every playlist in the obtained list of playlists.
429 * @details Iterates over a playlist list.
433 * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function. \n
434 * The callback is called in the main loop.
436 * @param[in] playlist The handle to the media playlist
437 * @param[in] user_data The user data passed from the foreach function
439 * @return @c true to continue with the next iteration of the loop,
440 * otherwise @c false to break out of the loop
442 * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
444 * @see media_playlist_clone()
445 * @see media_playlist_foreach_playlist_from_db()
447 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
450 * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
451 * @brief Called for every media info with playlist member ID in the obtained list of media info.
452 * @details Iterates over playlist members.
456 * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function. \n
457 * The callback is called in the main loop.
459 * @param[in] playlist_member_id The ID of the playlist member
460 * @param[in] media The handle to the media info
461 * @param[in] user_data The user data passed from the foreach function
463 * @return @c true to continue with the next iteration of the loop,
464 * otherwise @c false to break out of the loop
466 * @pre media_playlist_foreach_media_from_db() will invoke this function.
468 * @see media_info_clone()
469 * @see media_playlist_foreach_media_from_db()
471 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
474 * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
475 * @brief Called for every tag in the obtained list of tags.
476 * @details Iterates over a list of tags.
480 * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function. \n
481 * The callback is called in the main loop.
483 * @param[in] tag The handle to the media tag
484 * @param[in] user_data The user data passed from the foreach function
486 * @return @c true to continue with the next iteration of the loop,
487 * otherwise @c false to break out of the loop
489 * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
491 * @see media_tag_clone()
492 * @see media_tag_foreach_tag_from_db()
493 * @see media_info_foreach_tag_from_db()
495 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
498 * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
499 * @brief Called for every bookmark in the obtained list of bookmarks.
500 * @details Iterates over a bookmark list.
504 * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function. \n
505 * The callback is called in the main loop.
507 * @param[in] bookmark The handle to the media bookmark
508 * @param[in] user_data The user data passed from the foreach function
510 * @return @c true to continue with the next iteration of the loop,
511 * otherwise @c false to break out of the loop
513 * @pre media_info_foreach_bookmark_from_db() will invoke this function.
514 * @see media_info_foreach_bookmark_from_db()
516 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
519 * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
520 * @brief Called for every album in the obtained list of groups.
521 * @details Iterates over an album list.
525 * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function. \n
526 * The callback is called in the main loop.
528 * @param[in] album The handle to the media album
529 * @param[in] user_data The user data passed from the foreach function
531 * @return @c true to continue with the next iteration of the loop,
532 * otherwise @c false to break out of the loop
534 * @pre media_album_foreach_album_from_db() will invoke this function.
536 * @see media_album_clone()
537 * @see media_album_foreach_album_from_db()
539 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
542 * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
543 * @brief Called for every group in the obtained list of groups.
544 * @details Iterates over a media group list.
548 * @remarks You should not free @a group_name returned by this function. \n
549 * The callback is called in the main loop.
551 * @param[in] group_name The name of the media group
552 * @param[in] user_data The user data passed from the foreach function
554 * @return @c true to continue with the next iteration of the loop,
555 * otherwise @c false to break out of the loop
557 * @pre media_group_foreach_group_from_db() will invoke this function.
558 * @see media_group_foreach_group_from_db()
560 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
563 * @deprecated Deprecated since 8.0.
564 * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
565 * @brief Called for every face in the obtained list of face.
566 * @details Iterates over a media face list.
570 * @remarks You should not destroy @a face returned by this function. \n
571 * The callback is called in the main loop.
573 * @param[in] face The handle of the media face
574 * @param[in] user_data The user data passed from the foreach function
576 * @return @c true to continue with the next iteration of the loop,
577 * otherwise @c false to break out of the loop
579 * @pre media_info_foreach_face_from_db() will invoke this function.
580 * @see media_info_foreach_face_from_db()
582 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
589 * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
595 * @details You can use above define to set the condition of media filter and order keyword.
599 #define MEDIA_ID "MEDIA_ID"
602 * @brief Media full path.
603 * @details You can use above define to set the condition of media filter and order keyword.
607 #define MEDIA_PATH "MEDIA_PATH"
610 * @brief The file name including the extension.
611 * @details You can use above define to set the condition of media filter and order keyword.
615 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"
619 * @details There are 5 media types:\n
620 * 0-image, 1-video, 2-sound, 3-music, 4-other\n
621 * You can use above define to set the condition of media filter and order keyword.
625 #define MEDIA_TYPE "MEDIA_TYPE"
628 * @brief Media MIME type.
629 * @details You can use above define to set the condition of media filter and order keyword.
633 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"
637 * @brief Media file size.
638 * @details You can use above define to set the condition of media filter and order keyword.
642 #define MEDIA_SIZE "MEDIA_SIZE"
645 * @brief The time that content file was first added to media database.
646 * @details You can use above define to set the condition of media filter and order keyword.
650 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"
653 * @brief The last modification time provided by the file system.
654 * @details You can use above define to set the condition of media filter and order keyword.
658 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"
661 * @brief Media created time.
662 * @details You can use above define to set the condition of media filter and order keyword.
666 #define MEDIA_TIMELINE "MEDIA_TIMELINE"
669 * @brief Media thumbnail path.
670 * @details You can use above define to set the condition of media filter and order keyword.
674 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"
677 * @brief Media title get from tag or file name.
678 * @details You can use above define to set the condition of media filter and order keyword.
682 #define MEDIA_TITLE "MEDIA_TITLE"
685 * @brief Media album name.
686 * @details You can use above define to set the condition of media filter and order keyword.
690 #define MEDIA_ALBUM "MEDIA_ALBUM"
693 * @brief Media artist.
694 * @details You can use above define to set the condition of media filter and order keyword.
698 #define MEDIA_ARTIST "MEDIA_ARTIST"
701 * @brief Media album artist.
702 * @details You can use above define to set the condition of media filter and order keyword.
706 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"
709 * @brief Media genre.
710 * @details You can use above define to set the condition of media filter and order keyword.
714 #define MEDIA_GENRE "MEDIA_GENRE"
717 * @brief Media composer.
718 * @details You can use above define to set the condition of media filter and order keyword.
722 #define MEDIA_COMPOSER "MEDIA_COMPOSER"
726 * @details You can use above define to set the condition of media filter and order keyword.
730 #define MEDIA_YEAR "MEDIA_YEAR"
733 * @brief Media recorded date.
734 * @details You can use above define to set the condition of media filter and order keyword.
738 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"
741 * @brief Media track number.
742 * @details You can use above define to set the condition of media filter and order keyword.
746 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"
749 * @brief Media duration.
750 * @details You can use above define to set the condition of media filter and order keyword.
754 #define MEDIA_DURATION "MEDIA_DURATION"
757 * @brief Media longitude.
758 * @details You can use above define to set the condition of media filter and order keyword.
762 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"
765 * @brief Media latitude.
766 * @details You can use above define to set the condition of media filter and order keyword.
770 #define MEDIA_LATITUDE "MEDIA_LATITUDE"
773 * @brief Media altitude.
774 * @details You can use above define to set the condition of media filter and order keyword.
778 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"
781 * @brief Media width.
782 * @details You can use above define to set the condition of media filter and order keyword.
786 #define MEDIA_WIDTH "MEDIA_WIDTH"
789 * @brief Media height.
790 * @details You can use above define to set the condition of media filter and order keyword.
794 #define MEDIA_HEIGHT "MEDIA_HEIGHT"
797 * @brief Media datetaken.
798 * @details You can use above define to set the condition of media filter and order keyword.
802 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"
805 * @brief The time to register favourite.
806 * @details You can use above define to set the condition of media filter and order keyword.
810 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
814 * @details There are 2 types:\n
816 * You can use above define to set the condition of media filter and order keyword.
820 #define MEDIA_IS_DRM "MEDIA_IS_DRM"
823 * @brief Virtual Reality content.
824 * @details You can use above define to set the condition of media filter and order keyword.
828 #define MEDIA_360 "MEDIA_360"
832 * @details You can use above define to set the condition of folder filter and order keyword.
835 #define FOLDER_ID "FOLDER_ID"
838 * @brief Folder full path.
839 * @details You can use above define to set the condition of folder filter and order keyword.
842 #define FOLDER_PATH "FOLDER_PATH"
845 * @brief Folder base name.
846 * @details You can use above define to set the condition of folder filter and order keyword.
849 #define FOLDER_NAME "FOLDER_NAME"
852 * @brief Playlist name.
853 * @details You can use above define to set the condition of playlist filter and order keyword.
856 #define PLAYLIST_NAME "PLAYLIST_NAME"
859 * @brief Playlist id.
860 * @details You can use above define to set the condition of playlist filter and order keyword.
863 #define MEDIA_PLAYLIST_ID "PLAYLIST_ID"
866 * @brief Playlist member order.
867 * @details You can use above define to set the condition of playlist filter and order keyword.
870 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"
873 * @brief Media count in playlist.
874 * @details You can use above define to set the condition of playlist filter and order keyword.
877 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"
881 * @details You can use above define to set the condition of tag filter and order keyword.
884 #define TAG_NAME "TAG_NAME"
888 * @details You can use above define to set the condition of tag filter and order keyword.
891 #define MEDIA_TAG_ID "TAG_ID"
894 * @brief Media count in tag.
895 * @details You can use above define to set the condition of tag filter and order keyword.
898 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"
901 * @brief Bookmark marked time.
902 * @details You can use above define to set the condition of bookmark filter and order keyword.
905 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"
908 * @brief Bookmark id.
909 * @details You can use above define to set the condition of bookmark filter and order keyword.
912 #define MEDIA_BOOKMARK_ID "BOOKMARK_ID"
915 * @brief Bookmark name.
916 * @details You can use above define to set the condition of bookmark filter and order keyword.
919 #define BOOKMARK_NAME "BOOKMARK_NAME"
922 * @deprecated Deprecated since 8.0.
924 * @details You can use above define to set the condition of face filter and order keyword.
927 #define MEDIA_FACE_TAG "MEDIA_FACE_TAG"
930 * @deprecated Deprecated since 8.0.
932 * @details You can use above define to set the condition of face filter and order keyword.
935 #define MEDIA_FACE_ID "MEDIA_FACE_ID"
944 #endif /* __cplusplus */
947 #endif /*__TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__*/