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