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