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