Merge from master.
[framework/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginMain.h
1 /*
2 * Copyright 2012-2013  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://floralicense.org
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 #include "MmsPluginTypes.h"
21 #include "MsgPluginInterface.h"
22
23 #ifdef __cplusplus
24
25 extern "C"
26 {
27 #endif
28
29 msg_error_t MmsInitialize();
30
31 msg_error_t MmsFinalize();
32
33 msg_error_t MmsRegisterListener(MSG_PLUGIN_LISTENER_S *pListener);
34
35 msg_error_t MmsSubmitRequest(MSG_REQUEST_INFO_S *pReqInfo);
36
37 msg_error_t MmsAddMessage(MSG_MESSAGE_INFO_S *pMsg, MSG_SENDINGOPT_INFO_S *pSendOptInfo, char *pFileData);
38
39 msg_error_t MmsProcessReceivedInd(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_REQUEST_INFO_S *pRequest, bool *bReject);
40
41 msg_error_t MmsUpdateMessage(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_SENDINGOPT_INFO_S *pSendOptInfo, char *pFileData);
42
43 msg_error_t MmsGetMmsMessage(MSG_MESSAGE_INFO_S *pMsg, MSG_SENDINGOPT_INFO_S *pSendOptInfo, MMS_MESSAGE_DATA_S *pMmsMsg, char **pDestMsg);
44
45 msg_error_t MmsUpdateRejectStatus(MSG_MESSAGE_INFO_S *pMsgInfo);
46
47 msg_error_t MmsComposeReadReport(MSG_MESSAGE_INFO_S *pMsgInfo);
48
49 msg_error_t MmsRestoreMsg(MSG_MESSAGE_INFO_S *pMsgInfo, char *pRcvBody, int rcvdBodyLen, char *filePath);
50
51 msg_error_t MmsDeleteMessage(msg_message_id_t msgId);
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif //MMS_PLUGIN_MAIN_H
58