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