+
+result
+CallPresentationModel::GetSimInfo(void)
+{
+ int mnc;
+ int mcc;
+ bool isAvailable;
+ String spn;
+ String iccId;
+ String operatorName;
+
+ SimStateManager simStateManager;
+ SimInfo simInfo;
+
+ result r = simStateManager.Construct();
+ if (IsFailed(r))
+ {
+ return E_FAILURE;
+ }
+
+ r = simStateManager.GetSimInfo(simInfo);
+ if (IsFailed(r))
+ {
+ return E_FAILURE;
+ }
+
+ mnc = simInfo.GetMnc();
+ mcc = simInfo.GetMcc();
+ spn = simInfo.GetSpn();
+ iccId = simInfo.GetIccId();
+ operatorName = simInfo.GetOperatorName();
+ //Checks whether a SIM card is present in the device or not
+ isAvailable = simInfo.IsAvailable();
+ if(isAvailable == true)
+ {
+ return E_SUCCESS;
+ }
+ else
+ {
+ return E_FAILURE;
+ }
+}