[ACR-1102] Deprecate unusable user data
[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  * @file media_content_type.h
30  * @brief This file contains API related to media-content enumerations for media data types, groups, orientations, \n
31  *        classes of errors and definitions of media-data. \n
32  *        Listed APIs are called when iterating over lists of album, group, bookmark and other media,  \n
33  *        when media items and burst shot are inserted completely and when notification of media DB change is subscribed.
34  */
35
36 /**
37 * @addtogroup CAPI_MEDIA_CONTENT_MODULE
38  * @{
39  */
40
41 /**
42  * @ingroup CAPI_MEDIA_CONTENT_MODULE
43  * @brief Enumeration for the media file format.
44  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
45  */
46 typedef enum {
47         MEDIA_CONTENT_TYPE_IMAGE                = 0,    /**<The type of an image */
48         MEDIA_CONTENT_TYPE_VIDEO                = 1,    /**<The type of a video */
49         MEDIA_CONTENT_TYPE_SOUND        = 2,    /**<The type of sound */
50         MEDIA_CONTENT_TYPE_MUSIC                = 3,    /**<The type of music */
51         MEDIA_CONTENT_TYPE_OTHERS       = 4,    /**<The type of other */
52 } media_content_type_e;
53
54 /**
55  * @ingroup CAPI_CONTENT_MEDIA_CONTENT_MODULE
56  * @brief Enumeration for the storage type.
57  * @details This information is used to establish where the folder is.
58  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
59  */
60 typedef enum {
61         MEDIA_CONTENT_STORAGE_INTERNAL  = 0,    /**< The device's internal storage */
62         MEDIA_CONTENT_STORAGE_EXTERNAL  = 1,    /**< The device's external storage like sd card*/
63         MEDIA_CONTENT_STORAGE_EXTERNAL_USB = 2, /**< The external USB storage (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif) */
64         MEDIA_CONTENT_STORAGE_CLOUD     = 100,  /**< The Cloud storage (Since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif, Deprecated since 4.0) */
65 } media_content_storage_e;
66
67 /**
68  * @ingroup CAPI_MEDIA_CONTENT_MODULE
69  * @brief Enumeration for media content DB update items.
70  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
71  */
72 typedef enum {
73         MEDIA_ITEM_FILE         = 0,            /**< File type, an item updated to DB */
74         MEDIA_ITEM_DIRECTORY    = 1,            /**< Directory type, an item updated to DB */
75 } media_content_db_update_item_type_e;
76
77 /**
78  * @ingroup CAPI_MEDIA_CONTENT_MODULE
79  * @brief Enumeration for media content DB update types.
80  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
81  */
82 typedef enum {
83         MEDIA_CONTENT_INSERT            = 0,            /**< Insert, the type of DB update */
84         MEDIA_CONTENT_DELETE            = 1,            /**< Delete, The type of DB update */
85         MEDIA_CONTENT_UPDATE    = 2,            /**< Update, The type of DB update */
86 } media_content_db_update_type_e;
87
88 /**
89  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
90  * @brief Enumeration for orientation types.
91  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
92  */
93 typedef enum {
94         MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE  = 0,       /**< Not available*/
95         MEDIA_CONTENT_ORIENTATION_NORMAL         = 1,       /**< Normal*/
96         MEDIA_CONTENT_ORIENTATION_HFLIP          = 2,       /**< Flip horizontal*/
97         MEDIA_CONTENT_ORIENTATION_ROT_180        = 3,       /**< Rotate 180 degrees*/
98         MEDIA_CONTENT_ORIENTATION_VFLIP          = 4,       /**< Flip vertical*/
99         MEDIA_CONTENT_ORIENTATION_TRANSPOSE      = 5,       /**< Transpose*/
100         MEDIA_CONTENT_ORIENTATION_ROT_90         = 6,       /**< Rotate 90 degrees*/
101         MEDIA_CONTENT_ORIENTATION_TRANSVERSE     = 7,       /**< Transverse*/
102         MEDIA_CONTENT_ORIENTATION_ROT_270        = 8,       /**< Rotate 270 degrees*/
103 } media_content_orientation_e;
104
105 /**
106  * @ingroup CAPI_MEDIA_CONTENT_MODULE
107  * @brief Enumeration for ordering.
108  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
109  */
110 typedef enum {
111         MEDIA_CONTENT_ORDER_ASC   = 0,      /**< Ascending order*/
112         MEDIA_CONTENT_ORDER_DESC  = 1,      /**< Descending order*/
113         MEDIA_CONTENT_ORDER_OTHER = 2,          /** order by order key**/
114 } media_content_order_e;
115
116 /**
117  * @ingroup CAPI_MEDIA_CONTENT_MODULE
118  * @brief Enumeration for collations.
119  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
120  */
121 typedef enum {
122         MEDIA_CONTENT_COLLATE_DEFAULT   = 0,        /**< Default collation BINARY */
123         MEDIA_CONTENT_COLLATE_NOCASE    = 1,        /**< Collation NOCASE, not case sensitive */
124         MEDIA_CONTENT_COLLATE_RTRIM     = 2,        /**< Collation RTRIM, trailing space characters are ignored */
125         MEDIA_CONTENT_COLLATE_LOCALIZED = 3,        /**< Collation LOCALIZATION, NOCASE also applied */
126 } media_content_collation_e;
127
128 #define MEDIA_CONTENT_ERROR_CLASS                               TIZEN_ERROR_MEDIA_CONTENT
129
130 /**
131  * @ingroup CAPI_MEDIA_CONTENT_MODULE
132  * @brief Enumeration for a media content error.
133  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
134  */
135 typedef enum {
136         MEDIA_CONTENT_ERROR_NONE                    = TIZEN_ERROR_NONE,                    /**< Successful */
137         MEDIA_CONTENT_ERROR_INVALID_PARAMETER       = TIZEN_ERROR_INVALID_PARAMETER,       /**< Invalid parameter */
138         MEDIA_CONTENT_ERROR_OUT_OF_MEMORY           = TIZEN_ERROR_OUT_OF_MEMORY,           /**< Out of memory */
139         MEDIA_CONTENT_ERROR_INVALID_OPERATION       = TIZEN_ERROR_INVALID_OPERATION,       /**< Invalid Operation */
140         MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE       = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
141         MEDIA_CONTENT_ERROR_PERMISSION_DENIED             = TIZEN_ERROR_PERMISSION_DENIED,                /**< Permission denied */
142         MEDIA_CONTENT_ERROR_DB_FAILED               = MEDIA_CONTENT_ERROR_CLASS | 0x01,    /**< DB operation failed */
143         MEDIA_CONTENT_ERROR_DB_BUSY                 = MEDIA_CONTENT_ERROR_CLASS | 0x02,    /**< DB operation BUSY */
144         MEDIA_CONTENT_ERROR_NETWORK                 = MEDIA_CONTENT_ERROR_CLASS | 0x03,    /**< Network Fail */
145         MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT     = MEDIA_CONTENT_ERROR_CLASS | 0x04,    /**< Unsupported Content */
146         MEDIA_CONTENT_ERROR_NOT_SUPPORTED           = TIZEN_ERROR_NOT_SUPPORTED,           /**< Not supported */
147 } media_content_error_e;
148
149 /**
150  * @ingroup CAPI_MEDIA_CONTENT_MODULE
151  * @brief Enumeration for a media group.
152  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
153  */
154 typedef enum {
155         MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0,    /**< Media group ID for display name */
156         MEDIA_CONTENT_GROUP_TYPE,                /**< Media group ID for a media type */
157         MEDIA_CONTENT_GROUP_MIME_TYPE,           /**< Media group ID for a mime type */
158         MEDIA_CONTENT_GROUP_SIZE,                /**< Media group ID for content size */
159         MEDIA_CONTENT_GROUP_ADDED_TIME,          /**< Media group ID for the added time */
160         MEDIA_CONTENT_GROUP_MODIFIED_TIME,       /**< Media group ID for the modified time */
161         MEDIA_CONTENT_GROUP_TITLE,               /**< Media group ID for a content title */
162         MEDIA_CONTENT_GROUP_ARTIST,              /**< Media group ID for an artist*/
163         MEDIA_CONTENT_GROUP_ALBUM_ARTIST,        /**< Media group ID for an album artist */
164         MEDIA_CONTENT_GROUP_GENRE,               /**< Media group ID for a genre*/
165         MEDIA_CONTENT_GROUP_COMPOSER,            /**< Media group ID for a composer*/
166         MEDIA_CONTENT_GROUP_YEAR,                /**< Media group ID for a year*/
167         MEDIA_CONTENT_GROUP_RECORDED_DATE,       /**< Media group ID for the recorded date*/
168         MEDIA_CONTENT_GROUP_COPYRIGHT,           /**< Media group ID for the copyright*/
169         MEDIA_CONTENT_GROUP_TRACK_NUM,           /**< Media group ID for a track number*/
170         MEDIA_CONTENT_GROUP_DESCRIPTION,         /**< Media group ID for a description */
171         MEDIA_CONTENT_GROUP_LONGITUDE,           /**< Media group ID for the longitude*/
172         MEDIA_CONTENT_GROUP_LATITUDE,            /**< Media group ID for the latitude*/
173         MEDIA_CONTENT_GROUP_ALTITUDE,            /**< Media group ID for the altitude*/
174         MEDIA_CONTENT_GROUP_BURST_IMAGE,         /**< Media group ID for the burst shot (Deprecated since 4.0)*/
175         MEDIA_CONTENT_GROUP_RATING,              /**< Media group ID for a rating*/
176         MEDIA_CONTENT_GROUP_AUTHOR,              /**< Media group ID for an author (Deprecated since 4.0)*/
177         MEDIA_CONTENT_GROUP_PROVIDER,            /**< Media group ID for a provider (Deprecated since 4.0)*/
178         MEDIA_CONTENT_GROUP_CONTENT_NAME,        /**< Media group ID for the content name (Deprecated since 4.0)*/
179         MEDIA_CONTENT_GROUP_CATEGORY,            /**< Media group ID for a category (Deprecated since 4.0)*/
180         MEDIA_CONTENT_GROUP_LOCATION_TAG,        /**< Media group ID for a location tag (Deprecated since 4.0)*/
181         MEDIA_CONTENT_GROUP_AGE_RATING,          /**< Media group ID for an age rating (Deprecated since 4.0)*/
182         MEDIA_CONTENT_GROUP_KEYWORD,             /**< Media group ID for a keyword (Deprecated since 4.0)*/
183         MEDIA_CONTENT_GROUP_WEATHER,             /**< Media group ID for the weather (Deprecated since 4.0)*/
184         MEDIA_CONTENT_GROUP_MAX                  /**< Invalid media group ID*/
185 } media_group_e;
186
187 /**
188  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
189  * @brief The structure type for the Media info handle.
190  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
191  */
192 typedef struct media_info_s *media_info_h;
193
194 /**
195  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
196  * @brief The structure type for the Media folder handle.
197  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
198  */
199 typedef struct media_folder_s *media_folder_h;
200
201 /**
202  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
203  * @brief The structure type for the Media playlist handle.
204  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
205  */
206 typedef struct media_playlist_s *media_playlist_h;
207
208 /**
209  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
210  * @brief The structure type for the Media tag handle.
211  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
212  */
213 typedef struct media_tag_s *media_tag_h;
214
215 /**
216  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
217  * @brief The structure type for the Media bookmark handle.
218  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
219  */
220 typedef struct media_bookmark_s *media_bookmark_h;
221
222 /**
223  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
224  * @brief The structure type for the Media album handle.
225  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
226  */
227 typedef struct media_album_s *media_album_h;
228
229 /**
230  * @ingroup CAPI_CONTENT_MEDIA_IMAGE_MODULE
231  * @brief The structure type for the Image metadata handle.
232  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
233  */
234 typedef struct image_meta_s *image_meta_h;
235
236 /**
237  * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
238  * @brief The structure type for the Video metadata handle.
239  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
240  */
241 typedef struct video_meta_s *video_meta_h;
242
243 /**
244  * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
245  * @brief The structure type for the Audio metadata handle.
246  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
247  */
248 typedef struct audio_meta_s *audio_meta_h;
249
250 /**
251  * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
252  * @brief The structure type for the Media filter handle.
253  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
254  */
255 typedef struct filter_s *filter_h;
256
257 /**
258  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
259  * @brief The structure type for the Media storage handle.
260  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
261  */
262 typedef void *media_storage_h;
263
264 /**
265  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
266  * @brief The structure type for the Media face handle.
267  * @since_tizen 3.0
268  */
269 typedef void *media_face_h;
270
271 /**
272  * @ingroup CAPI_CONTENT_MEDIA_CONTENT_MODULE
273  * @brief The structure type for the Media content noti handle.
274  * @since_tizen 3.0
275  */
276 typedef void *media_content_noti_h;
277
278 /**
279  * @ingroup CAPI_MEDIA_CONTENT_MODULE
280  * @brief Called when the media scanning is finished.
281  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
282  * @remarks The callback is called in a separate thread(not in the main loop).
283  *
284  * @param[in] error     The error code
285  * @param[in] user_data The user data passed from the foreach function
286  *
287  * @pre media_content_scan().
288  *
289  * @see media_content_scan()
290  *
291  */
292 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
293
294 /**
295  * @ingroup CAPI_MEDIA_CONTENT_MODULE
296  * @brief Called when the notification of the media DB change is subscribed.
297  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
298  *
299  * @remarks The callback is called in a separate thread(not in the main loop).
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  * @details Iterates over a list of media info.
330  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
331  *
332  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function. \n
333  *                  The callback is called in the main loop.
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  * @remarks The callback is called in a separate thread(not in the main loop).
360  *
361  * @param[in] media     The handle to the media info
362  * @param[in] user_data The user data passed from the foreach function
363  *
364  * @pre media_info_insert_batch_to_db()
365  *
366  * @see media_info_insert_batch_to_db()
367  */
368 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
369
370
371 /**
372  * @deprecated Deprecated since 4.0.
373  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
374  * @brief Called when the burst shot is inserted completely.
375  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
376  *
377  * @remarks The callback is called in a separate thread(not in the main loop).
378  *
379  * @param[in] media     The handle to the media info
380  * @param[in] user_data The user data passed from the foreach function
381  *
382  * @pre media_info_insert_burst_shot_to_db()
383  *
384  * @see media_info_insert_burst_shot_to_db()
385  *
386  */
387 typedef void (*media_insert_burst_shot_completed_cb)(media_content_error_e error, void * user_data);
388
389
390 /**
391  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
392  * @brief Called when creating a thumbnail image.
393  * @details This callback is called for completion of generating the thumbnail image.
394  *         The following error codes can be delivered. \n
395  *         #MEDIA_CONTENT_ERROR_NONE, \n
396  *         #MEDIA_CONTENT_ERROR_INVALID_PARAMETER, \n
397  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
398  *         #MEDIA_CONTENT_ERROR_PERMISSION_DENIED, \n
399  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
400  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
401  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
402  *
403  * @remarks The callback is called in a separate thread(not in the main loop).
404  *
405  * @param[in] error     The error code
406  * @param[in] path      The path of the thumbnail which is generated
407  * @param[in] user_data The user data passed from the foreach function
408  *
409  * @pre media_info_create_thumbnail()
410  *
411  * @see media_info_create_thumbnail()
412  */
413 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
414
415 /**
416  * @ingroup CAPI_CONTENT_MEDIA_FACE_DETECTION_MODULE
417  * @brief Called when face detection on the image is completed.
418  *
419  * @details The following error codes can be delivered. \n
420  *         #MEDIA_CONTENT_ERROR_NONE, \n
421  *         #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY, \n
422  *         #MEDIA_CONTENT_ERROR_INVALID_OPERATION, \n
423  *         #MEDIA_CONTENT_ERROR_DB_FAILED, \n
424  *         #MEDIA_CONTENT_ERROR_DB_BUSY, \n
425  *         #MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT
426  *
427  * @since_tizen 3.0
428  *
429  * @remarks The callback is called in a separate thread(not in the main loop).
430  *
431  * @param[in] error     The error code
432  * @param[in] face_count      The number of all detected faces
433  * @param[in] user_data The user data passed from the foreach function
434  *
435  * @pre media_info_start_face_detection()
436  *
437  * @see media_info_start_face_detection()
438  */
439 typedef void (*media_face_detection_completed_cb)(media_content_error_e error, const int face_count, void *user_data);
440
441
442 /**
443  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
444  * @brief Called for every available media folder.
445  * @details Iterates over a list of folders.
446  *
447  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
448  *
449  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function. \n
450  *                  The callback is called in the main loop.
451  *
452  * @param[in] folder    The handle to the media folder
453  * @param[in] user_data The user data passed from the foreach function
454  *
455  * @return @c true to continue with the next iteration of the loop,
456  *         otherwise @c false to break out of the loop
457  *
458  * @pre media_folder_foreach_folder_from_db() will invoke this function.
459  * @see media_folder_clone()
460  * @see media_folder_foreach_folder_from_db()
461  */
462 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
463
464 /**
465  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
466  * @brief Called for every playlist in the obtained list of playlists.
467  * @details Iterates over a playlist list.
468  *
469  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
470  *
471  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function. \n
472  *                  The callback is called in the main loop.
473  *
474  * @param[in] playlist  The handle to the media playlist
475  * @param[in] user_data The user data passed from the foreach function
476  *
477  * @return @c true to continue with the next iteration of the loop,
478  *         otherwise @c false to break out of the loop
479  *
480  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
481  *
482  * @see media_playlist_clone()
483  * @see media_playlist_foreach_playlist_from_db()
484  */
485 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
486
487 /**
488  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
489  * @brief Called for every media info with playlist member ID in the obtained list of media info.
490  * @details Iterates over playlist members.
491  *
492  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
493  *
494  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function. \n
495  *                  The callback is called in the main loop.
496  *
497  * @param[in] playlist_member_id The ID to member of the playlist
498  * @param[in] media              The handle to the media info
499  * @param[in] user_data          The user data passed from the foreach function
500  *
501  * @return @c true to continue with the next iteration of the loop,
502  *         otherwise @c false to break out of the loop
503  *
504  * @pre media_playlist_foreach_media_from_db() will invoke this function.
505  *
506  * @see media_info_clone()
507  * @see media_playlist_foreach_media_from_db()
508  */
509 typedef bool (*playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
510
511 /**
512  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
513  * @brief Called for every tag in the obtained list of tags.
514  * @details Iterates over a list of tags.
515  *
516  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
517  *
518  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function. \n
519  *                  The callback is called in the main loop.
520  *
521  * @param[in] tag       The handle to the media tag
522  * @param[in] user_data The user data passed from the foreach function
523  *
524  * @return @c true to continue with the next iteration of the loop,
525  *         otherwise @c false to break out of the loop
526  *
527  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
528  *
529  * @see media_tag_clone()
530  * @see media_tag_foreach_tag_from_db()
531  * @see media_info_foreach_tag_from_db()
532  */
533 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
534
535 /**
536  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
537  * @brief Called for every bookmark in the obtained list of bookmarks.
538  * @details Iterates over a bookmark list.
539  *
540  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
541  *
542  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function. \n
543  *                  The callback is called in the main loop.
544  *
545  * @param[in] bookmark  The handle to the video bookmark
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_info_foreach_bookmark_from_db() will invoke this function.
552  *
553  * @see media_info_foreach_bookmark_from_db()
554  */
555 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
556
557 /**
558  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
559  * @brief Called for every album in the obtained list of groups.
560  * @details Iterates over an album list.
561  *
562  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
563  *
564  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function. \n
565  *                  The callback is called in the main loop.
566  *
567  * @param[in] album     The handle to the media album
568  * @param[in] user_data The user data passed from the foreach function
569  *
570  * @return @c true to continue with the next iteration of the loop,
571  *         otherwise @c false to break out of the loop
572  *
573  * @pre media_album_foreach_album_from_db() will invoke this function.
574  *
575  * @see media_album_clone()
576  * @see media_album_foreach_album_from_db()
577  */
578 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
579
580 /**
581  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
582  * @brief Called for every group in the obtained list of groups.
583  * @details Iterates over a media group list.
584  *
585  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
586  *
587  * @remarks You should not free @a group_name returned by this function. \n
588  *                  The callback is called in the main loop.
589  *
590  * @param[in] group_name The name of the media group
591  * @param[in] user_data  The user data passed from the foreach function
592  *
593  * @return @c true to continue with the next iteration of the loop,
594  *         otherwise @c false to break out of the loop
595  *
596  * @pre media_group_foreach_group_from_db() will invoke this function.
597  *
598  * @see media_group_foreach_group_from_db()
599  */
600 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
601
602 /**
603  * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE
604  * @brief Called for every storage in the obtained list of storages.
605  * @details Iterates over a media storage list.
606  *
607  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
608  *
609  * @remarks You should not destroy @a storage returned by this function. \n
610  *                  The callback is called in the main loop.
611  *
612  * @param[in] storage     The handle of the media storage
613  * @param[in] user_data  The user data passed from the foreach function
614  *
615  * @return @c true to continue with the next iteration of the loop,
616  *         otherwise @c false to break out of the loop
617  *
618  * @pre media_storage_foreach_storage_from_db() will invoke this function.
619  *
620  * @see media_storage_foreach_storage_from_db()
621  */
622 typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data);
623
624 /**
625  * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE
626  * @brief Called for every face in the obtained list of face.
627  * @details Iterates over a media face list.
628  *
629  * @since_tizen 3.0
630  *
631  * @remarks You should not destroy @a face returned by this function. \n
632  *                  The callback is called in the main loop.
633  *
634  * @param[in] face     The handle of the media face
635  * @param[in] user_data  The user data passed from the foreach function
636  *
637  * @return @c true to continue with the next iteration of the loop,
638  *         otherwise @c false to break out of the loop
639  *
640  * @pre media_info_foreach_face_from_db() will invoke this function.
641  *
642  * @see media_info_foreach_face_from_db()
643  */
644 typedef bool (*media_face_cb)(media_face_h face, void *user_data);
645
646 /**
647  * @}
648  */
649
650 /**
651  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
652  * @{
653  */
654
655  /**
656  * @brief Media ID
657  * @details You can use above define to set the condition of media filter and order keyword.
658  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
659  *
660  */
661 #define MEDIA_ID "MEDIA_ID"
662
663 /**
664  * @brief Media full path
665  * @details 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_PATH "MEDIA_PATH"
670
671 /**
672  * @brief The file name including the extension
673  * @details 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_DISPLAY_NAME "MEDIA_DISPLAY_NAME"
678
679 /**
680  * @brief Media type
681  * @details There are 5 media types:\n
682  *               0-image, 1-video, 2-sound, 3-music, 4-other\n
683  *               You can use above define to set the condition of media filter and order keyword.
684  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
685  *
686  */
687 #define MEDIA_TYPE "MEDIA_TYPE"
688
689 /**
690  * @brief Media MIME type
691  * @details You can use above define to set the condition of media filter and order keyword.
692  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
693  *
694  */
695 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"
696
697
698 /**
699  * @brief Media file size
700  * @details 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_SIZE "MEDIA_SIZE"
705
706 /**
707  * @brief The time that content file was first added to media database
708  * @details 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_ADDED_TIME "MEDIA_ADDED_TIME"
713
714 /**
715  * @brief The last modification time provided by the file system
716  * @details You can use above define to set the condition of media filter and order keyword.
717  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
718  *
719  */
720 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"
721
722 /**
723  * @brief  Media created time
724  * @details You can use above define to set the condition of media filter and order keyword.
725  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
726  *
727  */
728 #define MEDIA_TIMELINE "MEDIA_TIMELINE"
729
730 /**
731  * @brief Media thumbnail path
732  * @details You can use above define to set the condition of media filter and order keyword.
733  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
734  *
735  */
736 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"
737
738 /**
739  * @brief Media title get from tag or file name
740  * @details You can use above define to set the condition of media filter and order keyword.
741  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
742  *
743  */
744 #define MEDIA_TITLE "MEDIA_TITLE"
745
746 /**
747  * @brief Media album name
748  * @details You can use above define to set the condition of media filter and order keyword.
749  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
750  *
751  */
752 #define MEDIA_ALBUM "MEDIA_ALBUM"
753
754 /**
755  * @brief Media artist
756  * @details 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_ARTIST "MEDIA_ARTIST"
761
762 /**
763  * @brief Media album artist
764  * @details 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_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"
769
770 /**
771  * @brief Media genre
772  * @details You can use above define to set the condition of media filter and order keyword.
773  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
774  *
775  */
776 #define MEDIA_GENRE "MEDIA_GENRE"
777
778 /**
779  * @brief Media composer
780  * @details You can use above define to set the condition of media filter and order keyword.
781  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
782  *
783  */
784 #define MEDIA_COMPOSER "MEDIA_COMPOSER"
785
786 /**
787  * @brief Media year
788  * @details You can use above define to set the condition of media filter and order keyword.
789  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
790  *
791  */
792 #define MEDIA_YEAR "MEDIA_YEAR"
793
794 /**
795  * @brief Media recorded date
796  * @details You can use above define to set the condition of media filter and order keyword.
797  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
798  *
799  */
800 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"
801
802 /**
803  * @brief Media copyright
804  * @details You can use above define to set the condition of media filter and order keyword.
805  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
806  *
807  */
808 #define MEDIA_COPYRIGHT "MEDIA_COPYRIGHT"
809
810 /**
811  * @brief Media track number
812  * @details 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_TRACK_NUM "MEDIA_TRACK_NUM"
817
818 /**
819  * @brief Media description
820  * @details 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_DESCRIPTION "MEDIA_DESCRIPTION"
825
826 /**
827  * @brief Media bitrate
828  * @details You can use above define to set the condition of media filter and order keyword.
829  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
830  *
831  */
832 #define MEDIA_BITRATE "MEDIA_BITRATE"
833
834 /**
835  * @brief Media bit per sample
836  * @details You can use above define to set the condition of media filter and order keyword.
837  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
838  *
839  */
840 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"
841
842 /**
843  * @brief Media sample rate
844  * @details You can use above define to set the condition of media filter and order keyword.
845  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
846  *
847  */
848 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"
849
850 /**
851  * @brief Media channel
852  * @details You can use above define to set the condition of media filter and order keyword.
853  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
854  *
855  */
856 #define MEDIA_CHANNEL "MEDIA_CHANNEL"
857
858 /**
859  * @brief Media duration
860  * @details You can use above define to set the condition of media filter and order keyword.
861  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
862  *
863  */
864 #define MEDIA_DURATION "MEDIA_DURATION"
865
866 /**
867  * @brief Media longitude
868  * @details 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_LONGITUDE "MEDIA_LONGITUDE"
873
874 /**
875  * @brief Media latitude
876  * @details 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_LATITUDE "MEDIA_LATITUDE"
881
882 /**
883  * @brief Media altitude
884  * @details You can use above define to set the condition of media filter and order keyword.
885  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
886  *
887  */
888 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"
889
890 /**
891  * @brief Media width
892  * @details You can use above define to set the condition of media filter and order keyword.
893  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
894  *
895  */
896 #define MEDIA_WIDTH "MEDIA_WIDTH"
897
898 /**
899  * @brief Media height
900  * @details You can use above define to set the condition of media filter and order keyword.
901  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
902  *
903  */
904 #define MEDIA_HEIGHT "MEDIA_HEIGHT"
905
906 /**
907  * @brief Media datetaken
908  * @details You can use above define to set the condition of media filter and order keyword.
909  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
910  *
911  */
912 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"
913
914 /**
915  * @brief Media orientation
916  * @details You can use above define to set the condition of media filter and order keyword.
917  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
918  *
919  */
920 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"
921
922 /**
923  * @deprecated Deprecated since 4.0.
924  * @brief Media burst ID
925  * @details 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_BURST_ID "BURST_ID"
930
931 /**
932  * @deprecated Deprecated since 4.0.
933  * @brief Media playedcount
934  * @details You can use above define to set the condition of media filter and order keyword.
935  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
936  *
937  */
938 #define MEDIA_PLAYED_COUNT "MEDIA_PLAYED_COUNT"
939
940 /**
941  * @deprecated Deprecated since 4.0.
942  * @brief Media last played time
943  * @details You can use above define to set the condition of media filter and order keyword.
944  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
945  *
946  */
947 #define MEDIA_LAST_PLAYED_TIME "MEDIA_LAST_PLAYED_TIME"
948
949 /**
950  * @deprecated Deprecated since 4.0.
951  * @brief Media last played position of file
952  * @details You can use above define to set the condition of media filter and order keyword.
953  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
954  *
955  */
956 #define MEDIA_LAST_PLAYED_POSITION "MEDIA_LAST_PLAYED_POSITION"
957
958 /**
959  * @brief Media rating
960  * @details You can use above define to set the condition of media filter and order keyword.
961  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
962  *
963  */
964 #define MEDIA_RATING "MEDIA_RATING"
965
966 /**
967  * @brief The time to register favourite
968  * @details You can use above define to set the condition of media filter and order keyword.
969  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
970  *
971  */
972 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"
973
974 /**
975  * @deprecated Deprecated since 4.0.
976  * @brief Media author
977  * @details You can use above define to set the condition of media filter and order keyword.
978  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
979  *
980  */
981 #define MEDIA_AUTHOR "MEDIA_AUTHOR"
982
983 /**
984  * @deprecated Deprecated since 4.0.
985  * @brief Media provider
986  * @details You can use above define to set the condition of media filter and order keyword.
987  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
988  *
989  */
990 #define MEDIA_PROVIDER "MEDIA_PROVIDER"
991
992 /**
993  * @deprecated Deprecated since 4.0.
994  * @brief Media content name
995  * @details 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_CONTENT_NAME "MEDIA_CONTENT_NAME"
1000
1001 /**
1002  * @deprecated Deprecated since 4.0.
1003  * @brief Media category
1004  * @details You can use above define to set the condition of media filter and order keyword.
1005  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1006  *
1007  */
1008 #define MEDIA_CATEGORY "MEDIA_CATEGORY"
1009
1010 /**
1011  * @deprecated Deprecated since 4.0.
1012  * @brief Media location tag
1013  * @details You can use above define to set the condition of media filter and order keyword.
1014  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1015  *
1016  */
1017 #define MEDIA_LOCATION_TAG "MEDIA_LOCATION_TAG"
1018
1019 /**
1020  * @deprecated Deprecated since 4.0.
1021  * @brief Media age rating
1022  * @details You can use above define to set the condition of media filter and order keyword.
1023  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1024  *
1025  */
1026 #define MEDIA_AGE_RATING "MEDIA_AGE_RATING"
1027
1028 /**
1029  * @deprecated Deprecated since 4.0.
1030  * @brief Media keyword
1031  * @details You can use above define to set the condition of media filter and order keyword.
1032  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1033  *
1034  */
1035 #define MEDIA_KEYWORD "MEDIA_KEYWORD"
1036
1037 /**
1038  * @deprecated Deprecated since 4.0.
1039  * @brief Media weather
1040  * @details You can use above define to set the condition of media filter and order keyword.
1041  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1042  *
1043  */
1044 #define MEDIA_WEATHER "MEDIA_WEATHER"
1045
1046 /**
1047  * @brief Is DRM
1048  * @details There are 2 types:\n
1049  *               0-not drm, 1-drm\n
1050  *               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_IS_DRM "MEDIA_IS_DRM"
1055
1056 /**
1057  * @brief Media storage
1058  * @details There are 2 types:\n
1059  *               0-internal storage, 1-external storage\n
1060  *               You can use above define to set the condition of media filter and order keyword.
1061  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1062  *
1063  */
1064 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"
1065
1066 /**
1067  * @brief Media exposure time
1068  * @details You can use above define to set the condition of media filter and order keyword.
1069  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1070  *
1071  */
1072 #define MEDIA_EXPOSURE_TIME "MEDIA_EXPOSURE_TIME"
1073
1074 /**
1075  * @brief Media fnumber
1076  * @details You can use above define to set the condition of media filter and order keyword.
1077  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1078  *
1079  */
1080 #define MEDIA_FNUMBER "MEDIA_FNUMBER"
1081
1082 /**
1083  * @brief Media ISO
1084  * @details You can use above define to set the condition of media filter and order keyword.
1085  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1086  *
1087  */
1088 #define MEDIA_ISO "MEDIA_ISO"
1089
1090 /**
1091  * @brief Media model
1092  * @details You can use above define to set the condition of media filter and order keyword.
1093  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1094  *
1095  */
1096 #define MEDIA_MODEL "MEDIA_MODEL"
1097
1098 /**
1099  * @brief Media file name pinyin
1100  * @details You can use above define to set the condition of media filter and order keyword.
1101  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1102  *
1103  */
1104 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"
1105
1106 /**
1107  * @brief Media title pinyin
1108  * @details You can use above define to set the condition of media filter and order keyword.
1109  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1110  *
1111  */
1112 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"
1113
1114 /**
1115  * @brief Media album pinyin
1116  * @details You can use above define to set the condition of media filter and order keyword.
1117  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1118  *
1119  */
1120 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN"
1121
1122 /**
1123  * @brief Media artist pinyin
1124  * @details You can use above define to set the condition of media filter and order keyword.
1125  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1126  *
1127  */
1128 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"
1129
1130 /**
1131  * @brief Media album artist pinyin
1132  * @details You can use above define to set the condition of media filter and order keyword.
1133  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1134  *
1135  */
1136 #define MEDIA_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"
1137
1138 /**
1139  * @brief Media genre pinyin
1140  * @details You can use above define to set the condition of media filter and order keyword.
1141  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1142  *
1143  */
1144 #define MEDIA_GENRE_PINYIN "MEDIA_GENRE_PINYIN"
1145
1146 /**
1147  * @brief Media composer pinyin
1148  * @details You can use above define to set the condition of media filter and order keyword.
1149  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1150  *
1151  */
1152 #define MEDIA_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"
1153
1154 /**
1155  * @brief Media copyright pinyin
1156  * @details You can use above define to set the condition of media filter and order keyword.
1157  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1158  *
1159  */
1160 #define MEDIA_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"
1161
1162 /**
1163  * @brief Media description pinyin
1164  * @details You can use above define to set the condition of media filter and order keyword.
1165  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1166  *
1167  */
1168 #define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"
1169
1170 /**
1171  * @deprecated Deprecated since 4.0.
1172  * @brief Media author pinyin
1173  * @details You can use above define to set the condition of media filter and order keyword.
1174  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1175  *
1176  */
1177 #define MEDIA_AUTHOR_PINYIN "MEDIA_AUTHOR_PINYIN"
1178
1179 /**
1180  * @deprecated Deprecated since 4.0.
1181  * @brief Media provider pinyin
1182  * @details You can use above define to set the condition of media filter and order keyword.
1183  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1184  *
1185  */
1186 #define MEDIA_PROVIDER_PINYIN "MEDIA_PROVIDER_PINYIN"
1187
1188 /**
1189  * @deprecated Deprecated since 4.0.
1190  * @brief Media content name pinyin
1191  * @details You can use above define to set the condition of media filter and order keyword.
1192  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1193  *
1194  */
1195 #define MEDIA_CONTENT_NAME_PINYIN "MEDIA_CONTENT_NAME_PINYIN"
1196
1197 /**
1198  * @deprecated Deprecated since 4.0.
1199  * @brief Media category pinyin
1200  * @details You can use above define to set the condition of media filter and order keyword.
1201  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1202  *
1203  */
1204 #define MEDIA_CATEGORY_PINYIN "MEDIA_CATEGORY_PINYIN"
1205
1206 /**
1207  * @deprecated Deprecated since 4.0.
1208  * @brief Media location tag pinyin
1209  * @details You can use above define to set the condition of media filter and order keyword.
1210  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1211  *
1212  */
1213 #define MEDIA_LOCATION_TAG_PINYIN "MEDIA_LOCATION_TAG_PINYIN"
1214
1215 /**
1216  * @deprecated Deprecated since 4.0.
1217  * @brief Media age rating pinyin
1218  * @details You can use above define to set the condition of media filter and order keyword.
1219  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1220  *
1221  */
1222 #define MEDIA_AGE_RATING_PINYIN "MEDIA_AGE_RATING_PINYIN"
1223
1224 /**
1225  * @deprecated Deprecated since 4.0.
1226  * @brief Media keyword pinyin
1227  * @details You can use above define to set the condition of media filter and order keyword.
1228  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1229  *
1230  */
1231 #define MEDIA_KEYWORD_PINYIN "MEDIA_KEYWORD_PINYIN"
1232
1233 /**
1234  * @brief Virtual Reality content
1235  * @details You can use above define to set the condition of media filter and order keyword.
1236  * @since_tizen 3.0
1237  *
1238  */
1239 #define MEDIA_360 "MEDIA_360"
1240
1241  /**
1242  * @brief Folder ID
1243  * @details You can use above define to set the condition of folder filter and order keyword.
1244  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1245  */
1246 #define FOLDER_ID "FOLDER_ID"
1247
1248 /**
1249  * @brief Folder full path
1250  * @details You can use above define to set the condition of folder filter and order keyword.
1251  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1252  */
1253 #define FOLDER_PATH "FOLDER_PATH"
1254
1255 /**
1256  * @brief Folder base name
1257  * @details You can use above define to set the condition of folder filter and order keyword.
1258  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1259  */
1260 #define FOLDER_NAME "FOLDER_NAME"
1261
1262 /**
1263  * @deprecated Deprecated since 4.0.
1264  * @brief Folder modified time
1265  * @details You can use above define to set the condition of folder filter and order keyword.
1266  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1267  */
1268 #define FOLDER_MODIFIED_TIME "FOLDER_MODIFIED_TIME"
1269
1270 /**
1271  * @brief Folder storage
1272  * @details There are 2 types:\n
1273  *               0-internal storage, 1-external storage\n
1274  *               You can use above define to set the condition of folder filter and order keyword.
1275  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1276  */
1277 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"
1278
1279 /**
1280  * @brief Folder base name pinyin
1281  * @details You can use above define to set the condition of folder filter and order keyword.
1282  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1283  */
1284 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"
1285
1286 /**
1287  * @deprecated Deprecated since 4.0.
1288  * @brief Folder order info
1289  * @details You can use above define to set the condition of folder filter and order keyword.
1290  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1291  */
1292 #define FOLDER_ORDER "FOLDER_ORDER"
1293
1294 /**
1295  * @deprecated Deprecated since 4.0.
1296  * @brief Parent folder id
1297  * @details You can use above define to set the condition of folder filter and order keyword.
1298  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1299  */
1300 #define FOLDER_PARENT_FOLDER_ID "FOLDER_PARENT_FOLDER_ID"
1301
1302 /**
1303  * @brief Playlist name
1304  * @details You can use above define to set the condition of playlist filter and order keyword.
1305  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1306  */
1307 #define PLAYLIST_NAME "PLAYLIST_NAME"
1308
1309 /**
1310  * @brief Playlist id
1311  * @details You can use above define to set the condition of playlist filter and order keyword.
1312  * @since_tizen 4.0
1313  */
1314 #define MEDIA_PLAYLIST_ID "PLAYLIST_ID"
1315
1316 /**
1317  * @brief Playlist name
1318  * @details You can use above define to set the condition of playlist filter and order keyword.
1319  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1320  */
1321 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"
1322
1323 /**
1324  * @brief Media count in playlist
1325  * @details You can use above define to set the condition of playlist filter and order keyword.
1326  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1327  */
1328 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"
1329
1330 /**
1331  * @brief Tag name
1332  * @details You can use above define to set the condition of tag filter and order keyword.
1333  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1334  */
1335 #define TAG_NAME "TAG_NAME"
1336
1337 /**
1338  * @brief Tag id
1339  * @details You can use above define to set the condition of tag filter and order keyword.
1340  * @since_tizen 4.0
1341  */
1342 #define MEDIA_TAG_ID "TAG_ID"
1343
1344 /**
1345  * @brief Media count in tag
1346  * @details You can use above define to set the condition of tag filter and order keyword.
1347  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1348  */
1349 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"
1350
1351 /**
1352  * @brief Bookmark marked time
1353  * @details You can use above define to set the condition of bookmark filter and order keyword.
1354  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
1355  */
1356 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"
1357
1358 /**
1359  * @brief Bookmark id
1360  * @details You can use above define to set the condition of bookmark filter and order keyword.
1361  * @since_tizen 4.0
1362  */
1363 #define MEDIA_BOOKMARK_ID "BOOKMARK_ID"
1364
1365 /**
1366  * @brief Bookmark name
1367  * @details You can use above define to set the condition of bookmark filter and order keyword.
1368  * @since_tizen 4.0
1369  */
1370 #define BOOKMARK_NAME "BOOKMARK_NAME"
1371
1372 /**
1373  * @brief Storage ID
1374  * @details You can use above define to set the condition of storage filter and order keyword.
1375  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1376  */
1377 #define MEDIA_STORAGE_ID                                        "STORAGE_ID"
1378
1379 /**
1380  * @brief Storage path
1381  * @details You can use above define to set the condition of storage filter and order keyword.
1382  * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
1383  */
1384 #define MEDIA_STORAGE_PATH                              "STORAGE_PATH"
1385
1386 /**
1387  * @brief Face tag
1388  * @details You can use above define to set the condition of face filter and order keyword.
1389  * @since_tizen 3.0
1390  */
1391 #define MEDIA_FACE_TAG  "MEDIA_FACE_TAG"
1392
1393 /**
1394  * @brief Face id
1395  * @details You can use above define to set the condition of face filter and order keyword.
1396  * @since_tizen 4.0
1397  */
1398 #define MEDIA_FACE_ID   "MEDIA_FACE_ID"
1399
1400 /**
1401  * @}
1402  */
1403
1404
1405 #ifdef __cplusplus
1406 }
1407 #endif /* __cplusplus */
1408
1409
1410 #endif /*__TIZEN_MEDIA_CONTENT_TYPE_H__*/