Update change log and spec for wrt-plugins-tizen_0.4.9
[platform/framework/web/wrt-plugins-tizen.git] / src / Application / plugin_config.h
1 //\r
2 // Tizen Web Device API\r
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
4 //\r
5 // Licensed under the Apache License, Version 2.0 (the License);\r
6 // you may not use this file except in compliance with the License.\r
7 // You may obtain a copy of the License at\r
8 //\r
9 // http://www.apache.org/licenses/LICENSE-2.0\r
10 //\r
11 // Unless required by applicable law or agreed to in writing, software\r
12 // distributed under the License is distributed on an AS IS BASIS,\r
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 // See the License for the specific language governing permissions and\r
15 // limitations under the License.\r
16 //\r
17 \r
18 \r
19 #ifndef _APPLICATOIN_PLUGIN_CONFIG_H_\r
20 #define _APPLICATOIN_PLUGIN_CONFIG_H_\r
21 \r
22 #include <string>\r
23 #include <Commons/FunctionDeclaration.h>\r
24 \r
25 // feature : launch\r
26 #define APPLICATION_FUNCTION_API_LAUNCH                         "launch"\r
27 #define APPLICATION_FUNCTION_API_LAUNCH_APP_CONTROL     "launchAppControl"\r
28 \r
29 // feature : kill - public candidate\r
30 #define APPLICATION_FUNCTION_API_KILL                           "kill"\r
31 \r
32 // feature : read\r
33 #define APPLICATION_FUNCTION_API_GET_APPS_INFO                                  "getAppsInfo"\r
34 #define APPLICATION_FUNCTION_API_GET_APP_INFO                                   "getAppInfo"\r
35 #define APPLICATION_FUNCTION_API_GET_APPS_CONTEXT                               "getAppsContext"\r
36 #define APPLICATION_FUNCTION_API_GET_APP_CONTEXT                                "getAppContext"\r
37 #define APPLICATION_FUNCTION_API_FIND_APP_CONTROL                               "findAppControl"\r
38 #define APPLICATION_FUNCTION_API_ADD_APP_INFO_EVENT_LISTENER    "addAppInfoEventListener"\r
39 #define APPLICATION_FUNCTION_API_REMOVE_APP_INFO_EVENT_LISTENER "removeAppInfoEventListener"\r
40 \r
41 // feature : certificate - public candidate\r
42 #define APPLICATION_FUNCTION_API_GET_APP_CERTS                                  "getAppCerts"\r
43 \r
44 // no feature required\r
45 #define APPLICATION_FUNCTION_API_GET_CURRENT_APP                                "getCurrentApplication"\r
46 #define APPLICATION_FUNCTION_API_GET_REQUESTED_APP_CONTROL              "getRequestedAppControl"\r
47 #define APPLICATION_FUNCTION_API_EXIT                                                   "exit"\r
48 #define APPLICATION_FUNCTION_API_HIDE                                                   "hide"\r
49 #define APPLICATION_FUNCTION_API_REPLY_RESULT                                   "replyResult"\r
50 #define APPLICATION_FUNCTION_API_REPLY_FAILURE                                  "replyFailure"\r
51 #define APPLICATION_FUNCTION_API_SET_USER_AGENT                                 "setUserAgent"\r
52 \r
53 namespace DeviceAPI {\r
54 namespace Application {\r
55 \r
56 DECLARE_FUNCTION_GETTER(Application);\r
57 \r
58 #define APPLICATION_CHECK_ACCESS(functionName)                     \\r
59     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >(     \\r
60         getApplicationFunctionData,                                \\r
61         functionName)\r
62 \r
63 }\r
64 }\r
65 #endif\r
66 \r