Beta merge 2
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Account / plugin_config.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef _ACCOUNT_PLUGIN_CONFIG_H_
18 #define _ACCOUNT_PLUGIN_CONFIG_H_
19
20 #include <string>
21 #include <Commons/FunctionDeclaration.h>
22
23 namespace TizenApis {
24 namespace Tizen1_0 {
25 namespace Account{
26
27 #define ACCOUNT_FUNCTION_API_ADD_ACCOUNT                  "addAccount"
28 #define ACCOUNT_FUNCTION_API_ADD_LISTENER_ACCOUNTS        "addAccountListener"
29 #define ACCOUNT_FUNCTION_API_REMOVE_LISTENER_ACCOUNTS     "removeAccountListener"
30 #define ACCOUNT_FUNCTION_API_GET_ACCOUNT_BY_ID            "getAccountById"
31 #define ACCOUNT_FUNCTION_API_GET_SERVICETYPE_BY_ID        "getServiceTypeById"
32 #define ACCOUNT_FUNCTION_API_GET_PROVIDER_BY_ID           "getProviderById"
33 #define ACCOUNT_FUNCTION_API_FIND_ACCOUNTS_BY_SERVICETYPE "findAccountsByServiceType"
34 #define ACCOUNT_FUNCTION_API_FIND_ACCOUNTS_BY_TAGS        "findAccountsByTags"
35 #define ACCOUNT_FUNCTION_API_FIND_ACCOUNTS                "findAccounts"
36 #define ACCOUNT_FUNCTION_API_FIND_SERVICES_BY_TAGS        "findServicesByTags"
37 #define ACCOUNT_FUNCTION_API_FIND_SERVICES                "findServices"
38 #define ACCOUNT_FUNCTION_API_FIND_PROVIDERS               "findProviders"
39 #define ACCOUNT_FUNCTION_API_FIND_SERVICETYPES            "findServiceTypes"
40 #define ACCOUNT_FUNCTION_API_GET_SERVICE_BY_NAME          "getServiceByName"
41 #define ACCOUNT_FUNCTION_API_GET_SERVICE_BY_ID            "getServiceById"
42
43
44
45 DECLARE_FUNCTION_GETTER(Account);
46
47 // TODO : should confirm getAccountFunctionData
48 #define ACCOUNT_CHECK_ACCESS(globalContext, functionName)                     \
49     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >(                \
50         globalContext,                     \
51         getAccountFunctionData,           \
52         functionName)
53
54 }
55 }
56 }
57
58 #endif //  _CALENDAR_PLUGIN_CONFIG_H_