Modify flora license version.
[platform/core/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginEncode.h
1 /*
2 * Copyright 2012-2013  Samsung Electronics Co., Ltd
3 *
4 * Licensed under the Flora License, Version 1.1 (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/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_ENCODE_H
18 #define MMS_PLUGIN_ENCODE_H
19
20 #include <stdio.h>
21 #include "MmsPluginCodecTypes.h"
22 #include "MmsPluginCodecCommon.h"
23 #include "MmsPluginMessage.h"
24
25 /* Encoding */
26 void MmsRegisterEncodeBuffer(char *pInBuff, int maxLen);
27 void MmsUnregisterEncodeBuffer(void);
28
29 bool MmsEncodeSendReq(FILE *pFile, MmsMsg *pMsg);
30 bool MmsEncodeTemplate(FILE *pFile, MmsMsg *pMsg);
31 bool MmsEncodeAckInd(FILE *pFile, char *szTrID, bool bReportAllowed);
32 bool MmsEncodeNotiRespInd(FILE *pFile, char *szTrID, msg_delivery_report_status_t iStatus, bool bReportAllowed);
33
34 bool MmsEncodeReadReport10(FILE *pFile, MmsMsg *pMsg, msg_read_report_status_t mmsReadStatus);
35 bool MmsEncodeReadReport11(FILE *pFile, MmsMsg *pMsg, msg_read_report_status_t mmsReadStatus);
36
37 #endif //MMS_PLUGIN_ENCODE_H