2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 #ifndef TIZENAPIS_API_DATA_CONTROL_TYPE_H_
20 #define TIZENAPIS_API_DATA_CONTROL_TYPE_H_
22 #define MAP_DATA_CONTROL "MAP"
23 #define SQL_DATA_CONTROL "SQL"
25 #define ROW_DATA_COLUMNS "columns"
26 #define ROW_DATA_VALUES "values"
28 #define OSP_PKGINFO_SQL_TYPE "Sql"
29 #define OSP_PKGINFO_MAP_TYPE "Map"
31 #define PROTOCOL_DATA_MAX 16 * 1024
32 #define ROW_DATA_MAX 1024 * 1024
34 #define OSP_V_CALLER_TYPE_OSP "osp"
35 #define OSP_V_LAUNCH_TYPE_LAUNCH "launch"
36 #define OSP_V_LAUNCH_TYPE_APPCONTROL "appcontrol"
37 #define OSP_V_LAUNCH_TYPE_DATACONTROL "datacontrol"
38 #define OSP_V_LAUNCH_TYPE_CONDTION "condition"
39 #define OSP_V_REQUEST_TYPE_SQL_QUERY "sql_query"
40 #define OSP_V_REQUEST_TYPE_SQL_INSERT "sql_insert"
41 #define OSP_V_REQUEST_TYPE_SQL_UPDATE "sql_update"
42 #define OSP_V_REQUEST_TYPE_SQL_DELETE "sql_delete"
43 #define OSP_V_REQUEST_TYPE_MAP_QEURY "map_query"
44 #define OSP_V_REQUEST_TYPE_MAP_INSERT "map_insert"
45 #define OSP_V_REQUEST_TYPE_MAP_UPDATE "map_update"
46 #define OSP_V_REQUEST_TYPE_MAP_DELETE "map_delete"
48 #define OSP_K_CALLER_TYPE "__OSP_CALLER_TYPE__"
49 #define OSP_K_LAUNCH_TYPE "__OSP_LAUNCH_TYPE__"
50 #define OSP_K_ARG "__OSP_ARGS__"
51 #define OSP_K_COND "__OSP_COND_NAME__"
52 #define OSP_K_APPID "__OSP_APPID__"
53 #define OSP_K_REQUEST_ID "__OSP_REQUEST_ID__"
54 #define OSP_K_APPCONTROL_PROVIDER "__OSP_APPCONTROL_PROVIDER__"
55 #define OSP_K_APPCONTROL_OPERATION "__OSP_APPCONTROL_OPERATION__"
56 #define OSP_K_APPCONTROL_CATEGORY "__OSP_APPCONTROL_CATEGORY__"
57 #define OSP_K_APPCONTROL_MIME "__OSP_APPCONTROL_MIME__"
58 #define OSP_K_APPCONTROL_URI "__OSP_APPCONTROL_URI__"
59 #define OSP_K_DATACONTROL_PROVIDER "__OSP_DATACONTROL_PROVIDER__"
60 #define OSP_K_DATACONTROL_REQUEST_TYPE "__OSP_DATACONTROL_REQUEST_TYPE__"
61 #define RESULT_TRUE_FROM_OSP "1"
62 #define RESULT_FALSE_FROM_OSP "0"
63 #define OSP_K_DATACONTROL_PROTOCOL_VERSION "__OSP_DATACONTROL_PROTOCOL_VERSION__"
64 #define OSP_K_DATACONTROL_PROTOCOL_VERSION_VALUE "ver_2.1.0.3"
66 #define DATACONTROL_PROTOCOL_DIR_TOP "/tmp/osp"
67 #define DATACONTROL_PROTOCOL_DIR_MIDDLE "/tmp/osp/data-control"
68 #define DATACONTROL_PROTOCOL_DIR "/tmp/osp/data-control/request"
70 enum _DataControlRequestType
72 _DATACONTROL_REQUEST_TYPE_UNDEFINED = 0,
73 _DATACONTROL_REQUEST_TYPE_SQL_QUERY,
74 _DATACONTROL_REQUEST_TYPE_SQL_INSERT,
75 _DATACONTROL_REQUEST_TYPE_SQL_UPDATE,
76 _DATACONTROL_REQUEST_TYPE_SQL_DELETE,
77 _DATACONTROL_REQUEST_TYPE_MAP_QUERY,
78 _DATACONTROL_REQUEST_TYPE_MAP_INSERT,
79 _DATACONTROL_REQUEST_TYPE_MAP_UPDATE,
80 _DATACONTROL_REQUEST_TYPE_MAP_DELETE
85 DB_COLUMNTYPE_INT = 0, /**< The column type is 4bytes integer */
86 DB_COLUMNTYPE_INT64, /**< The column type is 8bytes integer */
87 DB_COLUMNTYPE_DOUBLE, /**< The column type is double */
88 DB_COLUMNTYPE_TEXT, /**< The column type is text */
89 DB_COLUMNTYPE_BLOB, /**< The column type is blob */
90 DB_COLUMNTYPE_NULL, /**< The column type is null */
91 DB_COLUMNTYPE_UNDEFINED