int time_count = 0;
int status = 0;
TapiHandle* handle = null;
- handle = tel_init(null);
- SysTryReturnResult(NID_SYS, handle != null, E_SYSTEM, "It is failed to init TAPI.");
-
+
while(time_count < 30) //Wait 30 second.
{
- ret = tel_check_modem_power_status(handle, &status);
- SysLog(NID_SYS, "Modem check result is %d, status is %d.", handle, status);
- SysTryReturnResult(NID_SYS, ret == TAPI_API_SUCCESS, E_SYSTEM, "It is failed to get Modem status.");
+ handle = tel_init(null);
- if(status == 0)
+ if(handle != null)
{
- break;
+ ret = tel_check_modem_power_status(handle, &status);
+ SysLog(NID_SYS, "Modem check result is %d, status is %d.", handle, status);
+ SysTryReturnResult(NID_SYS, ret == TAPI_API_SUCCESS, E_SYSTEM, "It is failed to get Modem status.");
+
+ if(status == 0)
+ {
+ break;
+ }
}
-
usleep(1000000);
time_count++;
}
reg.AddValue(_SYSTEM_CACHING_SECTION, _MICROPHONE, systemValue);
reg.Flush();
- this->GetValue(_MODELNAME, sValue);
- reg.AddValue(_SYSTEM_CACHING_SECTION, _MODELNAME, sValue);
- reg.Flush();
-
this->GetValue(_MULTIPOINTTOUCH_POINTCOUNT, nValue);
reg.AddValue(_SYSTEM_CACHING_SECTION, _MULTIPOINTTOUCH_POINTCOUNT, nValue);
reg.Flush();
reg.AddValue(_SYSTEM_CACHING_SECTION, _SECURE_ELEMENT, systemValue);
reg.Flush();
+ this->GetValue(_MODELNAME, sValue);
+ reg.AddValue(_SYSTEM_CACHING_SECTION, _MODELNAME, sValue);
+ reg.Flush();
+
+ r = this->GetValue(_DUID, sValue);
+ if(r != E_SUCCESS)
+ {
+ sValue.Append(L"ERROR");
+ }
+ reg.AddValue(_SYSTEM_CACHING_SECTION, _DUID, sValue);
+ reg.Flush();
+
return E_SUCCESS;
}