Modify flora license version.
[platform/core/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginInternal.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_INTERNAL_H
18 #define MMS_PLUGIN_INTERNAL_H
19
20 #include "MmsPluginTypes.h"
21 #include "MmsPluginCodecTypes.h"
22
23 class MmsPluginInternal
24 {
25         public:
26                 static MmsPluginInternal *instance();
27
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);
34
35         private:
36                 static MmsPluginInternal *pInstance;
37
38                 MmsPluginInternal();
39                 ~MmsPluginInternal();
40
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);
48 };
49
50 #endif //MMS_PLUGIN_INTERNAL_H