Fix build fail
[platform/core/api/media-content.git] / include / media_content_type.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 #ifndef __TIZEN_MEDIA_CONTENT_TYPE_H__
19 #define __TIZEN_MEDIA_CONTENT_TYPE_H__
20
21 #include <time.h>
22 #include <tizen.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* __cplusplus */
27
28
29 #ifndef DEPRECATED_API
30 #define DEPRECATED_API __attribute__ ((deprecated))
31 #endif
32
33 /**
34  * @file media_content_type.h
35  * @brief This file contains API related to media-content enumerations for media data types, groups, orientations, \n
36  *        classes of errors and definitions of media-data. \n
37  *        Listed APIs are called when iterating over lists of album, group, bookmark and other media,  \n
38  *        when media items and burst shot are inserted completely and when notification of media DB change is subscribed.
39  */
40
41 /**
42 * @addtogroup CAPI_MEDIA_CONTENT_MODULE
43  * @{
44  */
45
46 /**
47  * @ingroup CAPI_MEDIA_CONTENT_MODULE
48  * @brief Enumeration for the media file format.
49  */
50 typedef enum
51 {
52     MEDIA_CONTENT_TYPE_IMAGE   = 0,  /**<The type of an image */
53     MEDIA_CONTENT_TYPE_VIDEO   = 1,  /**<The type of a video */
54     MEDIA_CONTENT_TYPE_SOUND   = 2,  /**<The type of sound */
55     MEDIA_CONTENT_TYPE_MUSIC   = 3,  /**<The type of music */
56     MEDIA_CONTENT_TYPE_OTHERS  = 4,  /**<The type of other */
57 } media_content_type_e;
58
59 /**
60  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
61  * @brief Enumeration for the storage type.
62  * @details This information is used to establish where the folder is.
63  */
64 typedef enum
65 {
66         MEDIA_CONTENT_STORAGE_INTERNAL  = 0,  /**< The device's internal storage */
67         MEDIA_CONTENT_STORAGE_EXTERNAL  = 1,  /**< The device's external storage */
68 } media_content_storage_e;
69
70 /**
71  * @ingroup CAPI_MEDIA_CONTENT_MODULE
72  * @brief Enumeration for media content DB update items.
73  */
74 typedef enum {
75     MEDIA_ITEM_FILE       = 0,              /**< File type, an item updated to DB */
76     MEDIA_ITEM_DIRECTORY  = 1,              /**< Directory type, an item updated to DB */
77 } media_content_db_update_item_type_e;
78
79 /**
80  * @ingroup CAPI_MEDIA_CONTENT_MODULE
81  * @brief Enumeration for media content DB update types.
82  */
83 typedef enum {
84     MEDIA_CONTENT_INSERT  = 0,              /**< Insert, the type of DB update */
85     MEDIA_CONTENT_DELETE  = 1,              /**< Delete, The type of DB update */
86     MEDIA_CONTENT_UPDATE  = 2,              /**< Update, The type of DB update */
87 } media_content_db_update_type_e;
88
89 /**
90  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
91  * @brief Enumeration for orientation types.
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  */
109 typedef enum
110 {
111     MEDIA_CONTENT_ORDER_ASC   = 0,      /**< Ascending order*/
112     MEDIA_CONTENT_ORDER_DESC  = 1,      /**< Descending order*/
113 } media_content_order_e;
114
115 /**
116  * @ingroup CAPI_MEDIA_CONTENT_MODULE
117  * @brief Enumeration for collations.
118  */
119 typedef enum
120 {
121     MEDIA_CONTENT_COLLATE_DEFAULT   = 0,        /**< Default collation BINARY */
122     MEDIA_CONTENT_COLLATE_NOCASE    = 1,        /**< Collation NOCASE, not case sensitive */
123     MEDIA_CONTENT_COLLATE_RTRIM     = 2,        /**< Collation RTRIM, trailing space characters are ignored */
124     MEDIA_CONTENT_COLLATE_LOCALIZED = 3,        /**< Collation LOCALIZATION, NOCASE also applied */
125 } media_content_collation_e;
126
127 #define MEDIA_CONTENT_ERROR_CLASS                               TIZEN_ERROR_MEDIA_CONTENT
128
129 /**
130  * @ingroup CAPI_MEDIA_CONTENT_MODULE
131  * @brief Enumeration for a media content error.
132  */
133  typedef enum
134 {
135     MEDIA_CONTENT_ERROR_NONE                    = TIZEN_ERROR_NONE,                    /**< Successful */
136     MEDIA_CONTENT_ERROR_INVALID_PARAMETER       = TIZEN_ERROR_INVALID_PARAMETER,       /**< Invalid parameter */
137     MEDIA_CONTENT_ERROR_OUT_OF_MEMORY           = TIZEN_ERROR_OUT_OF_MEMORY,           /**< Out of memory */
138     MEDIA_CONTENT_ERROR_INVALID_OPERATION       = TIZEN_ERROR_INVALID_OPERATION,       /**< Invalid Operation */
139     MEDIA_CONTENT_FILE_NO_SPACE_ON_DEVICE       = TIZEN_ERROR_FILE_NO_SPACE_ON_DEVICE, /**< No space left on device */
140     MEDIA_CONTENT_ERROR_PERMISSION_DENIED                 = TIZEN_ERROR_PERMISSION_DENIED,                /**< Permission denied */
141     MEDIA_CONTENT_ERROR_DB_FAILED               = MEDIA_CONTENT_ERROR_CLASS | 0x01,    /**< DB operation failed */
142     MEDIA_CONTENT_ERROR_DB_BUSY                 = MEDIA_CONTENT_ERROR_CLASS | 0x02,    /**< DB operation BUSY */
143     MEDIA_CONTENT_ERROR_NETWORK                 = MEDIA_CONTENT_ERROR_CLASS | 0x03,    /**< Network Fail */
144     MEDIA_CONTENT_ERROR_UNSUPPORTED_CONTENT     = MEDIA_CONTENT_ERROR_CLASS | 0x04,    /**< Unsupported Content */
145 } media_content_error_e;
146
147 /**
148  * @ingroup CAPI_MEDIA_CONTENT_MODULE
149  * @brief Enumeration for a media group.
150  */
151 typedef enum {
152     MEDIA_CONTENT_GROUP_DISPLAY_NAME = 0,    /**< Media group ID for display name */
153     MEDIA_CONTENT_GROUP_TYPE,                /**< Media group ID for a media type */
154     MEDIA_CONTENT_GROUP_MIME_TYPE,           /**< Media group ID for a mime type */
155     MEDIA_CONTENT_GROUP_SIZE,                /**< Media group ID for content size */
156     MEDIA_CONTENT_GROUP_ADDED_TIME,          /**< Media group ID for the added time */
157     MEDIA_CONTENT_GROUP_MODIFIED_TIME,       /**< Media group ID for the modified time */
158     MEDIA_CONTENT_GROUP_TITLE,               /**< Media group ID for a content title */
159     MEDIA_CONTENT_GROUP_ARTIST,              /**< Media group ID for an artist*/
160     MEDIA_CONTENT_GROUP_ALBUM_ARTIST,        /**< Media group ID for an album artist */
161     MEDIA_CONTENT_GROUP_GENRE,               /**< Media group ID for a genre*/
162     MEDIA_CONTENT_GROUP_COMPOSER,            /**< Media group ID for a composer*/
163     MEDIA_CONTENT_GROUP_YEAR,                /**< Media group ID for a year*/
164     MEDIA_CONTENT_GROUP_RECORDED_DATE,       /**< Media group ID for the recorded date*/
165     MEDIA_CONTENT_GROUP_COPYRIGHT,           /**< Media group ID for the copyright*/
166     MEDIA_CONTENT_GROUP_TRACK_NUM,           /**< Media group ID for a track number*/
167     MEDIA_CONTENT_GROUP_DESCRIPTION,         /**< Media group ID for a description */
168     MEDIA_CONTENT_GROUP_LONGITUDE,           /**< Media group ID for the longitude*/
169     MEDIA_CONTENT_GROUP_LATITUDE,            /**< Media group ID for the latitude*/
170     MEDIA_CONTENT_GROUP_ALTITUDE,            /**< Media group ID for the altitude*/
171     MEDIA_CONTENT_GROUP_BURST_IMAGE,         /**< Media group ID for the burst shot*/
172     MEDIA_CONTENT_GROUP_RATING,              /**< Media group ID for a rating*/
173     MEDIA_CONTENT_GROUP_AUTHOR,              /**< Media group ID for an author*/
174     MEDIA_CONTENT_GROUP_PROVIDER,            /**< Media group ID for a provider*/
175     MEDIA_CONTENT_GROUP_CONTENT_NAME,        /**< Media group ID for the content name*/
176     MEDIA_CONTENT_GROUP_CATEGORY,            /**< Media group ID for a category*/
177     MEDIA_CONTENT_GROUP_LOCATION_TAG,        /**< Media group ID for a location tag*/
178     MEDIA_CONTENT_GROUP_AGE_RATING,          /**< Media group ID for an age rating*/
179     MEDIA_CONTENT_GROUP_KEYWORD,             /**< Media group ID for a keyword*/
180     MEDIA_CONTENT_GROUP_WEATHER,             /**< Media group ID for the weather*/
181     MEDIA_CONTENT_GROUP_MAX                  /**< Max count of the media group ID */
182 } media_group_e;
183
184 /**
185  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
186  * @brief The structure type for the Media info handle.
187  */
188 typedef struct media_info_s *media_info_h;
189
190 /**
191  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
192  * @brief The structure type for the Media folder handle.
193  */
194 typedef struct media_folder_s *media_folder_h;
195
196 /**
197  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
198  * @brief The structure type for the Media playlist handle.
199  */
200 typedef struct media_playlist_s *media_playlist_h;
201
202 /**
203  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
204  * @brief The structure type for the Media tag handle.
205  */
206 typedef struct media_tag_s *media_tag_h;
207
208 /**
209  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
210  * @brief The structure type for the Media bookmark handle.
211  */
212 typedef struct media_bookmark_s *media_bookmark_h;
213
214 /**
215  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
216  * @brief The structure type for the Media album handle.
217  */
218 typedef struct media_album_s *media_album_h;
219
220 /**
221  * @ingroup CAPI_CONTENT_MEDIA_IMAGE_MODULE
222  * @brief The structure type for the Image metadata handle.
223  */
224 typedef struct image_meta_s *image_meta_h;
225
226 /**
227  * @ingroup CAPI_CONTENT_MEDIA_VIDEO_META_MODULE
228  * @brief The structure type for the Video metadata handle.
229  */
230 typedef struct video_meta_s *video_meta_h;
231
232 /**
233  * @ingroup CAPI_CONTENT_MEDIA_AUDIO_META_MODULE
234  * @brief The structure type for the Audio metadata handle.
235  */
236 typedef struct audio_meta_s *audio_meta_h;
237
238 /**
239  * @ingroup CAPI_CONTENT_MEDIA_FILTER_MODULE
240  * @brief The structure type for the Media filter handle.
241  */
242 typedef struct filter_s *filter_h;
243
244
245 /**
246  * @ingroup CAPI_MEDIA_CONTENT_MODULE
247  * @brief Called when the media scanning is finished.
248  *
249  * @param[in] error     The error code
250  * @param[in] user_data The user data passed from the foreach function
251  *
252  * @pre media_content_scan().
253  *
254  * @see media_content_scan()
255  *
256  */
257 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
258
259 /**
260  * @ingroup CAPI_MEDIA_CONTENT_MODULE
261  * @brief Called when the notification of the media DB change is subscribed.
262  *
263  * @param[in] error       The error code
264  * @param[in] pid         The PID which publishes notification
265  * @param[in] update_item The update item of notification
266  * @param[in] update_type The update type of notification
267  * @param[in] media_type  The type of the media content (#media_content_type_e)
268  * @param[in] uuid        The UUID of media or directory, which is updated
269  * @param[in] path        The path of the media or directory
270  * @param[in] mime_type   The mime type of the media info
271  * @param[in] user_data   The user data passed from the foreach function
272  *
273  * @pre media_content_db_update_subscribe().
274  * @see media_content_db_update_subscribe()
275  */
276 typedef void (*media_content_db_update_cb)(
277                                     media_content_error_e error,
278                                     int pid,
279                                     media_content_db_update_item_type_e update_item,
280                                     media_content_db_update_type_e update_type,
281                                     media_content_type_e media_type,
282                                     char *uuid,
283                                     char *path,
284                                     char *mime_type,
285                                     void *user_data);
286
287
288 /**
289  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
290  * @brief Called for every available media info.
291  *
292  * @details Iterates over a list of media info.
293  *
294  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function.
295  *
296  * @param[in] media     The handle to the media info
297  * @param[in] user_data The user data passed from the foreach function
298  *
299  * @return @c true to continue with the next iteration of the loop,
300  *         otherwise @c false to break out of the loop
301  *
302  * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
303  *      media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
304  *
305  * @see media_info_clone()
306  * @see media_album_foreach_media_from_db()
307  * @see media_playlist_foreach_media_from_db()
308  * @see media_tag_foreach_media_from_db()
309  * @see media_info_foreach_media_from_db()
310  * @see media_folder_foreach_media_from_db()
311  */
312 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
313
314
315 /**
316  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
317  * @brief Called when media items are inserted completely.
318  *
319  * @param[in] media     The handle to the media info
320  * @param[in] user_data The user data passed from the foreach function
321  *
322  * @pre media_info_insert_batch_to_db()
323  *
324  * @see media_info_insert_batch_to_db()
325  */
326 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
327
328
329 /**
330  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
331  * @brief Called when the burst shot is inserted completely.
332  *
333  * @param[in] media     The handle to the media info
334  * @param[in] user_data The user data passed from the foreach function
335  *
336  * @pre media_info_insert_burst_shot_to_db()
337  *
338  * @see media_info_insert_burst_shot_to_db()
339  *
340  */
341 typedef void (*media_insert_burst_shot_completed_cb)(media_content_error_e error, void * user_data);
342
343
344 /**
345  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
346  * @brief Called when creating a thumbnail image.
347  *
348  * @details This callback is called for completion of generating the thumbnail image.
349  *
350  * @param[in] error     The error code
351  * @param[in] path      The path of the thumbnail which is generated
352  * @param[in] user_data The user data passed from the foreach function
353  *
354  * @pre media_info_create_thumbnail()
355  *
356  * @see media_info_create_thumbnail()
357  */
358 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
359
360
361 /**
362  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
363  * @brief Called for every available media folder.
364  *
365  * @details Iterates over a list of folders.
366  *
367  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function.
368  *
369  * @param[in] folder    The handle to the media folder
370  * @param[in] user_data The user data passed from the foreach function
371  *
372  * @return @c true to continue with the next iteration of the loop,
373  *         otherwise @c false to break out of the loop
374  *
375  * @pre media_folder_foreach_folder_from_db() will invoke this function.
376  * @see media_folder_clone()
377  * @see media_folder_foreach_folder_from_db()
378  */
379 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
380
381 /**
382  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
383  * @brief Called for every playlist in the obtained list of playlists.
384  *
385  * @details Iterates over a playlist list.
386  *
387  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function.
388  *
389  * @param[in] playlist  The handle to the media playlist
390  * @param[in] user_data The user data passed from the foreach function
391  *
392  * @return @c true to continue with the next iteration of the loop,
393  *         otherwise @c false to break out of the loop
394  *
395  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
396  *
397  * @see media_playlist_clone()
398  * @see media_playlist_foreach_playlist_from_db()
399  */
400 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
401
402 /**
403  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
404  * @brief Called for every media info with playlist member ID in the obtained list of media info.
405  *
406  * @details Iterates over playlist members.
407  *
408  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function.
409  *
410  * @param[in] playlist_member_id The ID to member of the playlist
411  * @param[in] media              The handle to the media info
412  * @param[in] user_data          The user data passed from the foreach function
413  *
414  * @return @c true to continue with the next iteration of the loop,
415  *         otherwise @c false to break out of the loop
416  *
417  * @pre media_playlist_foreach_media_from_db() will invoke this function.
418  *
419  * @see media_info_clone()
420  * @see media_playlist_foreach_media_from_db()
421  */
422 typedef bool(* playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
423
424 /**
425  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
426  * @brief Called for every tag in the obtained list of tags.
427  *
428  * @details Iterates over a list of tags.
429  *
430  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function.
431  *
432  * @param[in] tag       The handle to the media tag
433  * @param[in] user_data The user data passed from the foreach function
434  *
435  * @return @c true to continue with the next iteration of the loop,
436  *         otherwise @c false to break out of the loop
437  *
438  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
439  *
440  * @see media_tag_clone()
441  * @see media_tag_foreach_tag_from_db()
442  * @see media_info_foreach_tag_from_db()
443  */
444 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
445
446 /**
447  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
448  * @brief Called for every bookmark in the obtained list of bookmarks.
449  *
450  * @details Iterates over a bookmark list.
451  *
452  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function.
453  *
454  * @param[in] bookmark  The handle to the video bookmark
455  * @param[in] user_data The user data passed from the foreach function
456  *
457  * @return @c true to continue with the next iteration of the loop,
458  *         otherwise @c false to break out of the loop
459  *
460  * @pre media_info_foreach_bookmark_from_db() will invoke this function.
461  *
462  * @see media_info_foreach_bookmark_from_db()
463  */
464 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
465
466 /**
467  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
468  * @brief Called for every album in the obtained list of groups.
469  *
470  * @details Iterates over an album list.
471  *
472  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function.
473  *
474  * @param[in] album     The handle to the media album
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_album_foreach_album_from_db() will invoke this function.
481  *
482  * @see media_album_clone()
483  * @see media_album_foreach_album_from_db()
484  */
485 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
486
487 /**
488  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
489  * @brief Called for every group in the obtained list of groups.
490  *
491  * @details Iterates over a media group list.
492  *
493  * @remarks You should not free @a group_name returned by this function.
494  *
495  * @param[in] group_name The name of the media group
496  * @param[in] user_data  The user data passed from the foreach function
497  *
498  * @return @c true to continue with the next iteration of the loop,
499  *         otherwise @c false to break out of the loop
500  *
501  * @pre media_group_foreach_group_from_db() will invoke this function.
502  *
503  * @see media_group_foreach_group_from_db()
504  */
505 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
506
507
508 /**
509  * @}
510  */
511
512 /**
513  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
514  * @{
515  * @brief You can use above defines to set the condition of media filter and order keyword.
516  *
517  */
518 #define MEDIA_ID "MEDIA_ID" /**< Media ID */
519 #define MEDIA_PATH "MEDIA_PATH"  /**< Media full path */
520 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"  /**< Media base name */
521 #define MEDIA_TYPE "MEDIA_TYPE"  /**< Media type: 0-image, 1-video, 2-sound, 3-music, 4-other*/
522 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"  /**< Media MIME type */
523 #define MEDIA_SIZE "MEDIA_SIZE"  /**< Media MIME size */
524 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"  /**< Media added time */
525 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"  /**< Media modified time */
526 #define MEDIA_TIMELINE "MEDIA_TIMELINE"  /**< Media modified time */
527 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"  /**< Media thumbnail path */
528 #define MEDIA_TITLE "MEDIA_TITLE"  /**< Media title get from tag or file name */
529 #define MEDIA_ALBUM "MEDIA_ALBUM"  /**< Media album name*/
530 #define MEDIA_ARTIST "MEDIA_ARTIST"  /**< Media artist*/
531 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"  /**< Media album_artist*/
532 #define MEDIA_GENRE "MEDIA_GENRE"  /**< Media genre*/
533 #define MEDIA_COMPOSER "MEDIA_COMPOSER"  /**< Media composer*/
534 #define MEDIA_YEAR "MEDIA_YEAR"  /**< Media year*/
535 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"  /**< Media recorded date*/
536 #define MEDIA_COPYRIGHT "MEDIA_COPYRIGHT"  /**< Media copyright*/
537 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"  /**< Media track number*/
538 #define MEDIA_DESCRIPTION "MEDIA_DESCRIPTION"  /**< Media description*/
539 #define MEDIA_BITRATE "MEDIA_BITRATE"  /**< Media bitrate*/
540 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"  /**< Media bit per sample*/
541 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"  /**< Media sample rate*/
542 #define MEDIA_CHANNEL "MEDIA_CHANNEL"  /**< Media channel*/
543 #define MEDIA_DURATION "MEDIA_DURATION"  /**< Media duration */
544 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"  /**< Media longitude */
545 #define MEDIA_LATITUDE "MEDIA_LATITUDE"  /**< Media latitude */
546 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"  /**< Media altitude */
547 #define MEDIA_WIDTH "MEDIA_WIDTH"  /**< Media width*/
548 #define MEDIA_HEIGHT "MEDIA_HEIGHT"  /**< Media height*/
549 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"  /**< Media datetaken*/
550 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"  /**< Media orientation*/
551 #define MEDIA_BURST_ID "BURST_ID"  /**< Media burst ID*/
552 #define MEDIA_PLAYED_COUNT "MEDIA_PLAYED_COUNT"  /**< Media playedcount*/
553 #define MEDIA_LAST_PLAYED_TIME "MEDIA_LAST_PLAYED_TIME"  /**< Media last played time*/
554 #define MEDIA_LAST_PLAYED_POSITION "MEDIA_LAST_PLAYED_POSITION"  /**< Media last played position of file*/
555 #define MEDIA_RATING "MEDIA_RATING"  /**< Media rating*/
556 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"  /**< 0-not favourite, 1-favourite*/
557 #define MEDIA_AUTHOR "MEDIA_AUTHOR"  /**< Media authore*/
558 #define MEDIA_PROVIDER "MEDIA_PROVIDER"  /**< Media provider*/
559 #define MEDIA_CONTENT_NAME "MEDIA_CONTENT_NAME"  /**< Media content name*/
560 #define MEDIA_CATEGORY "MEDIA_CATEGORY"  /**< Media category*/
561 #define MEDIA_LOCATION_TAG "MEDIA_LOCATION_TAG"  /**< Media location tag*/
562 #define MEDIA_AGE_RATING "MEDIA_AGE_RATING"  /**< Media age rating*/
563 #define MEDIA_KEYWORD "MEDIA_KEYWORD"  /**< Media keyword*/
564 #define MEDIA_WEATHER "MEDIA_WEATHER"  /**< Media weather*/
565 #define MEDIA_IS_DRM "MEDIA_IS_DRM"  /**< Is DRM. 0-not drm, 1-drm*/
566 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"  /**< Media storage. 0-internal storage, 1-external storage*/
567 #define MEDIA_EXPOSURE_TIME "MEDIA_EXPOSURE_TIME"       /**< media exposure_time*/
568 #define MEDIA_FNUMBER "MEDIA_FNUMBER"   /**< media fnumber*/
569 #define MEDIA_ISO "MEDIA_ISO"   /**< media iso*/
570 #define MEDIA_MODEL "MEDIA_MODEL"       /**< media model*/
571
572 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"  /**< Media file name pinyin */
573 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"  /**< Media title pinyin */
574 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN"  /**< Media album pinyin*/
575 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"  /**< Media artist pinyin*/
576 #define MEDIA_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"  /**< Media album_artist pinyin*/
577 #define MEDIA_GENRE_PINYIN "MEDIA_GENRE_PINYIN"  /**< Media genre pinyin*/
578 #define MEDIA_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"  /**< Media composer pinyin*/
579 #define MEDIA_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"  /**< Media copyright pinyin*/
580 #define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"  /**< Media description pinyin*/
581 #define MEDIA_AUTHOR_PINYIN "MEDIA_AUTHOR_PINYIN"  /**< Media authore pinyin*/
582 #define MEDIA_PROVIDER_PINYIN "MEDIA_PROVIDER_PINYIN"  /**< Media provider pinyin*/
583 #define MEDIA_CONTENT_NAME_PINYIN "MEDIA_CONTENT_NAME_PINYIN"  /**< Media content name pinyin*/
584 #define MEDIA_CATEGORY_PINYIN "MEDIA_CATEGORY_PINYIN"  /**< Media category pinyin*/
585 #define MEDIA_LOCATION_TAG_PINYIN "MEDIA_LOCATION_TAG_PINYIN"  /**< Media location tag pinyin*/
586 #define MEDIA_AGE_RATING_PINYIN "MEDIA_AGE_RATING_PINYIN"  /**< Media age rating pinyin*/
587 #define MEDIA_KEYWORD_PINYIN "MEDIA_KEYWORD_PINYIN"  /**< Media keyword pinyin*/
588
589 /**
590  * @}
591  */
592
593
594 /**
595
596  * @addtogroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
597  * @{
598  */
599 #define FOLDER_ID "FOLDER_ID"  /**< Folder ID */
600 #define FOLDER_PATH "FOLDER_PATH"  /**< Folder full path */
601 #define FOLDER_NAME "FOLDER_NAME"  /**< Folder base name */
602 #define FOLDER_MODIFIED_TIME "FOLDER_MODIFIED_TIME"  /**< Folder modified time */
603 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"  /**< Folder storage. 0-internal storage, 1-external storage*/
604 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"  /**< Folder base name pinyin*/
605 #define FOLDER_ORDER "FOLDER_ORDER"  /**< Folder order info */
606
607 /**
608  * @}
609  */
610
611 /**
612  * @addtogroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
613  * @{
614  */
615 #define PLAYLIST_NAME "PLAYLIST_NAME"  /**< Playlist name */
616 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"  /**< Playlist name */
617 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"  /**< Media count in playlist view */
618
619 /**
620  * @}
621  */
622
623 /**
624  * @addtogroup CAPI_CONTENT_MEDIA_TAG_MODULE
625  * @{
626  */
627 #define TAG_NAME "TAG_NAME"  /**< Tag name */
628 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"  /**< Media count in tag view */
629
630 /**
631  * @}
632  */
633
634 /**
635  * @addtogroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
636  * @{
637  */
638 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"  /**< Bookmark marked time */
639
640 /**
641  * @}
642  */
643
644 #ifdef __cplusplus
645 }
646 #endif /* __cplusplus */
647
648
649 #endif /*__TIZEN_MEDIA_CONTENT_TYPE_H__*/