Add other type for media filter
[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_e;
152
153 /**
154  * @ingroup CAPI_MEDIA_CONTENT_MODULE
155  * @brief Enumeration for a media group.
156  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
157  */
158 typedef enum {
159         MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0,    /**< Media group ID for display name */
160         MEDIA_CONTENT_GROUP_TYPE,                /**< Media group ID for a media type */
161         MEDIA_CONTENT_GROUP_MIME_TYPE,           /**< Media group ID for a mime type */
162         MEDIA_CONTENT_GROUP_SIZE,                /**< Media group ID for content size */
163         MEDIA_CONTENT_GROUP_ADDED_TIME,          /**< Media group ID for the added time */
164         MEDIA_CONTENT_GROUP_MODIFIED_TIME,       /**< Media group ID for the modified time */
165         MEDIA_CONTENT_GROUP_TITLE,               /**< Media group ID for a content title */
166         MEDIA_CONTENT_GROUP_ARTIST,              /**< Media group ID for an artist*/
167         MEDIA_CONTENT_GROUP_ALBUM_ARTIST,        /**< Media group ID for an album artist */
168         MEDIA_CONTENT_GROUP_GENRE,               /**< Media group ID for a genre*/
169         MEDIA_CONTENT_GROUP_COMPOSER,            /**< Media group ID for a composer*/
170         MEDIA_CONTENT_GROUP_YEAR,                /**< Media group ID for a year*/
171         MEDIA_CONTENT_GROUP_RECORDED_DATE,       /**< Media group ID for the recorded date*/
172         MEDIA_CONTENT_GROUP_COPYRIGHT,           /**< Media group ID for the copyright*/
173         MEDIA_CONTENT_GROUP_TRACK_NUM,           /**< Media group ID for a track number*/
174         MEDIA_CONTENT_GROUP_DESCRIPTION,         /**< Media group ID for a description */
175         MEDIA_CONTENT_GROUP_LONGITUDE,           /**< Media group ID for the longitude*/
176         MEDIA_CONTENT_GROUP_LATITUDE,            /**< Media group ID for the latitude*/
177         MEDIA_CONTENT_GROUP_ALTITUDE,            /**< Media group ID for the altitude*/
178         MEDIA_CONTENT_GROUP_BURST_IMAGE,         /**< Media group ID for the burst shot*/
179         MEDIA_CONTENT_GROUP_RATING,              /**< Media group ID for a rating*/
180         MEDIA_CONTENT_GROUP_AUTHOR,              /**< Media group ID for an author*/
181         MEDIA_CONTENT_GROUP_PROVIDER,            /**< Media group ID for a provider*/
182         MEDIA_CONTENT_GROUP_CONTENT_NAME,        /**< Media group ID for the content name*/
183         MEDIA_CONTENT_GROUP_CATEGORY,            /**< Media group ID for a category*/
184         MEDIA_CONTENT_GROUP_LOCATION_TAG,        /**< Media group ID for a location tag*/
185         MEDIA_CONTENT_GROUP_AGE_RATING,          /**< Media group ID for an age rating*/
186         MEDIA_CONTENT_GROUP_KEYWORD,             /**< Media group ID for a keyword*/
187         MEDIA_CONTENT_GROUP_WEATHER,             /**< Media group ID for the weather*/
188         MEDIA_CONTENT_GROUP_MAX                  /**< Invalid media group ID*/
189 } media_group_e;
190
191 /**
192  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
193  * @brief The structure type for the Media info handle.
194  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
195  */
196 typedef struct media_info_s *media_info_h;
197
198 /**
199  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
200  * @brief The structure type for the Media folder handle.
201  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
202  */
203 typedef struct media_folder_s *media_folder_h;
204
205 /**
206  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
207  * @brief The structure type for the Media playlist handle.
208  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
209  */
210 typedef struct media_playlist_s *media_playlist_h;
211
212 /**
213  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
214  * @brief The structure type for the Media tag handle.
215  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
216  */
217 typedef struct media_tag_s *media_tag_h;
218
219 /**
220  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
221  * @brief The structure type for the Media bookmark handle.
222  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
223  */
224 typedef struct media_bookmark_s *media_bookmark_h;
225
226 /**
227  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
228  * @brief The structure type for the Media album handle.
229  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
230  */
231 typedef struct media_album_s *media_album_h;
232
233 /**
234  * @ingroup CAPI_CONTENT_MEDIA_IMAGE_MODULE
235  * @brief The structure type for the Image metadata handle.
236  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
237  */
238 typedef struct image_meta_s *image_meta_h;
239
240 /**
241  * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
242  * @brief The structure type for the Video metadata handle.
243  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
244  */
245 typedef struct video_meta_s *video_meta_h;
246
247 /**
248  * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
249  * @brief The structure type for the Audio metadata handle.
250  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
251  */
252 typedef struct audio_meta_s *audio_meta_h;
253
254 /**
255  * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
256  * @brief The structure type for the Media filter handle.
257  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
258  */
259 typedef struct filter_s *filter_h;
260
261 /**
262  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
263  * @brief The structure type for the Media storage handle.
264  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
265  */
266 typedef void *media_storage_h;
267
268 /**
269  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
270  * @brief The structure type for the Media face handle.
271  * @since_tizen 3.0
272  */
273 typedef void *media_face_h;
274
275 /**
276  * @ingroup CAPI_CONTENT_MEDIA_CONTENT_MODULE
277  * @brief The structure type for the Media content noti handle.
278  * @since_tizen 3.0
279  */
280 typedef void *media_content_noti_h;
281
282 /**
283  * @ingroup CAPI_MEDIA_CONTENT_MODULE
284  * @brief Called when the media scanning is finished.
285  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
286  *
287  * @param[in] error     The error code
288  * @param[in] user_data The user data passed from the foreach function
289  *
290  * @pre media_content_scan().
291  *
292  * @see media_content_scan()
293  *
294  */
295 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
296
297 /**
298  * @ingroup CAPI_MEDIA_CONTENT_MODULE
299  * @brief Called when the notification of the media DB change is subscribed.
300  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
301  *
302  * @param[in] error       The error code
303  * @param[in] pid         The PID which publishes notification
304  * @param[in] update_item The update item of notification
305  * @param[in] update_type The update type of notification
306  * @param[in] media_type  The type of the media content (#media_content_type_e)
307  * @param[in] uuid        The UUID of media or directory, which is updated
308  * @param[in] path        The path of the media or directory
309  * @param[in] mime_type   The mime type of the media info
310  * @param[in] user_data   The user data passed from the foreach function
311  *
312  * @pre media_content_db_update_subscribe().
313  * @see media_content_db_update_subscribe()
314  */
315 typedef void (*media_content_db_update_cb)(
316                                 media_content_error_e error,
317                                 int pid,
318                                 media_content_db_update_item_type_e update_item,
319                                 media_content_db_update_type_e update_type,
320                                 media_content_type_e media_type,
321                                 char *uuid,
322                                 char *path,
323                                 char *mime_type,
324                                 void *user_data);
325
326
327 /**
328  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
329  * @brief Called for every available media info.
330  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
331  *
332  * @details Iterates over a list of media info.
333  *
334  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function.
335  *
336  * @param[in] media     The handle to the media info
337  * @param[in] user_data The user data passed from the foreach function
338  *
339  * @return @c true to continue with the next iteration of the loop,
340  *         otherwise @c false to break out of the loop
341  *
342  * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
343  *      media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
344  *
345  * @see media_info_clone()
346  * @see media_album_foreach_media_from_db()
347  * @see media_playlist_foreach_media_from_db()
348  * @see media_tag_foreach_media_from_db()
349  * @see media_info_foreach_media_from_db()
350  * @see media_folder_foreach_media_from_db()
351  */
352 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
353
354
355 /**
356  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
357  * @brief Called when media items are inserted completely.
358  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
359  *
360  * @param[in] media     The handle to the media info
361  * @param[in] user_data The user data passed from the foreach function
362  *
363  * @pre media_info_insert_batch_to_db()
364  *
365  * @see media_info_insert_batch_to_db()
366  */
367 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
368
369
370 /**
371  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
372  * @brief Called when the burst shot is inserted completely.
373  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
374  *
375  * @param[in] media     The handle to the media info
376  * @param[in] user_data The user data passed from the foreach function
377  *
378  * @pre media_info_insert_burst_shot_to_db()
379  *
380  * @see media_info_insert_burst_shot_to_db()
381  *
382  */
383 typedef void (*media_insert_burst_shot_completed_cb)(media_content_error_e error, void * user_data);
384
385
386 /**
387  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
388  * @brief Called when creating a thumbnail image.
389  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
390  *
391  * @details This callback is called for completion of generating the thumbnail image.
392  *
393  * @param[in] error     The error code
394  * @param[in] path      The path of the thumbnail which is generated
395  * @param[in] user_data The user data passed from the foreach function
396  *
397  * @pre media_info_create_thumbnail()
398  *
399  * @see media_info_create_thumbnail()
400  */
401 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
402
403
404 /**
405  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
406  * @brief Called for every available media folder.
407  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
408  *
409  * @details Iterates over a list of folders.
410  *
411  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function.
412  *
413  * @param[in] folder    The handle to the media folder
414  * @param[in] user_data The user data passed from the foreach function
415  *
416  * @return @c true to continue with the next iteration of the loop,
417  *         otherwise @c false to break out of the loop
418  *
419  * @pre media_folder_foreach_folder_from_db() will invoke this function.
420  * @see media_folder_clone()
421  * @see media_folder_foreach_folder_from_db()
422  */
423 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
424
425 /**
426  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
427  * @brief Called for every playlist in the obtained list of playlists.
428  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
429  *
430  * @details Iterates over a playlist list.
431  *
432  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function.
433  *
434  * @param[in] playlist  The handle to the media playlist
435  * @param[in] user_data The user data passed from the foreach function
436  *
437  * @return @c true to continue with the next iteration of the loop,
438  *         otherwise @c false to break out of the loop
439  *
440  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
441  *
442  * @see media_playlist_clone()
443  * @see media_playlist_foreach_playlist_from_db()
444  */
445 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
446
447 /**
448  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
449  * @brief Called for every media info with playlist member ID in the obtained list of media info.
450  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
451  *
452  * @details Iterates over playlist members.
453  *
454  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function.
455  *
456  * @param[in] playlist_member_id The ID to member of the playlist
457  * @param[in] media              The handle to the media info
458  * @param[in] user_data          The user data passed from the foreach function
459  *
460  * @return @c true to continue with the next iteration of the loop,
461  *         otherwise @c false to break out of the loop
462  *
463  * @pre media_playlist_foreach_media_from_db() will invoke this function.
464  *
465  * @see media_info_clone()
466  * @see media_playlist_foreach_media_from_db()
467  */
468 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
469
470 /**
471  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
472  * @brief Called for every tag in the obtained list of tags.
473  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
474  *
475  * @details Iterates over a list of tags.
476  *
477  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function.
478  *
479  * @param[in] tag       The handle to the media tag
480  * @param[in] user_data The user data passed from the foreach function
481  *
482  * @return @c true to continue with the next iteration of the loop,
483  *         otherwise @c false to break out of the loop
484  *
485  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
486  *
487  * @see media_tag_clone()
488  * @see media_tag_foreach_tag_from_db()
489  * @see media_info_foreach_tag_from_db()
490  */
491 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
492
493 /**
494  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
495  * @brief Called for every bookmark in the obtained list of bookmarks.
496  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
497  *
498  * @details Iterates over a bookmark list.
499  *
500  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function.
501  *
502  * @param[in] bookmark  The handle to the video bookmark
503  * @param[in] user_data The user data passed from the foreach function
504  *
505  * @return @c true to continue with the next iteration of the loop,
506  *         otherwise @c false to break out of the loop
507  *
508  * @pre media_info_foreach_bookmark_from_db() will invoke this function.
509  *
510  * @see media_info_foreach_bookmark_from_db()
511  */
512 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
513
514 /**
515  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
516  * @brief Called for every album in the obtained list of groups.
517  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
518  *
519  * @details Iterates over an album list.
520  *
521  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function.
522  *
523  * @param[in] album     The handle to the media album
524  * @param[in] user_data The user data passed from the foreach function
525  *
526  * @return @c true to continue with the next iteration of the loop,
527  *         otherwise @c false to break out of the loop
528  *
529  * @pre media_album_foreach_album_from_db() will invoke this function.
530  *
531  * @see media_album_clone()
532  * @see media_album_foreach_album_from_db()
533  */
534 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
535
536 /**
537  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
538  * @brief Called for every group in the obtained list of groups.
539  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
540  *
541  * @details Iterates over a media group list.
542  *
543  * @remarks You should not free @a group_name returned by this function.
544  *
545  * @param[in] group_name The name of the media group
546  * @param[in] user_data  The user data passed from the foreach function
547  *
548  * @return @c true to continue with the next iteration of the loop,
549  *         otherwise @c false to break out of the loop
550  *
551  * @pre media_group_foreach_group_from_db() will invoke this function.
552  *
553  * @see media_group_foreach_group_from_db()
554  */
555 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
556
557 /**
558  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
559  * @brief Called for every storage in the obtained list of storages.
560  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
561  *
562  * @details Iterates over a media storage list.
563  *
564  * @remarks You should not destroy @a storage returned by this function.
565  *
566  * @param[in] storage     The handle of the media storage
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_storage_foreach_storage_from_db() will invoke this function.
573  *
574  * @see media_storage_foreach_storage_from_db()
575  */
576 typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
577
578 /**
579  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
580  * @brief Called for every face in the obtained list of face.
581  * @since_tizen 3.0
582  *
583  * @details Iterates over a media face list.
584  *
585  * @remarks You should not destroy @a face returned by this function.
586  *
587  * @param[in] face     The handle of the media face
588  * @param[in] user_data  The user data passed from the foreach function
589  *
590  * @return @c true to continue with the next iteration of the loop,
591  *         otherwise @c false to break out of the loop
592  *
593  * @pre media_info_foreach_face_from_db() will invoke this function.
594  *
595  * @see media_info_foreach_face_from_db()
596  */
597 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
598
599 /**
600  * @}
601  */
602
603 /**
604  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
605  * @{
606  */
607
608  /**
609  * @brief You can use above define to set the condition of media filter and order keyword.
610  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
611  *
612  */
613 #define MEDIA_ID "MEDIA_ID" /**< Media ID */
614
615 /**
616  * @brief You can use above define to set the condition of media filter and order keyword.
617  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
618  *
619  */
620 #define MEDIA_PATH "MEDIA_PATH"  /**< Media full path */
621
622 /**
623  * @brief You can use above define to set the condition of media filter and order keyword.
624  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
625  *
626  */
627 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"  /**< Media base name */
628
629 /**
630  * @brief You can use above define to set the condition of media filter and order keyword.
631  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
632  *
633  */
634 #define MEDIA_TYPE "MEDIA_TYPE"  /**< Media type: 0-image, 1-video, 2-sound, 3-music, 4-other*/
635
636 /**
637  * @brief You can use above define to set the condition of media filter and order keyword.
638  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
639  *
640  */
641 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"  /**< Media MIME type */
642
643
644 /**
645  * @brief You can use above define to set the condition of media filter and order keyword.
646  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
647  *
648  */
649 #define MEDIA_SIZE "MEDIA_SIZE"  /**< Media MIME size */
650
651 /**
652  * @brief You can use above define to set the condition of media filter and order keyword.
653  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
654  *
655  */
656 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"  /**< Media added time */
657
658 /**
659  * @brief You can use above define to set the condition of media filter and order keyword.
660  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
661  *
662  */
663 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"  /**< Media modified time */
664
665 /**
666  * @brief You can use above define to set the condition of media filter and order keyword.
667  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
668  *
669  */
670 #define MEDIA_TIMELINE "MEDIA_TIMELINE"  /**< Media modified time */
671
672 /**
673  * @brief You can use above define to set the condition of media filter and order keyword.
674  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
675  *
676  */
677 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"  /**< Media thumbnail path */
678
679 /**
680  * @brief You can use above define to set the condition of media filter and order keyword.
681  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
682  *
683  */
684 #define MEDIA_TITLE "MEDIA_TITLE"  /**< Media title get from tag or file name */
685
686 /**
687  * @brief 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_ALBUM "MEDIA_ALBUM"  /**< Media album name*/
692
693 /**
694  * @brief You can use above define to set the condition of media filter and order keyword.
695  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
696  *
697  */
698 #define MEDIA_ARTIST "MEDIA_ARTIST"  /**< Media artist*/
699
700 /**
701  * @brief You can use above define to set the condition of media filter and order keyword.
702  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
703  *
704  */
705 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"  /**< Media album_artist*/
706
707 /**
708  * @brief You can use above define to set the condition of media filter and order keyword.
709  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
710  *
711  */
712 #define MEDIA_GENRE "MEDIA_GENRE"  /**< Media genre*/
713
714 /**
715  * @brief You can use above define to set the condition of media filter and order keyword.
716  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
717  *
718  */
719 #define MEDIA_COMPOSER "MEDIA_COMPOSER"  /**< Media composer*/
720
721 /**
722  * @brief You can use above define to set the condition of media filter and order keyword.
723  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
724  *
725  */
726 #define MEDIA_YEAR "MEDIA_YEAR"  /**< Media year*/
727
728 /**
729  * @brief You can use above define to set the condition of media filter and order keyword.
730  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
731  *
732  */
733 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"  /**< Media recorded date*/
734
735 /**
736  * @brief 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_COPYRIGHT "MEDIA_COPYRIGHT"  /**< Media copyright*/
741
742 /**
743  * @brief You can use above define to set the condition of media filter and order keyword.
744  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
745  *
746  */
747 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"  /**< Media track number*/
748
749 /**
750  * @brief You can use above define to set the condition of media filter and order keyword.
751  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
752  *
753  */
754 #define MEDIA_DESCRIPTION "MEDIA_DESCRIPTION"  /**< Media description*/
755
756 /**
757  * @brief You can use above define to set the condition of media filter and order keyword.
758  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
759  *
760  */
761 #define MEDIA_BITRATE "MEDIA_BITRATE"  /**< Media bitrate*/
762
763 /**
764  * @brief You can use above define to set the condition of media filter and order keyword.
765  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
766  *
767  */
768 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"  /**< Media bit per sample*/
769
770 /**
771  * @brief You can use above define to set the condition of media filter and order keyword.
772  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
773  *
774  */
775 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"  /**< Media sample rate*/
776
777 /**
778  * @brief You can use above define to set the condition of media filter and order keyword.
779  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
780  *
781  */
782 #define MEDIA_CHANNEL "MEDIA_CHANNEL"  /**< Media channel*/
783
784 /**
785  * @brief You can use above define to set the condition of media filter and order keyword.
786  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
787  *
788  */
789 #define MEDIA_DURATION "MEDIA_DURATION"  /**< Media duration */
790
791 /**
792  * @brief 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_LONGITUDE "MEDIA_LONGITUDE"  /**< Media longitude */
797
798 /**
799  * @brief You can use above define to set the condition of media filter and order keyword.
800  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
801  *
802  */
803 #define MEDIA_LATITUDE "MEDIA_LATITUDE"  /**< Media latitude */
804
805 /**
806  * @brief You can use above define to set the condition of media filter and order keyword.
807  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
808  *
809  */
810 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"  /**< Media altitude */
811
812 /**
813  * @brief You can use above define to set the condition of media filter and order keyword.
814  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
815  *
816  */
817 #define MEDIA_WIDTH "MEDIA_WIDTH"  /**< Media width*/
818
819 /**
820  * @brief You can use above define to set the condition of media filter and order keyword.
821  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
822  *
823  */
824 #define MEDIA_HEIGHT "MEDIA_HEIGHT"  /**< Media height*/
825
826 /**
827  * @brief You can use above define to set the condition of media filter and order keyword.
828  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
829  *
830  */
831 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"  /**< Media datetaken*/
832
833 /**
834  * @brief You can use above define to set the condition of media filter and order keyword.
835  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
836  *
837  */
838 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"  /**< Media orientation*/
839
840 /**
841  * @brief You can use above define to set the condition of media filter and order keyword.
842  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
843  *
844  */
845 #define MEDIA_BURST_ID "BURST_ID"  /**< Media burst ID*/
846
847 /**
848  * @brief 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_PLAYED_COUNT "MEDIA_PLAYED_COUNT"  /**< Media playedcount*/
853
854 /**
855  * @brief You can use above define to set the condition of media filter and order keyword.
856  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
857  *
858  */
859 #define MEDIA_LAST_PLAYED_TIME "MEDIA_LAST_PLAYED_TIME"  /**< Media last played time*/
860
861 /**
862  * @brief You can use above define to set the condition of media filter and order keyword.
863  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
864  *
865  */
866 #define MEDIA_LAST_PLAYED_POSITION "MEDIA_LAST_PLAYED_POSITION"  /**< Media last played position of file*/
867
868 /**
869  * @brief You can use above define to set the condition of media filter and order keyword.
870  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
871  *
872  */
873 #define MEDIA_RATING "MEDIA_RATING"  /**< Media rating*/
874
875 /**
876  * @brief You can use above define to set the condition of media filter and order keyword.
877  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
878  *
879  */
880 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"  /**< 0-not favourite, 1-favourite*/
881
882 /**
883  * @brief You can use above define to set the condition of media filter and order keyword.
884  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
885  *
886  */
887 #define MEDIA_AUTHOR "MEDIA_AUTHOR"  /**< Media authore*/
888
889 /**
890  * @brief You can use above define to set the condition of media filter and order keyword.
891  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
892  *
893  */
894 #define MEDIA_PROVIDER "MEDIA_PROVIDER"  /**< Media provider*/
895
896 /**
897  * @brief You can use above define to set the condition of media filter and order keyword.
898  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
899  *
900  */
901 #define MEDIA_CONTENT_NAME "MEDIA_CONTENT_NAME"  /**< Media content name*/
902
903 /**
904  * @brief 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_CATEGORY "MEDIA_CATEGORY"  /**< Media category*/
909
910 /**
911  * @brief You can use above define to set the condition of media filter and order keyword.
912  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
913  *
914  */
915 #define MEDIA_LOCATION_TAG "MEDIA_LOCATION_TAG"  /**< Media location tag*/
916
917 /**
918  * @brief You can use above define to set the condition of media filter and order keyword.
919  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
920  *
921  */
922 #define MEDIA_AGE_RATING "MEDIA_AGE_RATING"  /**< Media age rating*/
923
924 /**
925  * @brief You can use above define to set the condition of media filter and order keyword.
926  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
927  *
928  */
929 #define MEDIA_KEYWORD "MEDIA_KEYWORD"  /**< Media keyword*/
930
931 /**
932  * @brief You can use above define to set the condition of media filter and order keyword.
933  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
934  *
935  */
936 #define MEDIA_WEATHER "MEDIA_WEATHER"  /**< Media weather*/
937
938 /**
939  * @brief You can use above define to set the condition of media filter and order keyword.
940  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
941  *
942  */
943 #define MEDIA_IS_DRM "MEDIA_IS_DRM"  /**< Is DRM. 0-not drm, 1-drm*/
944
945 /**
946  * @brief You can use above define to set the condition of media filter and order keyword.
947  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
948  *
949  */
950 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"  /**< Media storage. 0-internal storage, 1-external storage*/
951
952 /**
953  * @brief You can use above define to set the condition of media filter and order keyword.
954  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
955  *
956  */
957 #define MEDIA_EXPOSURE_TIME "MEDIA_EXPOSURE_TIME"       /**< media exposure_time*/
958
959 /**
960  * @brief You can use above define to set the condition of media filter and order keyword.
961  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
962  *
963  */
964 #define MEDIA_FNUMBER "MEDIA_FNUMBER"   /**< media fnumber*/
965
966 /**
967  * @brief You can use above define to set the condition of media filter and order keyword.
968  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
969  *
970  */
971 #define MEDIA_ISO "MEDIA_ISO"   /**< media iso*/
972
973 /**
974  * @brief You can use above define to set the condition of media filter and order keyword.
975  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
976  *
977  */
978 #define MEDIA_MODEL "MEDIA_MODEL"       /**< media model*/
979
980 /**
981  * @brief You can use above define to set the condition of media filter and order keyword.
982  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
983  *
984  */
985 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"  /**< Media file name pinyin */
986
987 /**
988  * @brief You can use above define to set the condition of media filter and order keyword.
989  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
990  *
991  */
992 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"  /**< Media title pinyin */
993
994 /**
995  * @brief You can use above define to set the condition of media filter and order keyword.
996  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
997  *
998  */
999 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN"  /**< Media album pinyin*/
1000
1001 /**
1002  * @brief You can use above define to set the condition of media filter and order keyword.
1003  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1004  *
1005  */
1006 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"  /**< Media artist pinyin*/
1007
1008 /**
1009  * @brief You can use above define to set the condition of media filter and order keyword.
1010  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1011  *
1012  */
1013 #define MEDIA_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"  /**< Media album_artist pinyin*/
1014
1015 /**
1016  * @brief You can use above define to set the condition of media filter and order keyword.
1017  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1018  *
1019  */
1020 #define MEDIA_GENRE_PINYIN "MEDIA_GENRE_PINYIN"  /**< Media genre pinyin*/
1021
1022 /**
1023  * @brief You can use above define to set the condition of media filter and order keyword.
1024  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1025  *
1026  */
1027 #define MEDIA_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"  /**< Media composer pinyin*/
1028
1029 /**
1030  * @brief You can use above define to set the condition of media filter and order keyword.
1031  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1032  *
1033  */
1034 #define MEDIA_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"  /**< Media copyright pinyin*/
1035
1036 /**
1037  * @brief You can use above define to set the condition of media filter and order keyword.
1038  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1039  *
1040  */
1041 #define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"  /**< Media description pinyin*/
1042
1043 /**
1044  * @brief 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  *
1047  */
1048 #define MEDIA_AUTHOR_PINYIN "MEDIA_AUTHOR_PINYIN"  /**< Media authore pinyin*/
1049
1050 /**
1051  * @brief You can use above define to set the condition of media filter and order keyword.
1052  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1053  *
1054  */
1055 #define MEDIA_PROVIDER_PINYIN "MEDIA_PROVIDER_PINYIN"  /**< Media provider pinyin*/
1056
1057 /**
1058  * @brief You can use above define to set the condition of media filter and order keyword.
1059  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1060  *
1061  */
1062 #define MEDIA_CONTENT_NAME_PINYIN "MEDIA_CONTENT_NAME_PINYIN"  /**< Media content name pinyin*/
1063
1064 /**
1065  * @brief You can use above define to set the condition of media filter and order keyword.
1066  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1067  *
1068  */
1069 #define MEDIA_CATEGORY_PINYIN "MEDIA_CATEGORY_PINYIN"  /**< Media category pinyin*/
1070
1071 /**
1072  * @brief You can use above define to set the condition of media filter and order keyword.
1073  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1074  *
1075  */
1076 #define MEDIA_LOCATION_TAG_PINYIN "MEDIA_LOCATION_TAG_PINYIN"  /**< Media location tag pinyin*/
1077
1078 /**
1079  * @brief You can use above define to set the condition of media filter and order keyword.
1080  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1081  *
1082  */
1083 #define MEDIA_AGE_RATING_PINYIN "MEDIA_AGE_RATING_PINYIN"  /**< Media age rating pinyin*/
1084
1085 /**
1086  * @brief You can use above define to set the condition of media filter and order keyword.
1087  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1088  *
1089  */
1090 #define MEDIA_KEYWORD_PINYIN "MEDIA_KEYWORD_PINYIN"  /**< Media keyword pinyin*/
1091
1092 /**
1093  * @brief You can use above define to set the condition of media filter and order keyword.
1094  * @since_tizen 3.0
1095  *
1096  */
1097 #define MEDIA_360 "MEDIA_360"
1098
1099 /**
1100  * @}
1101  */
1102
1103
1104 /**
1105  * @addtogroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
1106  * @{
1107  */
1108
1109  /**
1110  * @brief 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_ID "FOLDER_ID"  /**< Folder ID */
1114
1115 /**
1116 * @brief You can use above define to set the condition of folder filter and order keyword.
1117 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1118 */
1119 #define FOLDER_PATH "FOLDER_PATH"  /**< Folder full path */
1120
1121 /**
1122 * @brief You can use above define to set the condition of folder filter and order keyword.
1123 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1124 */
1125 #define FOLDER_NAME "FOLDER_NAME"  /**< Folder base name */
1126
1127 /**
1128 * @brief You can use above define to set the condition of folder filter and order keyword.
1129 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1130 */
1131 #define FOLDER_MODIFIED_TIME "FOLDER_MODIFIED_TIME"  /**< Folder modified time */
1132
1133 /**
1134 * @brief You can use above define to set the condition of folder filter and order keyword.
1135 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1136 */
1137 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"  /**< Folder storage. 0-internal storage, 1-external storage*/
1138
1139 /**
1140 * @brief You can use above define to set the condition of folder filter and order keyword.
1141 * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1142 */
1143 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"  /**< Folder base name pinyin*/
1144
1145 /**
1146  * @brief You can use above define to set the condition of folder filter and order keyword.
1147  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1148  */
1149 #define FOLDER_ORDER "FOLDER_ORDER"  /**< Folder order info */
1150
1151 /**
1152  * @brief You can use above define to set the condition of folder filter and order keyword.
1153  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1154  */
1155 #define FOLDER_PARENT_FOLDER_ID "FOLDER_PARENT_FOLDER_ID"       /**< parent folder id */
1156
1157 /**
1158  * @}
1159  */
1160
1161 /**
1162  * @addtogroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
1163  * @{
1164  * @brief You can use above define to set the condition of playlist filter and order keyword.
1165  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1166  */
1167 #define PLAYLIST_NAME "PLAYLIST_NAME"  /**< Playlist name */
1168
1169 /**
1170  * @brief You can use above define to set the condition of playlist filter and order keyword.
1171  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1172  */
1173 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"  /**< Playlist name */
1174
1175 /**
1176  * @brief You can use above define to set the condition of playlist filter and order keyword.
1177  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1178  */
1179 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"  /**< Media count in playlist view */
1180
1181 /**
1182  * @}
1183  */
1184
1185 /**
1186  * @addtogroup CAPI_CONTENT_MEDIA_TAG_MODULE
1187  * @{
1188  * @brief You can use above define to set the condition of tag filter and order keyword.
1189  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1190  */
1191 #define TAG_NAME "TAG_NAME"  /**< Tag name */
1192
1193 /**
1194  * @brief You can use above define to set the condition of tag filter and order keyword.
1195  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1196  */
1197 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"  /**< Media count in tag view */
1198
1199 /**
1200  * @}
1201  */
1202
1203 /**
1204  * @addtogroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
1205  * @{
1206  * @brief You can use above define to set the condition of bookmark filter and order keyword.
1207  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1208  */
1209 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"  /**< Bookmark marked time */
1210
1211 /**
1212  * @}
1213  */
1214
1215 /**
1216  * @addtogroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
1217  * @{
1218  * @brief You can use above define to set the condition of storage filter and order keyword.
1219  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1220  */
1221 #define MEDIA_STORAGE_ID                                        "STORAGE_ID"  /**< Storage ID */
1222
1223 /**
1224  * @brief You can use above define to set the condition of storage filter and order keyword.
1225  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1226  */
1227 #define MEDIA_STORAGE_PATH                              "STORAGE_PATH"  /**< Storage path */
1228
1229 /**
1230  * @brief You can use above define to set the condition of face filter and order keyword.
1231  * @since_tizen 3.0
1232  */
1233 #define MEDIA_FACE_TAG                                          "MEDIA_FACE_TAG"        /**< face tag */
1234
1235 /**
1236  * @}
1237  */
1238
1239
1240 #ifdef __cplusplus
1241 }
1242 #endif /* __cplusplus */
1243
1244
1245 #endif /*__TIZEN_MEDIA_CONTENT_TYPE_H__*/