2 * Copyright 2012-2013 Samsung Electronics Co., Ltd
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
8 * http://floralicense.org/license/
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 MMS_PLUGIN_INTERNAL_H
18 #define MMS_PLUGIN_INTERNAL_H
20 #include "MmsPluginTypes.h"
21 #include "MmsPluginCodecTypes.h"
23 class MmsPluginInternal
26 static MmsPluginInternal *instance();
28 void processReceivedInd(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_REQUEST_INFO_S *pRequest, bool *bReject);
29 void processSendConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTranQEntity *pRequest);
30 void processRetrieveConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTranQEntity *pRequest, char *pRetrivedFilePath);
31 void processForwardConf(MSG_MESSAGE_INFO_S *pMsgInfo, mmsTranQEntity *pRequest);
32 bool encodeNotifyRespInd(char *szTrID, msg_delivery_report_status_t iStatus, bool bReportAllowed, char *pSendFilePath);
33 bool encodeAckInd(char *szTrID, bool bReportAllowed, char *pSendFilePath);
36 static MmsPluginInternal *pInstance;
41 bool processNotiInd(MSG_MESSAGE_INFO_S *pMsgInfo, MSG_REQUEST_INFO_S *pRequest);
42 void processDeliveryInd(MSG_MESSAGE_INFO_S *pMsgInfo);
43 void processReadOrgInd(MSG_MESSAGE_INFO_S *pMsgInfo);
44 bool checkRejectNotiInd(int roamState, bool bReportAllowed, char *pSendFilePath);
45 bool getMmsReport(MmsReport mmsReport);
46 const char *getMmsDeliveryStatus(msg_delivery_report_status_t deliveryStatus);
47 const char *getMmsReadStatus(msg_read_report_status_t readStatus);
50 #endif //MMS_PLUGIN_INTERNAL_H