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