Arrange TV Product related code. media_content_product.h and media_content_type_produ...
[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, Deprecated since 4.0) */
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_CONTENT_MEDIA_INFO_MODULE
255  * @brief The structure type for the Media info handle.
256  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
257  */
258 typedef struct media_info_s *media_info_h;
259
260 /**
261  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
262  * @brief The structure type for the Media folder handle.
263  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
264  */
265 typedef struct media_folder_s *media_folder_h;
266
267 /**
268  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
269  * @brief The structure type for the Media playlist handle.
270  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
271  */
272 typedef struct media_playlist_s *media_playlist_h;
273
274 /**
275  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
276  * @brief The structure type for the Media tag handle.
277  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
278  */
279 typedef struct media_tag_s *media_tag_h;
280
281 /**
282  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
283  * @brief The structure type for the Media bookmark handle.
284  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
285  */
286 typedef struct media_bookmark_s *media_bookmark_h;
287
288 /**
289  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
290  * @brief The structure type for the Media album handle.
291  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
292  */
293 typedef struct media_album_s *media_album_h;
294
295 /**
296  * @ingroup CAPI_CONTENT_MEDIA_IMAGE_MODULE
297  * @brief The structure type for the Image metadata handle.
298  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
299  */
300 typedef struct image_meta_s *image_meta_h;
301
302 /**
303  * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
304  * @brief The structure type for the Video metadata handle.
305  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
306  */
307 typedef struct video_meta_s *video_meta_h;
308
309 /**
310  * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
311  * @brief The structure type for the Audio metadata handle.
312  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
313  */
314 typedef struct audio_meta_s *audio_meta_h;
315
316 /**
317  * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
318  * @brief The structure type for the Media filter handle.
319  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
320  */
321 typedef struct filter_s *filter_h;
322
323 /**
324  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
325  * @brief The structure type for the Media storage handle.
326  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
327  */
328 typedef void *media_storage_h;
329
330 /**
331  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
332  * @brief The structure type for the Media face handle.
333  * @since_tizen 3.0
334  */
335 typedef void *media_face_h;
336
337 /**
338  * @ingroup CAPI_CONTENT_MEDIA_CONTENT_MODULE
339  * @brief The structure type for the Media content noti handle.
340  * @since_tizen 3.0
341  */
342 typedef void *media_content_noti_h;
343
344 /**
345  * @ingroup CAPI_MEDIA_CONTENT_MODULE
346  * @brief Called when the media scanning is finished.
347  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
348  * @remarks The callback is called in a separate thread(not in the main loop).
349  *
350  * @param[in] error     The error code
351  * @param[in] user_data The user data passed from the foreach function
352  *
353  * @pre media_content_scan().
354  *
355  * @see media_content_scan()
356  *
357  */
358 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
359
360 /**
361  * @ingroup CAPI_MEDIA_CONTENT_MODULE
362  * @brief Called when the notification of the media DB change is subscribed.
363  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
364  *
365  * @remarks The callback is called in a separate thread(not in the main loop).
366  *
367  * @param[in] error       The error code
368  * @param[in] pid         The PID which publishes notification
369  * @param[in] update_item The update item of notification
370  * @param[in] update_type The update type of notification
371  * @param[in] media_type  The type of the media content (#media_content_type_e)
372  * @param[in] uuid        The UUID of media or directory, which is updated
373  * @param[in] path        The path of the media or directory
374  * @param[in] mime_type   The mime type of the media info
375  * @param[in] user_data   The user data passed from the foreach function
376  *
377  * @pre media_content_db_update_subscribe().
378  * @see media_content_db_update_subscribe()
379  */
380 typedef void (*media_content_db_update_cb)(
381                                 media_content_error_e error,
382                                 int pid,
383                                 media_content_db_update_item_type_e update_item,
384                                 media_content_db_update_type_e update_type,
385                                 media_content_type_e media_type,
386                                 char *uuid,
387                                 char *path,
388                                 char *mime_type,
389                                 void *user_data);
390
391
392 /**
393  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
394  * @brief Called for every available media info.
395  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
396  *
397  * @details Iterates over a list of media info.
398  *
399  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function. \n
400  *                  The callback is called in the main loop.
401  *
402  * @param[in] media     The handle to the media info
403  * @param[in] user_data The user data passed from the foreach function
404  *
405  * @return @c true to continue with the next iteration of the loop,
406  *         otherwise @c false to break out of the loop
407  *
408  * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
409  *      media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
410  *
411  * @see media_info_clone()
412  * @see media_album_foreach_media_from_db()
413  * @see media_playlist_foreach_media_from_db()
414  * @see media_tag_foreach_media_from_db()
415  * @see media_info_foreach_media_from_db()
416  * @see media_folder_foreach_media_from_db()
417  */
418 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
419
420
421 /**
422  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
423  * @brief Called when media items are inserted completely.
424  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
425  *
426  * @remarks The callback is called in a separate thread(not in the main loop).
427  *
428  * @param[in] media     The handle to the media info
429  * @param[in] user_data The user data passed from the foreach function
430  *
431  * @pre media_info_insert_batch_to_db()
432  *
433  * @see media_info_insert_batch_to_db()
434  */
435 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
436
437
438 /**
439  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
440  * @brief Called when the burst shot is inserted completely.
441  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
442  *
443  * @remarks The callback is called in a separate thread(not in the main loop).
444  *
445  * @param[in] media     The handle to the media info
446  * @param[in] user_data The user data passed from the foreach function
447  *
448  * @pre media_info_insert_burst_shot_to_db()
449  *
450  * @see media_info_insert_burst_shot_to_db()
451  *
452  */
453 typedef void (*media_insert_burst_shot_completed_cb)(media_content_error_e error, void * user_data);
454
455
456 /**
457  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
458  * @brief Called when creating a thumbnail image.
459  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
460  *
461  * @details This callback is called for completion of generating the thumbnail image.
462  *         The following error codes can be delivered. \n
463  *         #MEDIA_CONTENT_ERROR_NONE, \n
464  *         #MEDIA_CONTENT_ERROR_INVALID_PARAMETER, \n
465  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
466  *         #MEDIA_CONTENT_ERROR_PERMISSION_DENIED, \n
467  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
468  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
469  *
470  * @remarks The callback is called in a separate thread(not in the main loop).
471  *
472  * @param[in] error     The error code
473  * @param[in] path      The path of the thumbnail which is generated
474  * @param[in] user_data The user data passed from the foreach function
475  *
476  * @pre media_info_create_thumbnail()
477  *
478  * @see media_info_create_thumbnail()
479  */
480 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
481
482 /**
483  * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
484  * @brief Called when face detection on the image is completed.
485  *
486  * @details The following error codes can be delivered. \n
487  *         #MEDIA_CONTENT_ERROR_NONE, \n
488  *         #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, \n
489  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
490  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
491  *         #MEDIA_CONTENT_ERROR_DB_BUSY, \n
492  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
493  *
494  * @since_tizen 3.0
495  *
496  * @remarks The callback is called in a separate thread(not in the main loop).
497  *
498  * @param[in] error     The error code
499  * @param[in] face_count      The number of all detected faces
500  * @param[in] user_data The user data passed from the foreach function
501  *
502  * @pre media_info_start_face_detection()
503  *
504  * @see media_info_start_face_detection()
505  */
506 typedef void (*media_face_detection_completed_cb)(media_content_error_e error, const int face_count, void *user_data);
507
508
509 /**
510  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
511  * @brief Called for every available media folder.
512  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
513  *
514  * @details Iterates over a list of folders.
515  *
516  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function. \n
517  *                  The callback is called in the main loop.
518  *
519  * @param[in] folder    The handle to the media folder
520  * @param[in] user_data The user data passed from the foreach function
521  *
522  * @return @c true to continue with the next iteration of the loop,
523  *         otherwise @c false to break out of the loop
524  *
525  * @pre media_folder_foreach_folder_from_db() will invoke this function.
526  * @see media_folder_clone()
527  * @see media_folder_foreach_folder_from_db()
528  */
529 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
530
531 /**
532  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
533  * @brief Called for every playlist in the obtained list of playlists.
534  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
535  *
536  * @details Iterates over a playlist list.
537  *
538  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function. \n
539  *                  The callback is called in the main loop.
540  *
541  * @param[in] playlist  The handle to the media playlist
542  * @param[in] user_data The user data passed from the foreach function
543  *
544  * @return @c true to continue with the next iteration of the loop,
545  *         otherwise @c false to break out of the loop
546  *
547  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
548  *
549  * @see media_playlist_clone()
550  * @see media_playlist_foreach_playlist_from_db()
551  */
552 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
553
554 /**
555  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
556  * @brief Called for every media info with playlist member ID in the obtained list of media info.
557  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
558  *
559  * @details Iterates over playlist members.
560  *
561  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function. \n
562  *                  The callback is called in the main loop.
563  *
564  * @param[in] playlist_member_id The ID to member of the playlist
565  * @param[in] media              The handle to the media info
566  * @param[in] user_data          The user data passed from the foreach function
567  *
568  * @return @c true to continue with the next iteration of the loop,
569  *         otherwise @c false to break out of the loop
570  *
571  * @pre media_playlist_foreach_media_from_db() will invoke this function.
572  *
573  * @see media_info_clone()
574  * @see media_playlist_foreach_media_from_db()
575  */
576 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
577
578 /**
579  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
580  * @brief Called for every tag in the obtained list of tags.
581  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
582  *
583  * @details Iterates over a list of tags.
584  *
585  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function. \n
586  *                  The callback is called in the main loop.
587  *
588  * @param[in] tag       The handle to the media tag
589  * @param[in] user_data The user data passed from the foreach function
590  *
591  * @return @c true to continue with the next iteration of the loop,
592  *         otherwise @c false to break out of the loop
593  *
594  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
595  *
596  * @see media_tag_clone()
597  * @see media_tag_foreach_tag_from_db()
598  * @see media_info_foreach_tag_from_db()
599  */
600 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
601
602 /**
603  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
604  * @brief Called for every bookmark in the obtained list of bookmarks.
605  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
606  *
607  * @details Iterates over a bookmark list.
608  *
609  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function. \n
610  *                  The callback is called in the main loop.
611  *
612  * @param[in] bookmark  The handle to the video bookmark
613  * @param[in] user_data The user data passed from the foreach function
614  *
615  * @return @c true to continue with the next iteration of the loop,
616  *         otherwise @c false to break out of the loop
617  *
618  * @pre media_info_foreach_bookmark_from_db() will invoke this function.
619  *
620  * @see media_info_foreach_bookmark_from_db()
621  */
622 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
623
624 /**
625  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
626  * @brief Called for every album in the obtained list of groups.
627  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
628  *
629  * @details Iterates over an album list.
630  *
631  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function. \n
632  *                  The callback is called in the main loop.
633  *
634  * @param[in] album     The handle to the media album
635  * @param[in] user_data The user data passed from the foreach function
636  *
637  * @return @c true to continue with the next iteration of the loop,
638  *         otherwise @c false to break out of the loop
639  *
640  * @pre media_album_foreach_album_from_db() will invoke this function.
641  *
642  * @see media_album_clone()
643  * @see media_album_foreach_album_from_db()
644  */
645 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
646
647 /**
648  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
649  * @brief Called for every group in the obtained list of groups.
650  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
651  *
652  * @details Iterates over a media group list.
653  *
654  * @remarks You should not free @a group_name returned by this function. \n
655  *                  The callback is called in the main loop.
656  *
657  * @param[in] group_name The name of the media group
658  * @param[in] user_data  The user data passed from the foreach function
659  *
660  * @return @c true to continue with the next iteration of the loop,
661  *         otherwise @c false to break out of the loop
662  *
663  * @pre media_group_foreach_group_from_db() will invoke this function.
664  *
665  * @see media_group_foreach_group_from_db()
666  */
667 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
668
669 /**
670  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
671  * @brief Called for every storage in the obtained list of storages.
672  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
673  *
674  * @details Iterates over a media storage list.
675  *
676  * @remarks You should not destroy @a storage returned by this function. \n
677  *                  The callback is called in the main loop.
678  *
679  * @param[in] storage     The handle of the media storage
680  * @param[in] user_data  The user data passed from the foreach function
681  *
682  * @return @c true to continue with the next iteration of the loop,
683  *         otherwise @c false to break out of the loop
684  *
685  * @pre media_storage_foreach_storage_from_db() will invoke this function.
686  *
687  * @see media_storage_foreach_storage_from_db()
688  */
689 typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
690
691 /**
692  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
693  * @brief Called for every face in the obtained list of face.
694  * @since_tizen 3.0
695  *
696  * @details Iterates over a media face list.
697  *
698  * @remarks You should not destroy @a face returned by this function. \n
699  *                  The callback is called in the main loop.
700  *
701  * @param[in] face     The handle of the media face
702  * @param[in] user_data  The user data passed from the foreach function
703  *
704  * @return @c true to continue with the next iteration of the loop,
705  *         otherwise @c false to break out of the loop
706  *
707  * @pre media_info_foreach_face_from_db() will invoke this function.
708  *
709  * @see media_info_foreach_face_from_db()
710  */
711 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
712
713 /**
714  * @}
715  */
716
717 /**
718  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
719  * @{
720  */
721
722  /**
723  * @brief You can use above define to set the condition of media filter and order keyword.
724  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
725  *
726  */
727 #define MEDIA_ID "MEDIA_ID" /**< Media ID */
728
729 /**
730  * @brief You can use above define to set the condition of media filter and order keyword.
731  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
732  *
733  */
734 #define MEDIA_PATH "MEDIA_PATH"  /**< Media full path */
735
736 /**
737  * @brief You can use above define to set the condition of media filter and order keyword.
738  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
739  *
740  */
741 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"  /**< Media base name */
742
743 /**
744  * @brief You can use above define to set the condition of media filter and order keyword.
745  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
746  *
747  */
748 #define MEDIA_TYPE "MEDIA_TYPE"  /**< Media type: 0-image, 1-video, 2-sound, 3-music, 4-other*/
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_MIME_TYPE "MEDIA_MIME_TYPE"  /**< Media MIME type */
756
757
758 /**
759  * @brief You can use above define to set the condition of media filter and order keyword.
760  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
761  *
762  */
763 #define MEDIA_SIZE "MEDIA_SIZE"  /**< Media file size */
764
765 /**
766  * @brief You can use above define to set the condition of media filter and order keyword.
767  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
768  *
769  */
770 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"  /**< Media added time */
771
772 /**
773  * @brief You can use above define to set the condition of media filter and order keyword.
774  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
775  *
776  */
777 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"  /**< Media modified time */
778
779 /**
780  * @brief You can use above define to set the condition of media filter and order keyword.
781  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
782  *
783  */
784 #define MEDIA_TIMELINE "MEDIA_TIMELINE"  /**< Media modified time */
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_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"  /**< Media thumbnail path */
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_TITLE "MEDIA_TITLE"  /**< Media title get from tag or file name */
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_ALBUM "MEDIA_ALBUM"  /**< Media album name*/
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_ARTIST "MEDIA_ARTIST"  /**< Media artist*/
813
814 /**
815  * @brief You can use above define to set the condition of media filter and order keyword.
816  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
817  *
818  */
819 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"  /**< Media album_artist*/
820
821 /**
822  * @brief You can use above define to set the condition of media filter and order keyword.
823  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
824  *
825  */
826 #define MEDIA_GENRE "MEDIA_GENRE"  /**< Media genre*/
827
828 /**
829  * @brief You can use above define to set the condition of media filter and order keyword.
830  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
831  *
832  */
833 #define MEDIA_COMPOSER "MEDIA_COMPOSER"  /**< Media composer*/
834
835 /**
836  * @brief You can use above define to set the condition of media filter and order keyword.
837  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
838  *
839  */
840 #define MEDIA_YEAR "MEDIA_YEAR"  /**< Media year*/
841
842 /**
843  * @brief You can use above define to set the condition of media filter and order keyword.
844  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
845  *
846  */
847 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"  /**< Media recorded date*/
848
849 /**
850  * @brief You can use above define to set the condition of media filter and order keyword.
851  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
852  *
853  */
854 #define MEDIA_COPYRIGHT "MEDIA_COPYRIGHT"  /**< Media copyright*/
855
856 /**
857  * @brief You can use above define to set the condition of media filter and order keyword.
858  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
859  *
860  */
861 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"  /**< Media track number*/
862
863 /**
864  * @brief You can use above define to set the condition of media filter and order keyword.
865  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
866  *
867  */
868 #define MEDIA_DESCRIPTION "MEDIA_DESCRIPTION"  /**< Media description*/
869
870 /**
871  * @brief You can use above define to set the condition of media filter and order keyword.
872  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
873  *
874  */
875 #define MEDIA_BITRATE "MEDIA_BITRATE"  /**< Media bitrate*/
876
877 /**
878  * @brief You can use above define to set the condition of media filter and order keyword.
879  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
880  *
881  */
882 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"  /**< Media bit per sample*/
883
884 /**
885  * @brief You can use above define to set the condition of media filter and order keyword.
886  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
887  *
888  */
889 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"  /**< Media sample rate*/
890
891 /**
892  * @brief You can use above define to set the condition of media filter and order keyword.
893  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
894  *
895  */
896 #define MEDIA_CHANNEL "MEDIA_CHANNEL"  /**< Media channel*/
897
898 /**
899  * @brief You can use above define to set the condition of media filter and order keyword.
900  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
901  *
902  */
903 #define MEDIA_DURATION "MEDIA_DURATION"  /**< Media duration */
904
905 /**
906  * @brief You can use above define to set the condition of media filter and order keyword.
907  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
908  *
909  */
910 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"  /**< Media longitude */
911
912 /**
913  * @brief You can use above define to set the condition of media filter and order keyword.
914  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
915  *
916  */
917 #define MEDIA_LATITUDE "MEDIA_LATITUDE"  /**< Media latitude */
918
919 /**
920  * @brief You can use above define to set the condition of media filter and order keyword.
921  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
922  *
923  */
924 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"  /**< Media altitude */
925
926 /**
927  * @brief You can use above define to set the condition of media filter and order keyword.
928  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
929  *
930  */
931 #define MEDIA_WIDTH "MEDIA_WIDTH"  /**< Media width*/
932
933 /**
934  * @brief You can use above define to set the condition of media filter and order keyword.
935  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
936  *
937  */
938 #define MEDIA_HEIGHT "MEDIA_HEIGHT"  /**< Media height*/
939
940 /**
941  * @brief You can use above define to set the condition of media filter and order keyword.
942  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
943  *
944  */
945 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"  /**< Media datetaken*/
946
947 /**
948  * @brief You can use above define to set the condition of media filter and order keyword.
949  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
950  *
951  */
952 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"  /**< Media orientation*/
953
954 /**
955  * @brief You can use above define to set the condition of media filter and order keyword.
956  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
957  *
958  */
959 #define MEDIA_BURST_ID "BURST_ID"  /**< Media burst ID*/
960
961 /**
962  * @brief You can use above define to set the condition of media filter and order keyword.
963  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
964  *
965  */
966 #define MEDIA_PLAYED_COUNT "MEDIA_PLAYED_COUNT"  /**< Media playedcount*/
967
968 /**
969  * @brief You can use above define to set the condition of media filter and order keyword.
970  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
971  *
972  */
973 #define MEDIA_LAST_PLAYED_TIME "MEDIA_LAST_PLAYED_TIME"  /**< Media last played time*/
974
975 /**
976  * @brief You can use above define to set the condition of media filter and order keyword.
977  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
978  *
979  */
980 #define MEDIA_LAST_PLAYED_POSITION "MEDIA_LAST_PLAYED_POSITION"  /**< Media last played position of file*/
981
982 /**
983  * @brief You can use above define to set the condition of media filter and order keyword.
984  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
985  *
986  */
987 #define MEDIA_RATING "MEDIA_RATING"  /**< Media rating*/
988
989 /**
990  * @brief You can use above define to set the condition of media filter and order keyword.
991  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
992  *
993  */
994 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"  /**< The time to register favourite*/
995
996 /**
997  * @brief You can use above define to set the condition of media filter and order keyword.
998  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
999  *
1000  */
1001 #define MEDIA_AUTHOR "MEDIA_AUTHOR"  /**< Media author*/
1002
1003 /**
1004  * @brief You can use above define to set the condition of media filter and order keyword.
1005  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1006  *
1007  */
1008 #define MEDIA_PROVIDER "MEDIA_PROVIDER"  /**< Media provider*/
1009
1010 /**
1011  * @brief You can use above define to set the condition of media filter and order keyword.
1012  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1013  *
1014  */
1015 #define MEDIA_CONTENT_NAME "MEDIA_CONTENT_NAME"  /**< Media content name*/
1016
1017 /**
1018  * @brief You can use above define to set the condition of media filter and order keyword.
1019  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1020  *
1021  */
1022 #define MEDIA_CATEGORY "MEDIA_CATEGORY"  /**< Media category*/
1023
1024 /**
1025  * @brief You can use above define to set the condition of media filter and order keyword.
1026  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1027  *
1028  */
1029 #define MEDIA_LOCATION_TAG "MEDIA_LOCATION_TAG"  /**< Media location tag*/
1030
1031 /**
1032  * @brief You can use above define to set the condition of media filter and order keyword.
1033  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1034  *
1035  */
1036 #define MEDIA_AGE_RATING "MEDIA_AGE_RATING"  /**< Media age rating*/
1037
1038 /**
1039  * @brief You can use above define to set the condition of media filter and order keyword.
1040  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1041  *
1042  */
1043 #define MEDIA_KEYWORD "MEDIA_KEYWORD"  /**< Media keyword*/
1044
1045 /**
1046  * @brief You can use above define to set the condition of media filter and order keyword.
1047  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1048  *
1049  */
1050 #define MEDIA_WEATHER "MEDIA_WEATHER"  /**< Media weather*/
1051
1052 /**
1053  * @brief You can use above define to set the condition of media filter and order keyword.
1054  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1055  *
1056  */
1057 #define MEDIA_IS_DRM "MEDIA_IS_DRM"  /**< Is DRM. 0-not drm, 1-drm*/
1058
1059 /**
1060  * @brief You can use above define to set the condition of media filter and order keyword.
1061  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1062  *
1063  */
1064 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"  /**< Media storage. 0-internal storage, 1-external storage*/
1065
1066 /**
1067  * @brief You can use above define to set the condition of media filter and order keyword.
1068  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1069  *
1070  */
1071 #define MEDIA_EXPOSURE_TIME "MEDIA_EXPOSURE_TIME"       /**< media exposure_time*/
1072
1073 /**
1074  * @brief You can use above define to set the condition of media filter and order keyword.
1075  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1076  *
1077  */
1078 #define MEDIA_FNUMBER "MEDIA_FNUMBER"   /**< media fnumber*/
1079
1080 /**
1081  * @brief You can use above define to set the condition of media filter and order keyword.
1082  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1083  *
1084  */
1085 #define MEDIA_ISO "MEDIA_ISO"   /**< media iso*/
1086
1087 /**
1088  * @brief You can use above define to set the condition of media filter and order keyword.
1089  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1090  *
1091  */
1092 #define MEDIA_MODEL "MEDIA_MODEL"       /**< media model*/
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.3 @elseif WEARABLE 2.3.1 @endif
1097  *
1098  */
1099 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"  /**< Media file name pinyin */
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.3 @elseif WEARABLE 2.3.1 @endif
1104  *
1105  */
1106 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"  /**< Media title pinyin */
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.3 @elseif WEARABLE 2.3.1 @endif
1111  *
1112  */
1113 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN"  /**< Media album pinyin*/
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.3 @elseif WEARABLE 2.3.1 @endif
1118  *
1119  */
1120 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"  /**< Media artist pinyin*/
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_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"  /**< Media album_artist 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_GENRE_PINYIN "MEDIA_GENRE_PINYIN"  /**< Media genre 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_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"  /**< Media composer 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_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"  /**< Media copyright 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_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"  /**< Media description 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_AUTHOR_PINYIN "MEDIA_AUTHOR_PINYIN"  /**< Media author 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_PROVIDER_PINYIN "MEDIA_PROVIDER_PINYIN"  /**< Media provider 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_CONTENT_NAME_PINYIN "MEDIA_CONTENT_NAME_PINYIN"  /**< Media content name 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_CATEGORY_PINYIN "MEDIA_CATEGORY_PINYIN"  /**< Media category 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_LOCATION_TAG_PINYIN "MEDIA_LOCATION_TAG_PINYIN"  /**< Media location tag 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_AGE_RATING_PINYIN "MEDIA_AGE_RATING_PINYIN"  /**< Media age rating 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_KEYWORD_PINYIN "MEDIA_KEYWORD_PINYIN"  /**< Media keyword pinyin*/
1205
1206 /**
1207  * @brief You can use above define to set the condition of media filter and order keyword.
1208  * @since_tizen 3.0
1209  *
1210  */
1211 #define MEDIA_360 "MEDIA_360"  /**< Virtual Reality content*/
1212
1213 /**
1214  * @}
1215  */
1216
1217
1218 /**
1219  * @addtogroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
1220  * @{
1221  */
1222
1223  /**
1224  * @brief You can use above define to set the condition of folder filter and order keyword.
1225  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1226  */
1227 #define FOLDER_ID "FOLDER_ID"  /**< Folder ID */
1228
1229 /**
1230 * @brief You can use above define to set the condition of folder filter and order keyword.
1231 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1232 */
1233 #define FOLDER_PATH "FOLDER_PATH"  /**< Folder full path */
1234
1235 /**
1236 * @brief You can use above define to set the condition of folder filter and order keyword.
1237 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1238 */
1239 #define FOLDER_NAME "FOLDER_NAME"  /**< Folder base name */
1240
1241 /**
1242 * @brief You can use above define to set the condition of folder filter and order keyword.
1243 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1244 */
1245 #define FOLDER_MODIFIED_TIME "FOLDER_MODIFIED_TIME"  /**< Folder modified time */
1246
1247 /**
1248 * @brief You can use above define to set the condition of folder filter and order keyword.
1249 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1250 */
1251 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"  /**< Folder storage. 0-internal storage, 1-external storage*/
1252
1253 /**
1254 * @brief You can use above define to set the condition of folder filter and order keyword.
1255 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1256 */
1257 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"  /**< Folder base name pinyin*/
1258
1259 /**
1260  * @brief You can use above define to set the condition of folder filter and order keyword.
1261  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1262  */
1263 #define FOLDER_ORDER "FOLDER_ORDER"  /**< Folder order info */
1264
1265 /**
1266  * @brief You can use above define to set the condition of folder filter and order keyword.
1267  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1268  */
1269 #define FOLDER_PARENT_FOLDER_ID "FOLDER_PARENT_FOLDER_ID"       /**< parent folder id */
1270
1271 /**
1272  * @}
1273  */
1274
1275 /**
1276  * @addtogroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
1277  * @{
1278  * @brief You can use above define to set the condition of playlist filter and order keyword.
1279  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1280  */
1281 #define PLAYLIST_NAME "PLAYLIST_NAME"  /**< Playlist name */
1282
1283 /**
1284  * @brief You can use above define to set the condition of playlist filter and order keyword.
1285  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1286  */
1287 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"  /**< Playlist name */
1288
1289 /**
1290  * @brief You can use above define to set the condition of playlist filter and order keyword.
1291  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1292  */
1293 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"  /**< Media count in playlist view */
1294
1295 /**
1296  * @}
1297  */
1298
1299 /**
1300  * @addtogroup CAPI_CONTENT_MEDIA_TAG_MODULE
1301  * @{
1302  * @brief You can use above define to set the condition of tag filter and order keyword.
1303  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1304  */
1305 #define TAG_NAME "TAG_NAME"  /**< Tag name */
1306
1307 /**
1308  * @brief You can use above define to set the condition of tag filter and order keyword.
1309  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1310  */
1311 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"  /**< Media count in tag view */
1312
1313 /**
1314  * @}
1315  */
1316
1317 /**
1318  * @addtogroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
1319  * @{
1320  * @brief You can use above define to set the condition of bookmark filter and order keyword.
1321  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1322  */
1323 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"  /**< Bookmark marked time */
1324
1325 /**
1326  * @brief You can use above define to set the condition of bookmark filter and order keyword.
1327  * @since_tizen 4.0
1328  */
1329 #define BOOKMARK_NAME "BOOKMARK_NAME"  /**< Bookmark name */
1330
1331 /**
1332  * @}
1333  */
1334
1335 /**
1336  * @addtogroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
1337  * @{
1338  * @brief You can use above define to set the condition of storage filter and order keyword.
1339  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1340  */
1341 #define MEDIA_STORAGE_ID                                        "STORAGE_ID"  /**< Storage ID */
1342
1343 /**
1344  * @brief You can use above define to set the condition of storage filter and order keyword.
1345  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1346  */
1347 #define MEDIA_STORAGE_PATH                              "STORAGE_PATH"  /**< Storage path */
1348
1349 /**
1350  * @}
1351  */
1352
1353 /**
1354  * @addtogroup CAPI_CONTENT_MEDIA_FACE_MODULE
1355  * @{
1356  * @brief You can use above define to set the condition of face filter and order keyword.
1357  * @since_tizen 3.0
1358  */
1359 #define MEDIA_FACE_TAG                                          "MEDIA_FACE_TAG"        /**< face tag */
1360
1361 /**
1362  * @}
1363  */
1364
1365
1366 #ifdef __cplusplus
1367 }
1368 #endif /* __cplusplus */
1369
1370
1371 #endif /*__TIZEN_MEDIA_CONTENT_TYPE_H__*/