2 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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_CDMA_PLUGIN_SETTING_H
18 #define SMS_CDMA_PLUGIN_SETTING_H
21 /*==================================================================================================
23 ==================================================================================================*/
25 #include "MsgSettingTypes.h"
28 /*==================================================================================================
30 ==================================================================================================*/
31 class SmsPluginSetting
34 static SmsPluginSetting* instance();
36 void setSimChangeStatus();
38 void setConfigData(const MSG_SETTING_S *pSetting);
39 void getConfigData(MSG_SETTING_S *pSetting);
40 void getMeImei(char *pImei);
42 void setCbConfigEvent(const MSG_CBMSG_OPT_S *pCbOpt, bool bSuccess);
44 void setResultImei(bool bResult, char *pImei);
45 void setResultFromEvent(bool bResult);
46 void setResultFromSim(bool bResult);
48 void setMwiInfo(MSG_SUB_TYPE_T type, int count);
51 bool getUpdateVoicemailByMdn();
57 void updateSimStatus();
59 void initConfigData();
60 static void* init_config_data(void *data);
61 static void* initSimInfo(void *data);
63 msg_error_t addCbOpt(MSG_CBMSG_OPT_S *pCbOpt);
64 void getCbOpt(MSG_SETTING_S *pSetting);
66 void setVoiceMailInfo(const MSG_VOICEMAIL_OPT_S *pVoiceOpt);
67 bool setCbConfig(const MSG_CBMSG_OPT_S *pCbOpt);
68 bool getCbConfig(MSG_CBMSG_OPT_S *pCbOpt);
70 bool getMsisdnInfo(void);
72 bool getResultImei(char *pImei);
74 bool getCbConfigEvent(MSG_CBMSG_OPT_S *pCbOpt);
76 bool getResultFromSim();
78 static SmsPluginSetting* pInstance;
80 MSG_SMSC_DATA_S smscData;
81 MSG_CBMSG_OPT_S cbOpt;
84 bool bUpdateVoicemailByMdn;
86 char meImei[MAX_ME_IMEI_LEN + 1];
92 #endif /* SMS_CDMA_PLUGIN_SETTING_H */