4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Hyunjun Ko <zzoon.ko@samsung.com>, Haejeong Kim <backto.kim@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
24 #ifndef _MEDIA_SVC_ENV_H_
25 #define _MEDIA_SVC_ENV_H_
28 #include <media-util.h>
29 #include <tzplatform_config.h>
39 #define MEDIA_SVC_DB_NAME MEDIA_DB_NAME /**< media db name*/
40 #define LATEST_VERSION_NUMBER 2
43 * DB table information
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*/
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*/
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 */
69 #define MEDIA_SVC_DEFAULT_GPS_VALUE -200 /**< Default GPS Value*/
70 #define THUMB_EXT "jpg"
72 #define MEDIA_SVC_PATH_PHONE MEDIA_ROOT_PATH_INTERNAL
73 #define MEDIA_SVC_PATH_MMC MEDIA_ROOT_PATH_SDCARD
75 enum Exif_Orientation {
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;
97 #endif /*_MEDIA_SVC_ENV_H_*/