f3ba0d9b1a0e433ed9a8154487eca1bb21d62334
[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_SERVICES_BY_TAGS        "findServicesByTags"
36 #define ACCOUNT_FUNCTION_API_FIND_PROVIDERS               "findProviders"
37 #define ACCOUNT_FUNCTION_API_FIND_SERVICETYPES            "findServiceTypes"
38 #define ACCOUNT_FUNCTION_API_GET_SERVICE_BY_NAME          "getServiceByName"
39 #define ACCOUNT_FUNCTION_API_GET_SERVICE_BY_ID            "getServiceById"
40
41
42
43 DECLARE_FUNCTION_GETTER(Account);
44
45 // TODO : should confirm getAccountFunctionData
46 #define ACCOUNT_CHECK_ACCESS(globalContext, functionName)                     \
47     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >(                \
48         globalContext,                     \
49         getAccountFunctionData,           \
50         functionName)
51
52 }
53 }
54 }
55
56 #endif //  _CALENDAR_PLUGIN_CONFIG_H_