2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef _ACCOUNT_PLUGIN_CONFIG_H_
18 #define _ACCOUNT_PLUGIN_CONFIG_H_
21 #include <Commons/FunctionDeclaration.h>
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"
43 DECLARE_FUNCTION_GETTER(Account);
45 // TODO : should confirm getAccountFunctionData
46 #define ACCOUNT_CHECK_ACCESS(globalContext, functionName) \
47 aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >( \
49 getAccountFunctionData, \
56 #endif // _CALENDAR_PLUGIN_CONFIG_H_