merge with master
[platform/core/appfw/ail.git] / src / ail_sql.h
1 /*
2  * ail
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@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 __AIL_SQL_H__
25 #define __AIL_SQL_H__
26
27 #include "ail.h"
28
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 locale='%s'"
33
34 #define SQL_FLD_APP_INFO "app_info.PACKAGE," \
35                         "app_info.EXEC," \
36                         "app_info.NAME," \
37                         "app_info.TYPE," \
38                         "app_info.ICON," \
39                         "app_info.CATEGORIES," \
40                         "app_info.VERSION," \
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_BASELAYOUTWIDTH," \
53                         "app_info.X_SLP_INSTALLEDTIME," \
54                         "app_info.NODISPLAY," \
55                         "app_info.X_SLP_TASKMANAGE," \
56                         "app_info.X_SLP_MULTIPLE," \
57                         "app_info.X_SLP_REMOVABLE," \
58                         "app_info.X_SLP_ISHORIZONTALSCALE," \
59                         "app_info.X_SLP_ENABLED" \
60
61
62 #define SQL_FLD_APP_INFO_WITH_LOCALNAME SQL_FLD_APP_INFO",""localname.name"
63 #define SQL_LOCALNAME_IDX NUM_OF_PROP + 0
64
65 const char *sql_get_filter(int prop);
66 char *sql_get_locale();
67 int sql_get_app_info_idx(int prop);
68
69 #endif  /* __AIL_SQL_H__ */