3 * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved.
5 * This file is part of msg-service.
7 * Contact: Jaeyun Jeong <jyjeong@samsung.com>
8 * Sangkoo Kim <sangkoo.kim@samsung.com>
9 * Seunghwan Lee <sh.cat.lee@samsung.com>
10 * SoonMin Jung <sm0415.jung@samsung.com>
11 * Jae-Young Lee <jy4710.lee@samsung.com>
12 * KeeBum Kim <keebum.kim@samsung.com>
14 * PROPRIETARY/CONFIDENTIAL
16 * This software is the confidential and proprietary information of
17 * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
18 * disclose such Confidential Information and shall use it only in
19 * accordance with the terms of the license agreement you entered
20 * into with SAMSUNG ELECTRONICS.
22 * SAMSUNG make no representations or warranties about the suitability
23 * of the software, either express or implied, including but not limited
24 * to the implied warranties of merchantability, fitness for a particular
25 * purpose, or non-infringement. SAMSUNG shall not be liable for any
26 * damages suffered by licensee as a result of using, modifying or
27 * distributing this software or its derivatives.
31 #ifndef SMS_PLUGIN_SETTING_H
32 #define SMS_PLUGIN_SETTING_H
35 /*==================================================================================================
37 ==================================================================================================*/
39 #include "MsgSettingTypes.h"
42 /*==================================================================================================
44 ==================================================================================================*/
45 class SmsPluginSetting
48 static SmsPluginSetting* instance();
50 void initConfigData(MSG_SIM_STATUS_T SimStatus);
52 void setConfigData(const MSG_SETTING_S *pSetting);
53 void getConfigData(MSG_SETTING_S *pSetting);
55 void setParamCntEvent(int ParamCnt);
56 void setParamEvent(const MSG_SMSC_DATA_S *pSmscData, int RecordIdx, bool bSuccess);
57 void setCbConfigEvent(const MSG_CBMSG_OPT_S *pCbOpt, bool bSuccess);
58 void setResultFromSim(bool bResult);
64 MSG_ERROR_T addSMSCList(MSG_SMSC_LIST_S *pSmscList);
66 MSG_ERROR_T addCbOpt(MSG_CBMSG_OPT_S *pCbOpt);
67 void getCbOpt(MSG_SETTING_S *pSetting);
69 void setParamList(const MSG_SMSC_LIST_S *pSMSCList);
70 void getParamList(MSG_SMSC_LIST_S *pSMSCList);
73 bool getParam(int Index, MSG_SMSC_DATA_S *pSmscData);
75 bool setCbConfig(const MSG_CBMSG_OPT_S *pCbOpt);
76 bool getCbConfig(MSG_CBMSG_OPT_S *pCbOpt);
78 int getParamCntEvent();
79 bool getParamEvent(MSG_SMSC_DATA_S *pSmscData);
80 bool getCbConfigEvent(MSG_CBMSG_OPT_S *pCbOpt);
81 bool getResultFromSim();
83 SMS_PID_T convertPid(MSG_SMS_PID_T pid);
85 static SmsPluginSetting* pInstance;
87 MSG_SMSC_DATA_S smscData;
88 MSG_CBMSG_OPT_S cbOpt;
98 #endif //SMS_PLUGIN_SETTING_H