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