Add function to support new API on media-content.
[platform/core/multimedia/libmedia-service.git] / src / include / common / media-svc-env.h
1 /*
2  * libmedia-service
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23
24 #ifndef _MEDIA_SVC_ENV_H_
25 #define _MEDIA_SVC_ENV_H_
26
27 #include <time.h>
28 #include <media-util.h>
29 #include <tzplatform_config.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 /**
36  * DB information
37  */
38
39 #define MEDIA_SVC_DB_NAME                                               MEDIA_DB_NAME           /**<  media db name*/
40 #define LATEST_VERSION_NUMBER                                   2
41
42 /**
43  * DB table information
44  */
45
46 #define MEDIA_SVC_DB_TABLE_MEDIA                                        "media"                         /**<  media table*/
47 #define MEDIA_SVC_DB_TABLE_FOLDER                                       "folder"                                /**<  media_folder table*/
48 #define MEDIA_SVC_DB_TABLE_PLAYLIST                             "playlist"                              /**<  playlist table*/
49 #define MEDIA_SVC_DB_TABLE_PLAYLIST_MAP                 "playlist_map"                  /**<  playlist_map table*/
50 #define MEDIA_SVC_DB_TABLE_ALBUM                                        "album"                         /**<  album table*/
51 #define MEDIA_SVC_DB_TABLE_TAG                                  "tag"                           /**<  tag table*/
52 #define MEDIA_SVC_DB_TABLE_TAG_MAP                              "tag_map"                       /**<  tag_map table*/
53 #define MEDIA_SVC_DB_TABLE_BOOKMARK                             "bookmark"                      /**<  bookmark table*/
54 #define MEDIA_SVC_DB_TABLE_CUSTOM                               "custom"                                /**<  custom table*/
55
56
57 #define MEDIA_SVC_METADATA_LEN_MAX                      128                                             /**<  Length of metadata*/
58 #define MEDIA_SVC_METADATA_DESCRIPTION_MAX      512                                             /**<  Length of description*/
59 #define MEDIA_SVC_PATHNAME_SIZE                         4096                                    /**<  Length of Path name. */
60 #define MEDIA_SVC_UUID_SIZE                                             36                                              /**< Length of UUID*/
61
62 #define MEDIA_SVC_TAG_UNKNOWN                           "Unknown"
63 #define MEDIA_SVC_MEDIA_PATH                            tzplatform_mkpath(TZ_USER_DATA, "file-manager-service")                 /**<  Media path*/
64 #define MEDIA_SVC_THUMB_PATH_PREFIX                     tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb")                  /**< Thumbnail path prefix*/
65 #define MEDIA_SVC_THUMB_INTERNAL_PATH           tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/phone")    /**<  Phone thumbnail path*/
66 #define MEDIA_SVC_THUMB_EXTERNAL_PATH           tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/mmc")              /**<  MMC thumbnail path*/
67 #define MEDIA_SVC_THUMB_DEFAULT_PATH            tzplatform_mkpath(TZ_USER_DATA, "file-manager-service/.thumb/thumb_default.png") /** default thumbnail */
68
69 #define MEDIA_SVC_DEFAULT_GPS_VALUE                     -200                    /**<  Default GPS Value*/
70 #define THUMB_EXT       "jpg"
71
72 #define MEDIA_SVC_PATH_PHONE                            MEDIA_ROOT_PATH_INTERNAL
73 #define MEDIA_SVC_PATH_MMC                                      MEDIA_ROOT_PATH_SDCARD
74
75 enum Exif_Orientation {
76     NOT_AVAILABLE=0,
77     NORMAL  =1,
78     HFLIP   =2,
79     ROT_180 =3,
80     VFLIP   =4,
81     TRANSPOSE   =5,
82     ROT_90  =6,
83     TRANSVERSE  =7,
84     ROT_270 =8
85 };
86
87 typedef enum{
88         MEDIA_SVC_QUERY_INSERT_ITEM,
89         MEDIA_SVC_QUERY_SET_ITEM_VALIDITY,
90         MEDIA_SVC_QUERY_MOVE_ITEM,
91 } media_svc_query_type_e;
92
93 #ifdef __cplusplus
94 }
95 #endif
96
97 #endif /*_MEDIA_SVC_ENV_H_*/