4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@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.
29 #define SQL_TBL_APP_INFO "app_info"
30 #define SQL_TBL_APP_INFO_WITH_LOCALNAME "app_info LEFT OUTER JOIN localname " \
31 "ON app_info.package=localname.package " \
32 "and localname.locale='%s'"
34 #define SQL_FLD_APP_INFO "app_info.PACKAGE," \
39 "app_info.CATEGORIES," \
41 "app_info.MIMETYPE," \
42 "app_info.X_SLP_SERVICE," \
43 "app_info.X_SLP_PACKAGETYPE," \
44 "app_info.X_SLP_PACKAGECATEGORIES," \
45 "app_info.X_SLP_PACKAGEID," \
46 "app_info.X_SLP_URI," \
47 "app_info.X_SLP_SVC," \
48 "app_info.X_SLP_EXE_PATH," \
49 "app_info.X_SLP_APPID," \
50 "app_info.X_SLP_PKGID," \
51 "app_info.X_SLP_DOMAIN," \
52 "app_info.X_SLP_SUBMODEMAINID," \
53 "app_info.X_SLP_INSTALLEDSTORAGE," \
54 "app_info.X_SLP_BASELAYOUTWIDTH," \
55 "app_info.X_SLP_INSTALLEDTIME," \
56 "app_info.NODISPLAY," \
57 "app_info.X_SLP_TASKMANAGE," \
58 "app_info.X_SLP_MULTIPLE," \
59 "app_info.X_SLP_REMOVABLE," \
60 "app_info.X_SLP_ISHORIZONTALSCALE," \
61 "app_info.X_SLP_ENABLED," \
62 "app_info.X_SLP_SUBMODE" \
65 #define SQL_FLD_APP_INFO_WITH_LOCALNAME SQL_FLD_APP_INFO",""localname.name"
66 #define SQL_LOCALNAME_IDX NUM_OF_PROP + 0
68 const char *sql_get_filter(int prop);
69 char *sql_get_locale();
70 int sql_get_app_info_idx(int prop);
72 #endif /* __AIL_SQL_H__ */