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 SMS_PLUGIN_SETTING_H
18 #define SMS_PLUGIN_SETTING_H
21 /*==================================================================================================
23 ==================================================================================================*/
25 #include "MsgSettingTypes.h"
28 /*==================================================================================================
30 ==================================================================================================*/
31 class SmsPluginSetting
34 static SmsPluginSetting* instance();
36 void initConfigData(MSG_SIM_STATUS_T SimStatus);
38 void setConfigData(const MSG_SETTING_S *pSetting);
39 void getConfigData(MSG_SETTING_S *pSetting);
41 void setParamCntEvent(int ParamCnt);
42 void setParamEvent(const MSG_SMSC_DATA_S *pSmscData, int RecordIdx, bool bSuccess);
43 void setCbConfigEvent(const MSG_CBMSG_OPT_S *pCbOpt, bool bSuccess);
44 void setMailboxInfoEvent(SMS_SIM_MAILBOX_LIST_S *pVoiceOpt, bool bSuccess);
45 void setMwiInfo(MSG_SUB_TYPE_T type, int count);
46 void setMwiInfoEvent(SMS_SIM_MWI_INFO_S *pMwiInfo, bool bSuccess);
47 void setResultFromSim(bool bResult);
53 msg_error_t addSMSCList(MSG_SMSC_LIST_S *pSmscList);
55 msg_error_t addCbOpt(MSG_CBMSG_OPT_S *pCbOpt);
56 void getCbOpt(MSG_SETTING_S *pSetting);
58 void setParamList(const MSG_SMSC_LIST_S *pSMSCList);
59 void getParamList(MSG_SMSC_LIST_S *pSMSCList);
62 bool getParam(int Index, MSG_SMSC_DATA_S *pSmscData);
64 bool setCbConfig(const MSG_CBMSG_OPT_S *pCbOpt);
65 bool getCbConfig(MSG_CBMSG_OPT_S *pCbOpt);
67 void setVoiceMailInfo(const MSG_VOICEMAIL_OPT_S *pVoiceOpt);
68 bool getVoiceMailInfo(MSG_VOICEMAIL_OPT_S *pVoiceOpt);
69 bool getMwiInfo(void);
70 bool getMsisdnInfo(void);
72 int getParamCntEvent();
73 bool getParamEvent(MSG_SMSC_DATA_S *pSmscData);
74 bool getCbConfigEvent(MSG_CBMSG_OPT_S *pCbOpt);
76 bool getMailboxInfoEvent(MSG_VOICEMAIL_OPT_S *pVoiceOpt);
78 bool getResultFromSim();
80 SMS_PID_T convertPid(MSG_SMS_PID_T pid);
82 static SmsPluginSetting* pInstance;
84 MSG_SMSC_DATA_S smscData;
85 MSG_CBMSG_OPT_S cbOpt;
87 /* Message Waiting Indicator */
88 SMS_SIM_MAILBOX_LIST_S simMailboxList;
89 SMS_SIM_MWI_INFO_S simMwiInfo;
99 #endif //SMS_PLUGIN_SETTING_H