Remove senior mode
[platform/core/api/media-content.git] / include_product / media_content_type.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17
18 #ifndef __TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__
19 #define __TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__
20
21 #include <time.h>
22 #include <tizen.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* __cplusplus */
27
28 /**
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.
34  */
35
36 /**
37 * @addtogroup CAPI_MEDIA_CONTENT_MODULE
38  * @{
39  */
40
41 /**
42  * @ingroup CAPI_MEDIA_CONTENT_MODULE
43  * @brief Enumeration for the media file format.
44  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
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.
48  */
49 typedef enum {
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_PVR                  = 5,            /**<The type of PVR */
56         MEDIA_CONTENT_TYPE_UHD                  = 6,            /**<The type of UHD */
57         MEDIA_CONTENT_TYPE_SCSA                 = 7,            /**<The type of SCSA */
58 } media_content_type_e;
59
60 /**
61  * @ingroup CAPI_MEDIA_CONTENT_MODULE
62  * @deprecated Deprecated since 5.0.
63  * @brief Enumeration for the storage type.
64  * @details This information is used to establish where the folder is.
65  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
66  */
67 typedef enum {
68         MEDIA_CONTENT_STORAGE_INTERNAL  = 0,    /**< The device's internal storage */
69         MEDIA_CONTENT_STORAGE_EXTERNAL  = 1,    /**< The device's external storage like sd card*/
70         MEDIA_CONTENT_STORAGE_EXTERNAL_USB = 2, /**< The external USB storage (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
71 } media_content_storage_e;
72
73 /**
74  * @ingroup CAPI_MEDIA_CONTENT_MODULE
75  * @brief Enumeration for media content DB update items.
76  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
77  */
78 typedef enum {
79         MEDIA_ITEM_FILE         = 0,            /**< File type, an item updated to DB */
80         MEDIA_ITEM_DIRECTORY    = 1,            /**< Directory type, an item updated to DB */
81 } media_content_db_update_item_type_e;
82
83 /**
84  * @ingroup CAPI_MEDIA_CONTENT_MODULE
85  * @brief Enumeration for media content DB update types.
86  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
87  */
88 typedef enum {
89         MEDIA_CONTENT_INSERT            = 0,            /**< Insert, the type of DB update */
90         MEDIA_CONTENT_DELETE            = 1,            /**< Delete, The type of DB update */
91         MEDIA_CONTENT_UPDATE    = 2,            /**< Update, The type of DB update */
92 } media_content_db_update_type_e;
93
94 /**
95  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
96  * @brief Enumeration for orientation types.
97  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
98  */
99 typedef enum {
100         MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE  = 0,       /**< Not available*/
101         MEDIA_CONTENT_ORIENTATION_NORMAL         = 1,       /**< Normal*/
102         MEDIA_CONTENT_ORIENTATION_HFLIP          = 2,       /**< Flip horizontal*/
103         MEDIA_CONTENT_ORIENTATION_ROT_180        = 3,       /**< Rotate 180 degrees*/
104         MEDIA_CONTENT_ORIENTATION_VFLIP          = 4,       /**< Flip vertical*/
105         MEDIA_CONTENT_ORIENTATION_TRANSPOSE      = 5,       /**< Transpose*/
106         MEDIA_CONTENT_ORIENTATION_ROT_90         = 6,       /**< Rotate 90 degrees*/
107         MEDIA_CONTENT_ORIENTATION_TRANSVERSE     = 7,       /**< Transverse*/
108         MEDIA_CONTENT_ORIENTATION_ROT_270        = 8,       /**< Rotate 270 degrees*/
109 } media_content_orientation_e;
110
111 /**
112  * @ingroup CAPI_MEDIA_CONTENT_MODULE
113  * @brief Enumeration for ordering.
114  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
115  */
116 typedef enum {
117         MEDIA_CONTENT_ORDER_ASC   = 0,      /**< Ascending order*/
118         MEDIA_CONTENT_ORDER_DESC  = 1,      /**< Descending order*/
119         MEDIA_CONTENT_ORDER_OTHER = 2,          /**< order by order key**/
120 } media_content_order_e;
121
122 /**
123  * @ingroup CAPI_MEDIA_CONTENT_MODULE
124  * @brief Enumeration for collations.
125  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
126  */
127 typedef enum {
128         MEDIA_CONTENT_COLLATE_DEFAULT   = 0,        /**< Default collation BINARY */
129         MEDIA_CONTENT_COLLATE_NOCASE    = 1,        /**< Collation NOCASE, not case sensitive */
130         MEDIA_CONTENT_COLLATE_RTRIM     = 2,        /**< Collation RTRIM, trailing space characters are ignored */
131         MEDIA_CONTENT_COLLATE_LOCALIZED = 3,        /**< Collation LOCALIZATION, NOCASE also applied */
132 } media_content_collation_e;
133
134 /**
135 * @brief Error class.
136 * @details Class for Media Content error
137 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
138 *
139 */
140 #define MEDIA_CONTENT_ERROR_CLASS                               TIZEN_ERROR_MEDIA_CONTENT
141
142 /**
143  * @ingroup CAPI_MEDIA_CONTENT_MODULE
144  * @brief Enumeration for a media content error.
145  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
146  */
147 typedef enum {
148         MEDIA_CONTENT_ERROR_NONE                    = TIZEN_ERROR_NONE,                    /**< Successful */
149         MEDIA_CONTENT_ERROR_INVALID_PARAMETER       = TIZEN_ERROR_INVALID_PARAMETER,       /**< Invalid parameter */
150         MEDIA_CONTENT_ERROR_OUT_OF_MEMORY           = TIZEN_ERROR_OUT_OF_MEMORY,           /**< Out of memory */
151         MEDIA_CONTENT_ERROR_INVALID_OPERATION       = TIZEN_ERROR_INVALID_OPERATION,       /**< Invalid Operation */
152         MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE       = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
153         MEDIA_CONTENT_ERROR_PERMISSION_DENIED             = TIZEN_ERROR_PERMISSION_DENIED,                /**< Permission denied */
154         MEDIA_CONTENT_ERROR_DB_FAILED               = MEDIA_CONTENT_ERROR_CLASS | 0x01,    /**< DB operation failed */
155         MEDIA_CONTENT_ERROR_DB_BUSY                 = MEDIA_CONTENT_ERROR_CLASS | 0x02,    /**< DB operation BUSY */
156         MEDIA_CONTENT_ERROR_NETWORK                 = MEDIA_CONTENT_ERROR_CLASS | 0x03,    /**< Network Fail */
157         MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT     = MEDIA_CONTENT_ERROR_CLASS | 0x04,    /**< Unsupported Content */
158         MEDIA_CONTENT_ERROR_NOT_SUPPORTED           = TIZEN_ERROR_NOT_SUPPORTED,           /**< Not supported */
159 } media_content_error_e;
160
161 /**
162  * @ingroup CAPI_MEDIA_CONTENT_MODULE
163  * @brief Enumeration for a media group.
164  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
165  */
166 typedef enum {
167         MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0,    /**< Media group ID for display name */
168         MEDIA_CONTENT_GROUP_TYPE,                /**< Media group ID for a media type */
169         MEDIA_CONTENT_GROUP_MIME_TYPE,           /**< Media group ID for a mime type */
170         MEDIA_CONTENT_GROUP_SIZE,                /**< Media group ID for content size */
171         MEDIA_CONTENT_GROUP_ADDED_TIME,          /**< Media group ID for the added time */
172         MEDIA_CONTENT_GROUP_MODIFIED_TIME,       /**< Media group ID for the modified time */
173         MEDIA_CONTENT_GROUP_TITLE,               /**< Media group ID for a content title */
174         MEDIA_CONTENT_GROUP_ARTIST,              /**< Media group ID for an artist*/
175         MEDIA_CONTENT_GROUP_ALBUM_ARTIST,        /**< Media group ID for an album artist */
176         MEDIA_CONTENT_GROUP_GENRE,               /**< Media group ID for a genre*/
177         MEDIA_CONTENT_GROUP_COMPOSER,            /**< Media group ID for a composer*/
178         MEDIA_CONTENT_GROUP_YEAR,                /**< Media group ID for a year*/
179         MEDIA_CONTENT_GROUP_RECORDED_DATE,       /**< Media group ID for the recorded date*/
180         MEDIA_CONTENT_GROUP_COPYRIGHT,           /**< Media group ID for the copyright*/
181         MEDIA_CONTENT_GROUP_TRACK_NUM,           /**< Media group ID for a track number*/
182         MEDIA_CONTENT_GROUP_DESCRIPTION,         /**< Media group ID for a description */
183         MEDIA_CONTENT_GROUP_LONGITUDE,           /**< Media group ID for the longitude*/
184         MEDIA_CONTENT_GROUP_LATITUDE,            /**< Media group ID for the latitude*/
185         MEDIA_CONTENT_GROUP_ALTITUDE,            /**< Media group ID for the altitude*/
186         MEDIA_CONTENT_GROUP_RATING = 20,              /**< Media group ID for a rating*/
187         MEDIA_CONTENT_GROUP_MODIFIED_MONTH = 29,                 /**< Media group ID for the modified time*/
188         MEDIA_CONTENT_GROUP_MODIFIED_DATE,               /**< Media group ID for the modified date*/
189         MEDIA_CONTENT_GROUP_ALBUM,
190         MEDIA_CONTENT_GROUP_MAX,                /**< Invalid media group ID*/
191         MEDIA_PVR_GROUP_DURATION,
192         MEDIA_PVR_GROUP_TIME_ZONE,
193         MEDIA_PVR_GROUP_PTC,
194         MEDIA_PVR_GROUP_MAJOR,
195         MEDIA_PVR_GROUP_MINOR,
196         MEDIA_PVR_GROUP_CHANNEL_TYPE,
197         MEDIA_PVR_GROUP_CHANNEL_NAME,
198         MEDIA_PVR_GROUP_CHANNEL_NUM,
199         MEDIA_PVR_GROUP_PROGRAM_TITLE,
200         MEDIA_PVR_GROUP_PROGRAM_NUM,
201         MEDIA_PVR_GROUP_PROGRAM_CRID,
202         MEDIA_PVR_GROUP_GUIDANCE,
203         MEDIA_PVR_GROUP_SYNOPSIS,
204         MEDIA_PVR_GROUP_GENRE,
205         MEDIA_PVR_GROUP_LANGUAGE,
206         MEDIA_PVR_GROUP_EMBARGO_TIME,
207         MEDIA_PVR_GROUP_EXPIRY_TIME,
208         MEDIA_PVR_GROUP_START_TIME,
209         MEDIA_PVR_GROUP_PROGRAM_START_TIME,
210         MEDIA_PVR_GROUP_PROGRAM_END_TIME,
211         MEDIA_PVR_GROUP_PROGRAM_DATE,
212         MEDIA_PVR_GROUP_PARENTAL_RATING,
213         MEDIA_PVR_GROUP_TIMER_RECORD,
214         MEDIA_PVR_GROUP_SERIES_RECORD,
215         MEDIA_PVR_GROUP_HD,
216         MEDIA_PVR_GROUP_SUBTITLE,
217         MEDIA_PVR_GROUP_TTX,
218         MEDIA_PVR_GROUP_AD,
219         MEDIA_PVR_GROUP_HARDOF_HEARINGRADIO,
220         MEDIA_PVR_GROUP_DATA_SERVICE,
221         MEDIA_PVR_GROUP_CONTENT_LOCK,
222         MEDIA_PVR_GROUP_CONTENT_WATCH,
223         MEDIA_PVR_GROUP_HAS_AUDIO_ONLY,
224         MEDIA_PVR_GROUP_IS_LOCAL_RECORDED,
225         MEDIA_PVR_GROUP_RESOLUTION,
226         MEDIA_PVR_GROUP_ASPECTRATIO,
227         MEDIA_PVR_GROUP_MODIFIED_MONTH,
228         MEDIA_PVR_GROUP_MODIFIED_DATE,
229         MEDIA_PVR_GROUP_SPORTS_TYPE,
230         MEDIA_PVR_GROUP_GUIDANCE_LENGTH,
231         MEDIA_PVR_GROUP_TVMODE,
232         MEDIA_PVR_GROUP_PLAY_COUNT,
233         MEDIA_PVR_GROUP_PRIVATE_DATA,
234         MEDIA_PVR_GROUP_MAX,
235         MEDIA_UHD_GROUP_CONTENT_TITLE,
236         MEDIA_UHD_GROUP_RELEASE_DATE,
237         MEDIA_UHD_GROUP_SUB_TYPE,
238         MEDIA_UHD_GROUP_FILE_NAME,
239         MEDIA_UHD_GROUP_PLAYED_COUNT,
240         MEDIA_UHD_GROUP_MAX,
241         MEDIA_GROUP_MAX,
242 } media_group_e;
243
244 /**
245  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
246  * @brief The structure type for the Media info handle.
247  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
248  */
249 typedef struct media_info_s *media_info_h;
250
251 /**
252  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
253  * @brief The structure type for the Media folder handle.
254  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
255  */
256 typedef struct media_folder_s *media_folder_h;
257
258 /**
259  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
260  * @brief The structure type for the Media playlist handle.
261  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
262  */
263 typedef struct media_playlist_s *media_playlist_h;
264
265 /**
266  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
267  * @brief The structure type for the Media tag handle.
268  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
269  */
270 typedef struct media_tag_s *media_tag_h;
271
272 /**
273  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
274  * @brief The structure type for the Media bookmark handle.
275  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
276  */
277 typedef struct media_bookmark_s *media_bookmark_h;
278
279 /**
280  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
281  * @brief The structure type for the Media album handle.
282  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
283  */
284 typedef struct media_album_s *media_album_h;
285
286 /**
287  * @ingroup CAPI_CONTENT_MEDIA_IMAGE_META_MODULE
288  * @brief The structure type for the Image metadata handle.
289  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
290  */
291 typedef struct image_meta_s *image_meta_h;
292
293 /**
294  * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
295  * @brief The structure type for the Video metadata handle.
296  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
297  */
298 typedef struct video_meta_s *video_meta_h;
299
300 /**
301  * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
302  * @brief The structure type for the Audio metadata handle.
303  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
304  */
305 typedef struct audio_meta_s *audio_meta_h;
306
307 /**
308  * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
309  * @brief The structure type for the Media filter handle.
310  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
311  */
312 typedef struct filter_s *filter_h;
313
314 /**
315  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
316  * @deprecated Deprecated since 5.0.
317  * @brief The structure type for the Media storage handle.
318  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
319  */
320 typedef void *media_storage_h;
321
322 /**
323  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
324  * @brief The structure type for the Media face handle.
325  * @since_tizen 3.0
326  */
327 typedef void *media_face_h;
328
329 /**
330  * @ingroup CAPI_MEDIA_CONTENT_MODULE
331  * @brief The structure type for the Media content noti handle.
332  * @since_tizen 3.0
333  */
334 typedef void *media_content_noti_h;
335
336 /**
337  * @ingroup CAPI_MEDIA_CONTENT_MODULE
338  * @brief Called when the media scanning is finished.
339  * @details The following error codes can be received: \n
340  *             #MEDIA_CONTENT_ERROR_NONE : Success \n
341  *             #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
342  *             #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
343  *             #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
344  *             #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
345  *             #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
346  *             #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
347  *             #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
348  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
349  * @remarks The callback is called in a separate thread(not in the main loop).
350  *
351  * @param[in] error The error code
352  * @param[in] user_data The user data passed from the foreach function
353  *
354  * @pre media_content_scan_folder().
355  * @see media_content_scan_folder()
356  */
357 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
358
359 /**
360  * @ingroup CAPI_MEDIA_CONTENT_MODULE
361  * @brief Called when the notification of the media DB change is subscribed.
362  * @details The following error codes can be received: \n
363  *             #MEDIA_CONTENT_ERROR_NONE : Success \n
364  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
365  *
366  * @remarks The callback is called in a separate thread(not in the main loop).
367  *
368  * @param[in] error The error code
369  * @param[in] pid The PID which publishes notification
370  * @param[in] update_item The update item of notification
371  * @param[in] update_type The update type of notification
372  * @param[in] media_type The type of the media content (#media_content_type_e)
373  * @param[in] uuid The UUID of media or directory, which is updated
374  * @param[in] path The path of the media or directory
375  * @param[in] mime_type The MIME of the media info
376  * @param[in] user_data The user data passed from the foreach function
377  *
378  * @pre media_content_add_db_updated_cb().
379  * @see media_content_add_db_updated_cb()
380  */
381 typedef void (*media_content_db_update_cb)(
382                                 media_content_error_e error,
383                                 int pid,
384                                 media_content_db_update_item_type_e update_item,
385                                 media_content_db_update_type_e update_type,
386                                 media_content_type_e media_type,
387                                 char *uuid,
388                                 char *path,
389                                 char *mime_type,
390                                 void *user_data);
391
392
393 /**
394  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
395  * @brief Called for every available media info.
396  * @details Iterates over a list of media info.
397  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
398  *
399  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function. \n
400  *                  The callback is called in the main loop.
401  *
402  * @param[in] media The handle to the media info
403  * @param[in] user_data The user data passed from the foreach function
404  *
405  * @return @c true to continue with the next iteration of the loop,
406  *         otherwise @c false to break out of the loop
407  *
408  * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
409  *      media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
410  *
411  * @see media_info_clone()
412  * @see media_album_foreach_media_from_db()
413  * @see media_playlist_foreach_media_from_db()
414  * @see media_tag_foreach_media_from_db()
415  * @see media_info_foreach_media_from_db()
416  * @see media_folder_foreach_media_from_db()
417  */
418 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
419
420
421 /**
422  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
423  * @brief Called when media items are inserted completely.
424  * @details The following error codes can be received: \n
425  *             #MEDIA_CONTENT_ERROR_NONE : Success \n
426  *             #MEDIA_CONTENT_ERROR_INVALID_PARAMETER : Invalid parameter \n
427  *             #MEDIA_CONTENT_ERROR_INVALID_OPERATION : Invalid operation \n
428  *             #MEDIA_CONTENT_ERROR_PERMISSION_DENIED : Permission denied \n
429  *             #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY : Out of memory \n
430  *             #MEDIA_CONTENT_ERROR_DB_FAILED : DB Operation failed \n
431  *             #MEDIA_CONTENT_ERROR_DB_BUSY : DB Operation busy \n
432  *             #MEDIA_CONTENT_ERROR_NETWORK : Network fail \n
433  *             #MEDIA_CONTENT_ERROR_NOT_SUPPORTED : Not supported \n
434  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
435  *
436  * @remarks The callback is called in a separate thread(not in the main loop).
437  *
438  * @param[in] error The error code
439  * @param[in] user_data The user data passed from the foreach function
440  *
441  * @pre media_info_insert_batch_to_db()
442  * @see media_info_insert_batch_to_db()
443  */
444 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
445
446
447 /**
448  * @deprecated Deprecated since 5.0.
449  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
450  * @brief Called when creating a thumbnail image.
451  * @details This callback is called for completion of generating the thumbnail image.
452  *         The following error codes can be delivered. \n
453  *         #MEDIA_CONTENT_ERROR_NONE, \n
454  *         #MEDIA_CONTENT_ERROR_INVALID_PARAMETER, \n
455  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
456  *         #MEDIA_CONTENT_ERROR_PERMISSION_DENIED, \n
457  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
458  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
459  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
460  *
461  * @remarks The callback is called in a separate thread(not in the main loop).
462  *
463  * @param[in] error The error code
464  * @param[in] path The path of the thumbnail which is generated
465  * @param[in] user_data The user data passed from the foreach function
466  *
467  * @pre media_info_create_thumbnail()
468  * @see media_info_create_thumbnail()
469  */
470 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
471
472 /**
473  * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
474  * @brief Called when face detection on the image is completed.
475  *
476  * @details The following error codes can be delivered. \n
477  *         #MEDIA_CONTENT_ERROR_NONE, \n
478  *         #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, \n
479  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
480  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
481  *         #MEDIA_CONTENT_ERROR_DB_BUSY, \n
482  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
483  *
484  * @since_tizen 3.0
485  *
486  * @remarks The callback is called in a separate thread(not in the main loop).
487  *
488  * @param[in] error The error code
489  * @param[in] face_count The number of all detected faces
490  * @param[in] user_data The user data passed from the foreach function
491  *
492  * @pre media_info_start_face_detection()
493  * @see media_info_start_face_detection()
494  */
495 typedef void (*media_face_detection_completed_cb)(media_content_error_e error, const int face_count, void *user_data);
496
497
498 /**
499  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
500  * @brief Called for every available media folder.
501  * @details Iterates over a list of folders.
502  *
503  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
504  *
505  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function. \n
506  *                  The callback is called in the main loop.
507  *
508  * @param[in] folder The handle to the media folder
509  * @param[in] user_data The user data passed from the foreach function
510  *
511  * @return @c true to continue with the next iteration of the loop,
512  *         otherwise @c false to break out of the loop
513  *
514  * @pre media_folder_foreach_folder_from_db() will invoke this function.
515  * @see media_folder_clone()
516  * @see media_folder_foreach_folder_from_db()
517  */
518 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
519
520 /**
521  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
522  * @brief Called for every playlist in the obtained list of playlists.
523  * @details Iterates over a playlist list.
524  *
525  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
526  *
527  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function. \n
528  *                  The callback is called in the main loop.
529  *
530  * @param[in] playlist The handle to the media playlist
531  * @param[in] user_data The user data passed from the foreach function
532  *
533  * @return @c true to continue with the next iteration of the loop,
534  *         otherwise @c false to break out of the loop
535  *
536  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
537  *
538  * @see media_playlist_clone()
539  * @see media_playlist_foreach_playlist_from_db()
540  */
541 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
542
543 /**
544  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
545  * @brief Called for every media info with playlist member ID in the obtained list of media info.
546  * @details Iterates over playlist members.
547  *
548  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
549  *
550  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function. \n
551  *                  The callback is called in the main loop.
552  *
553  * @param[in] playlist_member_id The ID of the playlist member
554  * @param[in] media The handle to the media info
555  * @param[in] user_data The user data passed from the foreach function
556  *
557  * @return @c true to continue with the next iteration of the loop,
558  *         otherwise @c false to break out of the loop
559  *
560  * @pre media_playlist_foreach_media_from_db() will invoke this function.
561  *
562  * @see media_info_clone()
563  * @see media_playlist_foreach_media_from_db()
564  */
565 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
566
567 /**
568  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
569  * @brief Called for every tag in the obtained list of tags.
570  * @details Iterates over a list of tags.
571  *
572  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
573  *
574  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function. \n
575  *                  The callback is called in the main loop.
576  *
577  * @param[in] tag The handle to the media tag
578  * @param[in] user_data The user data passed from the foreach function
579  *
580  * @return @c true to continue with the next iteration of the loop,
581  *         otherwise @c false to break out of the loop
582  *
583  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
584  *
585  * @see media_tag_clone()
586  * @see media_tag_foreach_tag_from_db()
587  * @see media_info_foreach_tag_from_db()
588  */
589 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
590
591 /**
592  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
593  * @brief Called for every bookmark in the obtained list of bookmarks.
594  * @details Iterates over a bookmark list.
595  *
596  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
597  *
598  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function. \n
599  *                  The callback is called in the main loop.
600  *
601  * @param[in] bookmark The handle to the media bookmark
602  * @param[in] user_data The user data passed from the foreach function
603  *
604  * @return @c true to continue with the next iteration of the loop,
605  *         otherwise @c false to break out of the loop
606  *
607  * @pre media_info_foreach_bookmark_from_db() will invoke this function.
608  * @see media_info_foreach_bookmark_from_db()
609  */
610 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
611
612 /**
613  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
614  * @brief Called for every album in the obtained list of groups.
615  * @details Iterates over an album list.
616  *
617  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
618  *
619  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function. \n
620  *                  The callback is called in the main loop.
621  *
622  * @param[in] album The handle to the media album
623  * @param[in] user_data The user data passed from the foreach function
624  *
625  * @return @c true to continue with the next iteration of the loop,
626  *         otherwise @c false to break out of the loop
627  *
628  * @pre media_album_foreach_album_from_db() will invoke this function.
629  *
630  * @see media_album_clone()
631  * @see media_album_foreach_album_from_db()
632  */
633 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
634
635 /**
636  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
637  * @brief Called for every group in the obtained list of groups.
638  * @details Iterates over a media group list.
639  *
640  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
641  *
642  * @remarks You should not free @a group_name returned by this function. \n
643  *                  The callback is called in the main loop.
644  *
645  * @param[in] group_name The name of the media group
646  * @param[in] user_data The user data passed from the foreach function
647  *
648  * @return @c true to continue with the next iteration of the loop,
649  *         otherwise @c false to break out of the loop
650  *
651  * @pre media_group_foreach_group_from_db() will invoke this function.
652  * @see media_group_foreach_group_from_db()
653  */
654 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
655
656 /**
657  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
658  * @deprecated Deprecated since 5.0.
659  * @brief Called for every storage in the obtained list of storages.
660  * @details Iterates over a media storage list.
661  *
662  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
663  *
664  * @remarks You should not destroy @a storage returned by this function. \n
665  *                  The callback is called in the main loop.
666  *
667  * @param[in] storage The handle of the media storage
668  * @param[in] user_data The user data passed from the foreach function
669  *
670  * @return @c true to continue with the next iteration of the loop,
671  *         otherwise @c false to break out of the loop
672  *
673  * @pre media_storage_foreach_storage_from_db() will invoke this function.
674  * @see media_storage_foreach_storage_from_db()
675  */
676 typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
677
678 /**
679  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
680  * @brief Called for every face in the obtained list of face.
681  * @details Iterates over a media face list.
682  *
683  * @since_tizen 3.0
684  *
685  * @remarks You should not destroy @a face returned by this function. \n
686  *                  The callback is called in the main loop.
687  *
688  * @param[in] face The handle of the media face
689  * @param[in] user_data The user data passed from the foreach function
690  *
691  * @return @c true to continue with the next iteration of the loop,
692  *         otherwise @c false to break out of the loop
693  *
694  * @pre media_info_foreach_face_from_db() will invoke this function.
695  * @see media_info_foreach_face_from_db()
696  */
697 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
698
699 /**
700  * @}
701  */
702
703 /**
704  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
705  * @{
706  */
707
708  /**
709  * @brief Media ID.
710  * @details You can use above define to set the condition of media filter and order keyword.
711  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
712  *
713  */
714 #define MEDIA_ID "MEDIA_ID"
715
716 /**
717  * @brief Media full path.
718  * @details You can use above define to set the condition of media filter and order keyword.
719  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
720  *
721  */
722 #define MEDIA_PATH "MEDIA_PATH"
723
724 /**
725  * @brief The file name including the extension.
726  * @details You can use above define to set the condition of media filter and order keyword.
727  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
728  *
729  */
730 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"
731
732 /**
733  * @brief Media type.
734  * @details There are 5 media types:\n
735  *               0-image, 1-video, 2-sound, 3-music, 4-other\n
736  *               You can use above define to set the condition of media filter and order keyword.
737  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
738  *
739  */
740 #define MEDIA_TYPE "MEDIA_TYPE"
741
742 /**
743  * @brief Media MIME type.
744  * @details You can use above define to set the condition of media filter and order keyword.
745  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
746  *
747  */
748 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"
749
750
751 /**
752  * @brief Media file size.
753  * @details You can use above define to set the condition of media filter and order keyword.
754  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
755  *
756  */
757 #define MEDIA_SIZE "MEDIA_SIZE"
758
759 /**
760  * @brief The time that content file was first added to media database.
761  * @details You can use above define to set the condition of media filter and order keyword.
762  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
763  *
764  */
765 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"
766
767 /**
768  * @brief The last modification time provided by the file system.
769  * @details You can use above define to set the condition of media filter and order keyword.
770  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
771  *
772  */
773 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"
774
775 /**
776  * @brief  Media created time.
777  * @details You can use above define to set the condition of media filter and order keyword.
778  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
779  *
780  */
781 #define MEDIA_TIMELINE "MEDIA_TIMELINE"
782
783 /**
784  * @brief Media thumbnail path.
785  * @details You can use above define to set the condition of media filter and order keyword.
786  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
787  *
788  */
789 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"
790
791 /**
792  * @brief Media title get from tag or file name.
793  * @details You can use above define to set the condition of media filter and order keyword.
794  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
795  *
796  */
797 #define MEDIA_TITLE "MEDIA_TITLE"
798
799 /**
800  * @brief Media album name.
801  * @details You can use above define to set the condition of media filter and order keyword.
802  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
803  *
804  */
805 #define MEDIA_ALBUM "MEDIA_ALBUM"
806
807 /**
808  * @brief Media artist.
809  * @details You can use above define to set the condition of media filter and order keyword.
810  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
811  *
812  */
813 #define MEDIA_ARTIST "MEDIA_ARTIST"
814
815 /**
816  * @brief Media album artist.
817  * @details You can use above define to set the condition of media filter and order keyword.
818  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
819  *
820  */
821 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"
822
823 /**
824  * @brief Media genre.
825  * @details You can use above define to set the condition of media filter and order keyword.
826  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
827  *
828  */
829 #define MEDIA_GENRE "MEDIA_GENRE"
830
831 /**
832  * @brief Media composer.
833  * @details You can use above define to set the condition of media filter and order keyword.
834  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
835  *
836  */
837 #define MEDIA_COMPOSER "MEDIA_COMPOSER"
838
839 /**
840  * @brief Media year.
841  * @details You can use above define to set the condition of media filter and order keyword.
842  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
843  *
844  */
845 #define MEDIA_YEAR "MEDIA_YEAR"
846
847 /**
848  * @brief Media recorded date.
849  * @details You can use above define to set the condition of media filter and order keyword.
850  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
851  *
852  */
853 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"
854
855 /**
856  * @deprecated Deprecated since 5.5.
857  * @brief Media copyright.
858  * @details You can use above define to set the condition of media filter and order keyword.
859  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
860  *
861  */
862 #define MEDIA_COPYRIGHT "MEDIA_COPYRIGHT"
863
864 /**
865  * @brief Media track number.
866  * @details You can use above define to set the condition of media filter and order keyword.
867  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
868  *
869  */
870 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"
871
872 /**
873  * @deprecated Deprecated since 5.5.
874  * @brief Media description.
875  * @details You can use above define to set the condition of media filter and order keyword.
876  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
877  *
878  */
879 #define MEDIA_DESCRIPTION "MEDIA_DESCRIPTION"
880
881 /**
882  * @deprecated Deprecated since 5.5.
883  * @brief Media bitrate.
884  * @details You can use above define to set the condition of media filter and order keyword.
885  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
886  *
887  */
888 #define MEDIA_BITRATE "MEDIA_BITRATE"
889
890 /**
891  * @deprecated Deprecated since 5.5.
892  * @brief Media bit per sample.
893  * @details You can use above define to set the condition of media filter and order keyword.
894  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
895  *
896  */
897 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"
898
899 /**
900  * @deprecated Deprecated since 5.5.
901  * @brief Media sample rate.
902  * @details You can use above define to set the condition of media filter and order keyword.
903  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
904  *
905  */
906 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"
907
908 /**
909  * @deprecated Deprecated since 5.5.
910  * @brief Media channel.
911  * @details You can use above define to set the condition of media filter and order keyword.
912  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
913  *
914  */
915 #define MEDIA_CHANNEL "MEDIA_CHANNEL"
916
917 /**
918  * @brief Media duration.
919  * @details You can use above define to set the condition of media filter and order keyword.
920  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
921  *
922  */
923 #define MEDIA_DURATION "MEDIA_DURATION"
924
925 /**
926  * @brief Media longitude.
927  * @details You can use above define to set the condition of media filter and order keyword.
928  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
929  *
930  */
931 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"
932
933 /**
934  * @brief Media latitude.
935  * @details You can use above define to set the condition of media filter and order keyword.
936  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
937  *
938  */
939 #define MEDIA_LATITUDE "MEDIA_LATITUDE"
940
941 /**
942  * @brief Media altitude.
943  * @details You can use above define to set the condition of media filter and order keyword.
944  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
945  *
946  */
947 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"
948
949 /**
950  * @brief Media width.
951  * @details You can use above define to set the condition of media filter and order keyword.
952  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
953  *
954  */
955 #define MEDIA_WIDTH "MEDIA_WIDTH"
956
957 /**
958  * @brief Media height.
959  * @details You can use above define to set the condition of media filter and order keyword.
960  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
961  *
962  */
963 #define MEDIA_HEIGHT "MEDIA_HEIGHT"
964
965 /**
966  * @brief Media datetaken.
967  * @details You can use above define to set the condition of media filter and order keyword.
968  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
969  *
970  */
971 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"
972
973 /**
974  * @deprecated Deprecated since 5.5.
975  * @brief Media orientation.
976  * @details You can use above define to set the condition of media filter and order keyword.
977  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
978  *
979  */
980 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"
981
982 /**
983  * @deprecated Deprecated since 5.5.
984  * @brief Media rating.
985  * @details You can use above define to set the condition of media filter and order keyword.
986  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
987  *
988  */
989 #define MEDIA_RATING "MEDIA_RATING"
990
991 /**
992  * @brief The time to register favourite.
993  * @details You can use above define to set the condition of media filter and order keyword.
994  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
995  *
996  */
997 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
998
999 /**
1000  * @brief Is DRM.
1001  * @details There are 2 types:\n
1002  *               0-not drm, 1-drm\n
1003  *               You can use above define to set the condition of media filter and order keyword.
1004  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1005  *
1006  */
1007 #define MEDIA_IS_DRM "MEDIA_IS_DRM"
1008
1009 /**
1010  * @deprecated Deprecated since 5.0.
1011  * @brief Media storage.
1012  * @details There are 3 types:\n
1013  *               0-internal storage, 1-SD card, 2-USB storage\n
1014  *               You can use above define to set the condition of media filter and order keyword.
1015  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1016  *
1017  */
1018 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"
1019
1020 /**
1021  * @deprecated Deprecated since 5.5.
1022  * @brief Media exposure time.
1023  * @details You can use above define to set the condition of media filter and order keyword.
1024  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1025  *
1026  */
1027 #define MEDIA_EXPOSURE_TIME "MEDIA_EXPOSURE_TIME"
1028
1029 /**
1030  * @deprecated Deprecated since 5.5.
1031  * @brief Media fnumber.
1032  * @details You can use above define to set the condition of media filter and order keyword.
1033  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1034  *
1035  */
1036 #define MEDIA_FNUMBER "MEDIA_FNUMBER"
1037
1038 /**
1039  * @deprecated Deprecated since 5.5.
1040  * @brief Media ISO.
1041  * @details You can use above define to set the condition of media filter and order keyword.
1042  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1043  *
1044  */
1045 #define MEDIA_ISO "MEDIA_ISO"
1046
1047 /**
1048  * @deprecated Deprecated since 5.5.
1049  * @brief Media model.
1050  * @details You can use above define to set the condition of media filter and order keyword.
1051  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1052  *
1053  */
1054 #define MEDIA_MODEL "MEDIA_MODEL"
1055
1056 /**
1057  * @brief Media file name pinyin.
1058  * @details You can use above define to set the condition of media filter and order keyword.
1059  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1060  * @remarks Since 4.0, this keyword is related to the following feature:\n
1061  *          - %http://tizen.org/feature/content.filter.pinyin\n
1062  *             If this feature is not supported on the device, PINYIN search does not work.
1063  *
1064  */
1065 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"
1066
1067 /**
1068  * @brief Media title pinyin.
1069  * @details You can use above define to set the condition of media filter and order keyword.
1070  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1071  * @remarks Since 4.0, this keyword is related to the following feature:\n
1072  *          - %http://tizen.org/feature/content.filter.pinyin\n
1073  *             If this feature is not supported on the device, PINYIN search does not work.
1074  *
1075  */
1076 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"
1077
1078 /**
1079  * @brief Media album pinyin.
1080  * @details You can use above define to set the condition of media filter and order keyword.
1081  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1082  * @remarks Since 4.0, this keyword is related to the following feature:\n
1083  *          - %http://tizen.org/feature/content.filter.pinyin\n
1084  *            If this feature is not supported on the device, PINYIN search does not work.
1085  *
1086  */
1087 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN"
1088
1089 /**
1090  * @brief Media artist pinyin.
1091  * @details You can use above define to set the condition of media filter and order keyword.
1092  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1093  * @remarks Since 4.0, this keyword is related to the following feature:\n
1094  *          - %http://tizen.org/feature/content.filter.pinyin\n
1095  *             If this feature is not supported on the device, PINYIN search does not work.
1096  *
1097  */
1098 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"
1099
1100 /**
1101  * @brief Media album artist pinyin.
1102  * @details You can use above define to set the condition of media filter and order keyword.
1103  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1104  * @remarks Since 4.0, this keyword is related to the following feature:\n
1105  *          - %http://tizen.org/feature/content.filter.pinyin\n
1106  *            If this feature is not supported on the device, PINYIN search does not work.
1107  *
1108  */
1109 #define MEDIA_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"
1110
1111 /**
1112  * @brief Media genre pinyin.
1113  * @details You can use above define to set the condition of media filter and order keyword.
1114  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1115  * @remarks Since 4.0, this keyword is related to the following feature:\n
1116  *          - %http://tizen.org/feature/content.filter.pinyin\n
1117  *            If this feature is not supported on the device, PINYIN search does not work.
1118  *
1119  */
1120 #define MEDIA_GENRE_PINYIN "MEDIA_GENRE_PINYIN"
1121
1122 /**
1123  * @brief Media composer pinyin.
1124  * @details You can use above define to set the condition of media filter and order keyword.
1125  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1126  * @remarks Since 4.0, this keyword is related to the following feature:\n
1127  *          - %http://tizen.org/feature/content.filter.pinyin\n
1128  *            If this feature is not supported on the device, PINYIN search does not work.
1129  *
1130  */
1131 #define MEDIA_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"
1132
1133 /**
1134  * @deprecated Deprecated since 5.5.
1135  * @brief Media copyright pinyin.
1136  * @details You can use above define to set the condition of media filter and order keyword.
1137  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1138  * @remarks Since 4.0, this keyword is related to the following feature:\n
1139  *          - %http://tizen.org/feature/content.filter.pinyin\n
1140  *            If this feature is not supported on the device, PINYIN search does not work.
1141  *
1142  */
1143 #define MEDIA_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"
1144
1145 /**
1146  * @deprecated Deprecated since 5.5.
1147  * @brief Media description pinyin.
1148  * @details You can use above define to set the condition of media filter and order keyword.
1149  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1150  * @remarks Since 4.0, this keyword is related to the following feature:\n
1151  *          - %http://tizen.org/feature/content.filter.pinyin\n
1152  *            If this feature is not supported on the device, PINYIN search does not work.
1153  *
1154  */
1155 #define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"
1156
1157 /**
1158  * @brief Virtual Reality content.
1159  * @details You can use above define to set the condition of media filter and order keyword.
1160  * @since_tizen 3.0
1161  *
1162  */
1163 #define MEDIA_360 "MEDIA_360"
1164
1165  /**
1166  * @brief Folder ID.
1167  * @details You can use above define to set the condition of folder filter and order keyword.
1168  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1169  */
1170 #define FOLDER_ID "FOLDER_ID"
1171
1172 /**
1173  * @brief Folder full path.
1174  * @details You can use above define to set the condition of folder filter and order keyword.
1175  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1176  */
1177 #define FOLDER_PATH "FOLDER_PATH"
1178
1179 /**
1180  * @brief Folder base name.
1181  * @details You can use above define to set the condition of folder filter and order keyword.
1182  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1183  */
1184 #define FOLDER_NAME "FOLDER_NAME"
1185
1186 /**
1187  * @deprecated Deprecated since 5.0.
1188  * @brief Folder storage.
1189  * @details There are 2 types:\n
1190  *               0-internal storage, 1-external storage\n
1191  *               You can use above define to set the condition of folder filter and order keyword.
1192  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1193  */
1194 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"
1195
1196 /**
1197  * @brief Folder base name pinyin.
1198  * @details You can use above define to set the condition of folder filter and order keyword.
1199  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1200  * @remarks Since 4.0, this keyword is related to the following feature:\n
1201  *          - %http://tizen.org/feature/content.filter.pinyin\n
1202  *            If this feature is not supported on the device, PINYIN search does not work.
1203  */
1204 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"
1205
1206 /**
1207  * @brief Playlist name.
1208  * @details You can use above define to set the condition of playlist filter and order keyword.
1209  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1210  */
1211 #define PLAYLIST_NAME "PLAYLIST_NAME"
1212
1213 /**
1214  * @brief Playlist id.
1215  * @details You can use above define to set the condition of playlist filter and order keyword.
1216  * @since_tizen 4.0
1217  */
1218 #define MEDIA_PLAYLIST_ID "PLAYLIST_ID"
1219
1220 /**
1221  * @brief Playlist member order.
1222  * @details You can use above define to set the condition of playlist filter and order keyword.
1223  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1224  */
1225 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"
1226
1227 /**
1228  * @brief Media count in playlist.
1229  * @details You can use above define to set the condition of playlist filter and order keyword.
1230  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1231  */
1232 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"
1233
1234 /**
1235  * @brief Tag name.
1236  * @details You can use above define to set the condition of tag filter and order keyword.
1237  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1238  */
1239 #define TAG_NAME "TAG_NAME"
1240
1241 /**
1242  * @brief Tag id.
1243  * @details You can use above define to set the condition of tag filter and order keyword.
1244  * @since_tizen 4.0
1245  */
1246 #define MEDIA_TAG_ID "TAG_ID"
1247
1248 /**
1249  * @brief Media count in tag.
1250  * @details You can use above define to set the condition of tag filter and order keyword.
1251  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1252  */
1253 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"
1254
1255 /**
1256  * @brief Bookmark marked time.
1257  * @details You can use above define to set the condition of bookmark filter and order keyword.
1258  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1259  */
1260 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"
1261
1262 /**
1263  * @brief Bookmark id.
1264  * @details You can use above define to set the condition of bookmark filter and order keyword.
1265  * @since_tizen 4.0
1266  */
1267 #define MEDIA_BOOKMARK_ID "BOOKMARK_ID"
1268
1269 /**
1270  * @brief Bookmark name.
1271  * @details You can use above define to set the condition of bookmark filter and order keyword.
1272  * @since_tizen 4.0
1273  */
1274 #define BOOKMARK_NAME "BOOKMARK_NAME"
1275
1276 /**
1277  * @deprecated Deprecated since 5.0.
1278  * @brief Storage ID.
1279  * @details You can use above define to set the condition of storage filter and order keyword.
1280  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1281  */
1282 #define MEDIA_STORAGE_ID                                        "STORAGE_ID"
1283
1284 /**
1285  * @deprecated Deprecated since 5.0.
1286  * @brief Storage path.
1287  * @details You can use above define to set the condition of storage filter and order keyword.
1288  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1289  */
1290 #define MEDIA_STORAGE_PATH                              "STORAGE_PATH"
1291
1292 /**
1293  * @brief Face tag.
1294  * @details You can use above define to set the condition of face filter and order keyword.
1295  * @since_tizen 3.0
1296  */
1297 #define MEDIA_FACE_TAG  "MEDIA_FACE_TAG"
1298
1299 /**
1300  * @brief Face id.
1301  * @details You can use above define to set the condition of face filter and order keyword.
1302  * @since_tizen 4.0
1303  */
1304 #define MEDIA_FACE_ID   "MEDIA_FACE_ID"
1305
1306 /**
1307  * @}
1308  */
1309
1310
1311 #ifdef __cplusplus
1312 }
1313 #endif /* __cplusplus */
1314
1315
1316 #endif /*__TIZEN_CONTENT_MEDIA_CONTENT_TYPE_H__*/