+SimType
+SimInfo::GetSimType(void) const
+{
+ SysAssertf(__pSimInfoImpl != null, "Not yet constructed. Construct() should be called before use.");
+
+ ClearLastResult();
+
+ result r = _AccessController::CheckUserPrivilege(_PRV_TELEPHONY);
+ SysTryReturn(NID_TEL, r == E_SUCCESS, SIM_TYPE_UNKNOWN, E_PRIVILEGE_DENIED,
+ "[%s] The application does not have the privilege to call this method.", GetErrorMessage(E_PRIVILEGE_DENIED));
+
+ return __pSimInfoImpl->GetSimType();
+}
+