upload tizen1.0 source
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Messaging / 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 _MESSAGING_PLUGIN_CONFIG_H_
18 #define _MESSAGING_PLUGIN_CONFIG_H_
19
20 #include <Commons/FunctionDeclaration.h>
21
22 namespace TizenApis {
23 namespace Tizen1_0 {
24
25 typedef enum 
26 {
27 MESSAGING_FUNCTION_API_GET_MESSAGING_SERVICE = 0,
28 MESSAGING_FUNCTION_API_CREATE_MESSAGE,
29 MESSAGING_FUNCTION_API_SEND_MESSAGE,
30 MESSAGING_FUNCTION_API_LOAD_MESSAGE_BODY,
31 MESSAGING_FUNCTION_API_LOAD_MESSAGE_ATTACHMENT,
32 MESSAGING_FUNCTION_API_SYNC,
33 MESSAGING_FUNCTION_API_SYNC_FOLDER,
34 MESSAGING_FUNCTION_API_CANCEL_OPERATION,
35 MESSAGING_FUNCTION_API_ADD_DRAFT_MESSAGE,
36 MESSAGING_FUNCTION_API_FIND_MESSAGES,
37 MESSAGING_FUNCTION_API_REMOVE_MESSAGES,
38 MESSAGING_FUNCTION_API_UPDATE_MESSAGES,
39 MESSAGING_FUNCTION_API_FIND_CONVERSATIONS,
40 MESSAGING_FUNCTION_API_REMOVE_CONVERSATIONS,
41 MESSAGING_FUNCTION_API_FIND_FOLDERS,
42 MESSAGING_FUNCTION_API_ADD_MESSAGES_CHANGE_LISTNER,
43 MESSAGING_FUNCTION_API_ADD_CONVERSATIONS_CHANGE_LISTNER,
44 MESSAGING_FUNCTION_API_ADD_FOLDERS_CHANGE_LISTNER,
45 MESSAGING_FUNCTION_API_REMOVE_CHANGE_LISTENER
46 } MessagingFuncNames;
47
48 extern const char* MessagingExportedNames[];
49
50 DECLARE_FUNCTION_GETTER(Messaging);
51
52 #define MESSAGING_CHECK_ACCESS(functionName)   \
53     aceCheckAccess<AceFunctionGetter, DefaultArgsVerifier<> >(        \
54     getMessagingFunctionData,                                              \
55     functionName)
56
57 }
58 }
59
60 #endif //MESSAGING_PLUGIN_CONFIG_H_
61