modify DB schema.
[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  * @ingroup CAPI_MEDIA_CONTENT_MODULE
246  * @brief Called when the media scanning is finished.
247  *
248  * @param[in] error     The error code
249  * @param[in] user_data The user data passed from the foreach function
250  *
251  * @pre media_content_scan().
252  *
253  * @see media_content_scan()
254  *
255  */
256 typedef void (*media_scan_completed_cb)(media_content_error_e error, void * user_data);
257
258 /**
259  * @ingroup CAPI_MEDIA_CONTENT_MODULE
260  * @brief Called when the notification of the media DB change is subscribed.
261  *
262  * @param[in] error       The error code
263  * @param[in] pid         The PID which publishes notification
264  * @param[in] update_item The update item of notification
265  * @param[in] update_type The update type of notification
266  * @param[in] media_type  The type of the media content (#media_content_type_e)
267  * @param[in] uuid        The UUID of media or directory, which is updated
268  * @param[in] path        The path of the media or directory
269  * @param[in] mime_type   The mime type of the media info
270  * @param[in] user_data   The user data passed from the foreach function
271  *
272  * @pre media_content_db_update_subscribe().
273  * @see media_content_db_update_subscribe()
274  */
275 typedef void (*media_content_db_update_cb)(
276                                     media_content_error_e error,
277                                     int pid,
278                                     media_content_db_update_item_type_e update_item,
279                                     media_content_db_update_type_e update_type,
280                                     media_content_type_e media_type,
281                                     char *uuid,
282                                     char *path,
283                                     char *mime_type,
284                                     void *user_data);
285
286
287 /**
288  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
289  * @brief Called for every available media info.
290  *
291  * @details Iterates over a list of media info.
292  *
293  * @remarks To use the @a media outside this function, copy the handle with media_info_clone() function.
294  *
295  * @param[in] media     The handle to the media info
296  * @param[in] user_data The user data passed from the foreach function
297  *
298  * @return @c true to continue with the next iteration of the loop,
299  *         otherwise @c false to break out of the loop
300  *
301  * @pre media_tag_foreach_media_from_db(), media_playlist_foreach_media_from_db(), media_genre_foreach_media_from_db(),
302  *      media_info_foreach_media_from_db(), media_folder_foreach_media_from_db() will invoke this function.
303  *
304  * @see media_info_clone()
305  * @see media_album_foreach_media_from_db()
306  * @see media_playlist_foreach_media_from_db()
307  * @see media_tag_foreach_media_from_db()
308  * @see media_info_foreach_media_from_db()
309  * @see media_folder_foreach_media_from_db()
310  */
311 typedef bool (*media_info_cb)(media_info_h media, void *user_data);
312
313
314 /**
315  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
316  * @brief Called when media items are inserted completely.
317  *
318  * @param[in] media     The handle to the media info
319  * @param[in] user_data The user data passed from the foreach function
320  *
321  * @pre media_info_insert_batch_to_db()
322  *
323  * @see media_info_insert_batch_to_db()
324  */
325 typedef void (*media_insert_completed_cb)(media_content_error_e error, void * user_data);
326
327
328 /**
329  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
330  * @brief Called when the burst shot is inserted completely.
331  *
332  * @param[in] media     The handle to the media info
333  * @param[in] user_data The user data passed from the foreach function
334  *
335  * @pre media_info_insert_burst_shot_to_db()
336  *
337  * @see media_info_insert_burst_shot_to_db()
338  *
339  */
340 typedef void (*media_insert_burst_shot_completed_cb)(media_content_error_e error, void * user_data);
341
342
343 /**
344  * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE
345  * @brief Called when creating a thumbnail image.
346  *
347  * @details This callback is called for completion of generating the thumbnail image.
348  *
349  * @param[in] error     The error code
350  * @param[in] path      The path of the thumbnail which is generated
351  * @param[in] user_data The user data passed from the foreach function
352  *
353  * @pre media_info_create_thumbnail()
354  *
355  * @see media_info_create_thumbnail()
356  */
357 typedef void (*media_thumbnail_completed_cb)(media_content_error_e error, const char *path, void *user_data);
358
359
360 /**
361  * @ingroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
362  * @brief Called for every available media folder.
363  *
364  * @details Iterates over a list of folders.
365  *
366  * @remarks To use the @a folder outside this function, copy the handle with the media_folder_clone() function.
367  *
368  * @param[in] folder    The handle to the media folder
369  * @param[in] user_data The user data passed from the foreach function
370  *
371  * @return @c true to continue with the next iteration of the loop,
372  *         otherwise @c false to break out of the loop
373  *
374  * @pre media_folder_foreach_folder_from_db() will invoke this function.
375  * @see media_folder_clone()
376  * @see media_folder_foreach_folder_from_db()
377  */
378 typedef bool (*media_folder_cb)(media_folder_h folder, void *user_data);
379
380 /**
381  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
382  * @brief Called for every playlist in the obtained list of playlists.
383  *
384  * @details Iterates over a playlist list.
385  *
386  * @remarks To use the @a playlist outside this function, copy the handle with the media_playlist_clone() function.
387  *
388  * @param[in] playlist  The handle to the media playlist
389  * @param[in] user_data The user data passed from the foreach function
390  *
391  * @return @c true to continue with the next iteration of the loop,
392  *         otherwise @c false to break out of the loop
393  *
394  * @pre media_playlist_foreach_playlist_from_db() will invoke this function.
395  *
396  * @see media_playlist_clone()
397  * @see media_playlist_foreach_playlist_from_db()
398  */
399 typedef bool (*media_playlist_cb)(media_playlist_h playlist, void *user_data);
400
401 /**
402  * @ingroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
403  * @brief Called for every media info with playlist member ID in the obtained list of media info.
404  *
405  * @details Iterates over playlist members.
406  *
407  * @remarks To use the @a media outside this function, copy the handle with the media_info_clone() function.
408  *
409  * @param[in] playlist_member_id The ID to member of the playlist
410  * @param[in] media              The handle to the media info
411  * @param[in] user_data          The user data passed from the foreach function
412  *
413  * @return @c true to continue with the next iteration of the loop,
414  *         otherwise @c false to break out of the loop
415  *
416  * @pre media_playlist_foreach_media_from_db() will invoke this function.
417  *
418  * @see media_info_clone()
419  * @see media_playlist_foreach_media_from_db()
420  */
421 typedef bool(* playlist_member_cb)(int playlist_member_id, media_info_h media, void *user_data);
422
423 /**
424  * @ingroup CAPI_CONTENT_MEDIA_TAG_MODULE
425  * @brief Called for every tag in the obtained list of tags.
426  *
427  * @details Iterates over a list of tags.
428  *
429  * @remarks To use the @a tag outside this function, copy the handle with the media_tag_clone() function.
430  *
431  * @param[in] tag       The handle to the media tag
432  * @param[in] user_data The user data passed from the foreach function
433  *
434  * @return @c true to continue with the next iteration of the loop,
435  *         otherwise @c false to break out of the loop
436  *
437  * @pre media_tag_foreach_tag_from_db(), media_info_foreach_tag_from_db() will invoke this function.
438  *
439  * @see media_tag_clone()
440  * @see media_tag_foreach_tag_from_db()
441  * @see media_info_foreach_tag_from_db()
442  */
443 typedef bool (*media_tag_cb)(media_tag_h tag, void *user_data);
444
445 /**
446  * @ingroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
447  * @brief Called for every bookmark in the obtained list of bookmarks.
448  *
449  * @details Iterates over a bookmark list.
450  *
451  * @remarks To use the @a bookmark outside this function, copy the handle with the media_bookmark_clone() function.
452  *
453  * @param[in] bookmark  The handle to the video bookmark
454  * @param[in] user_data The user data passed from the foreach function
455  *
456  * @return @c true to continue with the next iteration of the loop,
457  *         otherwise @c false to break out of the loop
458  *
459  * @pre media_info_foreach_bookmark_from_db() will invoke this function.
460  *
461  * @see media_info_foreach_bookmark_from_db()
462  */
463 typedef bool (*media_bookmark_cb)(media_bookmark_h bookmark, void *user_data);
464
465 /**
466  * @ingroup CAPI_CONTENT_MEDIA_ALBUM_MODULE
467  * @brief Called for every album in the obtained list of groups.
468  *
469  * @details Iterates over an album list.
470  *
471  * @remarks To use the @a album outside this function, copy the handle with the media_album_clone() function.
472  *
473  * @param[in] album     The handle to the media album
474  * @param[in] user_data The user data passed from the foreach function
475  *
476  * @return @c true to continue with the next iteration of the loop,
477  *         otherwise @c false to break out of the loop
478  *
479  * @pre media_album_foreach_album_from_db() will invoke this function.
480  *
481  * @see media_album_clone()
482  * @see media_album_foreach_album_from_db()
483  */
484 typedef bool (*media_album_cb)(media_album_h album, void *user_data);
485
486 /**
487  * @ingroup CAPI_CONTENT_MEDIA_GROUP_MODULE
488  * @brief Called for every group in the obtained list of groups.
489  *
490  * @details Iterates over a media group list.
491  *
492  * @remarks You should not free @a group_name returned by this function.
493  *
494  * @param[in] group_name The name of the media group
495  * @param[in] user_data  The user data passed from the foreach function
496  *
497  * @return @c true to continue with the next iteration of the loop,
498  *         otherwise @c false to break out of the loop
499  *
500  * @pre media_group_foreach_group_from_db() will invoke this function.
501  *
502  * @see media_group_foreach_group_from_db()
503  */
504 typedef bool (*media_group_cb)(const char *group_name, void *user_data);
505
506 /**
507  * @}
508  */
509
510 /**
511  * @addtogroup CAPI_CONTENT_MEDIA_FILTER_MODULE
512  * @{
513  * @brief You can use above defines to set the condition of media filter and order keyword.
514  *
515  */
516 #define MEDIA_ID "MEDIA_ID" /**< Media ID */
517 #define MEDIA_PATH "MEDIA_PATH"  /**< Media full path */
518 #define MEDIA_DISPLAY_NAME "MEDIA_DISPLAY_NAME"  /**< Media base name */
519 #define MEDIA_TYPE "MEDIA_TYPE"  /**< Media type: 0-image, 1-video, 2-sound, 3-music, 4-other*/
520 #define MEDIA_MIME_TYPE "MEDIA_MIME_TYPE"  /**< Media MIME type */
521 #define MEDIA_SIZE "MEDIA_SIZE"  /**< Media MIME size */
522 #define MEDIA_ADDED_TIME "MEDIA_ADDED_TIME"  /**< Media added time */
523 #define MEDIA_MODIFIED_TIME "MEDIA_MODIFIED_TIME"  /**< Media modified time */
524 #define MEDIA_TIMELINE "MEDIA_TIMELINE"  /**< Media modified time */
525 #define MEDIA_THUMBNAIL_PATH "MEDIA_THUMBNAIL_PATH"  /**< Media thumbnail path */
526 #define MEDIA_TITLE "MEDIA_TITLE"  /**< Media title get from tag or file name */
527 #define MEDIA_ALBUM "MEDIA_ALBUM"  /**< Media album name*/
528 #define MEDIA_ARTIST "MEDIA_ARTIST"  /**< Media artist*/
529 #define MEDIA_ALBUM_ARTIST "MEDIA_ALBUM_ARTIST"  /**< Media album_artist*/
530 #define MEDIA_GENRE "MEDIA_GENRE"  /**< Media genre*/
531 #define MEDIA_COMPOSER "MEDIA_COMPOSER"  /**< Media composer*/
532 #define MEDIA_YEAR "MEDIA_YEAR"  /**< Media year*/
533 #define MEDIA_RECORDED_DATE "MEDIA_RECORDED_DATE"  /**< Media recorded date*/
534 #define MEDIA_COPYRIGHT "MEDIA_COPYRIGHT"  /**< Media copyright*/
535 #define MEDIA_TRACK_NUM "MEDIA_TRACK_NUM"  /**< Media track number*/
536 #define MEDIA_DESCRIPTION "MEDIA_DESCRIPTION"  /**< Media description*/
537 #define MEDIA_BITRATE "MEDIA_BITRATE"  /**< Media bitrate*/
538 #define MEDIA_BITPERSAMPLE "MEDIA_BITPERSAMPLE"  /**< Media bit per sample*/
539 #define MEDIA_SAMPLERATE "MEDIA_SAMPLERATE"  /**< Media sample rate*/
540 #define MEDIA_CHANNEL "MEDIA_CHANNEL"  /**< Media channel*/
541 #define MEDIA_DURATION "MEDIA_DURATION"  /**< Media duration */
542 #define MEDIA_LONGITUDE "MEDIA_LONGITUDE"  /**< Media longitude */
543 #define MEDIA_LATITUDE "MEDIA_LATITUDE"  /**< Media latitude */
544 #define MEDIA_ALTITUDE "MEDIA_ALTITUDE"  /**< Media altitude */
545 #define MEDIA_WIDTH "MEDIA_WIDTH"  /**< Media width*/
546 #define MEDIA_HEIGHT "MEDIA_HEIGHT"  /**< Media height*/
547 #define MEDIA_DATETAKEN "MEDIA_DATETAKEN"  /**< Media datetaken*/
548 #define MEDIA_ORIENTATION "MEDIA_ORIENTATION"  /**< Media orientation*/
549 #define MEDIA_BURST_ID "BURST_ID"  /**< Media burst ID*/
550 #define MEDIA_PLAYED_COUNT "MEDIA_PLAYED_COUNT"  /**< Media playedcount*/
551 #define MEDIA_LAST_PLAYED_TIME "MEDIA_LAST_PLAYED_TIME"  /**< Media last played time*/
552 #define MEDIA_LAST_PLAYED_POSITION "MEDIA_LAST_PLAYED_POSITION"  /**< Media last played position of file*/
553 #define MEDIA_RATING "MEDIA_RATING"  /**< Media rating*/
554 #define MEDIA_FAVOURITE "MEDIA_FAVOURITE"  /**< 0-not favourite, 1-favourite*/
555 #define MEDIA_AUTHOR "MEDIA_AUTHOR"  /**< Media authore*/
556 #define MEDIA_PROVIDER "MEDIA_PROVIDER"  /**< Media provider*/
557 #define MEDIA_CONTENT_NAME "MEDIA_CONTENT_NAME"  /**< Media content name*/
558 #define MEDIA_CATEGORY "MEDIA_CATEGORY"  /**< Media category*/
559 #define MEDIA_LOCATION_TAG "MEDIA_LOCATION_TAG"  /**< Media location tag*/
560 #define MEDIA_AGE_RATING "MEDIA_AGE_RATING"  /**< Media age rating*/
561 #define MEDIA_KEYWORD "MEDIA_KEYWORD"  /**< Media keyword*/
562 #define MEDIA_WEATHER "MEDIA_WEATHER"   /**< Media weather*/
563 #define MEDIA_IS_DRM "MEDIA_IS_DRM"  /**< Is DRM. 0-not drm, 1-drm*/
564 #define MEDIA_STORAGE_TYPE "MEDIA_STORAGE_TYPE"  /**< Media storage. 0-internal storage, 1-external storage*/
565
566 #define MEDIA_FILE_NAME_PINYIN "MEDIA_FILE_NAME_PINYIN"         /**< media file name pinyin */
567 #define MEDIA_TITLE_PINYIN "MEDIA_TITLE_PINYIN"         /**< media title pinyin */
568 #define MEDIA_ALBUM_PINYIN "MEDIA_ALBUM_PINYIN" /**< media album pinyin*/
569 #define MEDIA_ARTIST_PINYIN "MEDIA_ARTIST_PINYIN"               /**< media artist pinyin*/
570 #define MEDIA_ALBUM_ARTIST_PINYIN "MEDIA_ALBUM_ARTIST_PINYIN"           /**< media album_artist pinyin*/
571 #define MEDIA_GENRE_PINYIN "MEDIA_GENRE_PINYIN"         /**< media genre pinyin*/
572 #define MEDIA_COMPOSER_PINYIN "MEDIA_COMPOSER_PINYIN"   /**< media composer pinyin*/
573 #define MEDIA_COPYRIGHT_PINYIN "MEDIA_COPYRIGHT_PINYIN"         /**< media copyright pinyin*/
574 #define MEDIA_DESCRIPTION_PINYIN "MEDIA_DESCRIPTION_PINYIN"     /**< media description pinyin*/
575 #define MEDIA_AUTHOR_PINYIN "MEDIA_AUTHOR_PINYIN"       /**< media authore pinyin*/
576 #define MEDIA_PROVIDER_PINYIN "MEDIA_PROVIDER_PINYIN"   /**< media provider pinyin*/
577 #define MEDIA_CONTENT_NAME_PINYIN "MEDIA_CONTENT_NAME_PINYIN"   /**< media content name pinyin*/
578 #define MEDIA_CATEGORY_PINYIN "MEDIA_CATEGORY_PINYIN"   /**< media category pinyin*/
579 #define MEDIA_LOCATION_TAG_PINYIN "MEDIA_LOCATION_TAG_PINYIN"   /**< media location tag pinyin*/
580 #define MEDIA_AGE_RATING_PINYIN "MEDIA_AGE_RATING_PINYIN"       /**< media age rating pinyin*/
581 #define MEDIA_KEYWORD_PINYIN "MEDIA_KEYWORD_PINYIN"     /**< media keyword pinyin*/
582 /**
583  * @}
584  */
585
586
587 /**
588
589  * @addtogroup CAPI_CONTENT_MEDIA_FOLDER_MODULE
590  * @{
591  */
592 #define FOLDER_ID "FOLDER_ID"  /**< Folder ID */
593 #define FOLDER_PATH "FOLDER_PATH"  /**< Folder full path */
594 #define FOLDER_NAME "FOLDER_NAME"  /**< Folder base name */
595 #define FOLDER_MODIFIED_TIME "FOLDER_MODIFIED_TIME"  /**< Folder modified time */
596 #define FOLDER_STORAGE_TYPE "FOLDER_STORAGE_TYPE"  /**< Folder storage. 0-internal storage, 1-external storage*/
597 #define FOLDER_NAME_PINYIN "FOLDER_NAME_PINYIN"         /**< folder base name pinyin*/
598
599 /**
600  * @}
601  */
602
603 /**
604  * @addtogroup CAPI_CONTENT_MEDIA_PLAYLIST_MODULE
605  * @{
606  */
607 #define PLAYLIST_NAME "PLAYLIST_NAME"  /**< Playlist name */
608 #define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER"  /**< Playlist name */
609 #define PLAYLIST_MEDIA_COUNT "PLAYLIST_MEDIA_COUNT"  /**< Media count in playlist view */
610
611 /**
612  * @}
613  */
614
615 /**
616  * @addtogroup CAPI_CONTENT_MEDIA_TAG_MODULE
617  * @{
618  */
619 #define TAG_NAME "TAG_NAME"  /**< Tag name */
620 #define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT"  /**< Media count in tag view */
621
622 /**
623  * @}
624  */
625
626 /**
627  * @addtogroup CAPI_CONTENT_MEDIA_BOOKMARK_MODULE
628  * @{
629  */
630 #define BOOKMARK_MARKED_TIME "BOOKMARK_MARKED_TIME"  /**< Bookmark marked time */
631
632 /**
633  * @}
634  */
635
636 #ifdef __cplusplus
637 }
638 #endif /* __cplusplus */
639
640
641 #endif /*__TIZEN_MEDIA_CONTENT_TYPE_H__*/