2.0_beta
[framework/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginMain.h
1 /*
2 * Copyright 2012  Samsung Electronics Co., Ltd
3 *
4 * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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 MMS_PLUGIN_MAIN_H
18 #define MMS_PLUGIN_MAIN_H
19
20 /*==================================================================================================
21                                                         INCLUDE FILES
22 ==================================================================================================*/
23 #include "MsgTypes.h"
24 #include "MsgPluginInterface.h"
25
26 #ifdef __cplusplus
27
28 extern "C"
29 {
30 #endif
31
32 /*==================================================================================================
33                                                         FUNCTION PROTOTYPES
34 ==================================================================================================*/
35 msg_error_t MmsInitialize();
36
37 msg_error_t MmsFinalize();
38
39 msg_error_t MmsRegisterListener(MSG_PLUGIN_LISTENER_S *pListener);
40
41 msg_error_t MmsSubmitRequest(MSG_REQUEST_INFO_S *pReqInfo);
42
43 msg_error_t MmsAddMessage(MSG_MESSAGE_INFO_S *pMsg, MSG_SENDINGOPT_INFO_S *pSendOptInfo, char *pFileData);
44
45 msg_error_t MmsProcessReceivedInd(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_REQUEST_INFO_S *pRequest, bool *bReject);
46
47 msg_error_t MmsUpdateMessage(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_SENDINGOPT_INFO_S *pSendOptInfo, char *pFileData);
48
49 msg_error_t MmsGetMmsMessage(MSG_MESSAGE_INFO_S *pMsg,  MSG_SENDINGOPT_INFO_S *pSendOptInfo, MMS_MESSAGE_DATA_S *pMmsMsg, char **pDestMsg);
50
51 msg_error_t MmsUpdateRejectStatus(MSG_MESSAGE_INFO_S *pMsgInfo);
52
53 msg_error_t MmsComposeReadReport(MSG_MESSAGE_INFO_S *pMsgInfo);
54
55 msg_error_t MmsRestoreMsg(MSG_MESSAGE_INFO_S *pMsgInfo, char *pRcvBody, int rcvdBodyLen, char *filePath);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif //MMS_PLUGIN_MAIN_H
62