equal
deleted
inserted
replaced
400 // ----------------------------------------------------------------------------- |
400 // ----------------------------------------------------------------------------- |
401 // CIAUpdateFWFotaModel::GetCurrentFwUpdState |
401 // CIAUpdateFWFotaModel::GetCurrentFwUpdState |
402 // Fetches the state of last or current Fota operation |
402 // Fetches the state of last or current Fota operation |
403 // ----------------------------------------------------------------------------- |
403 // ----------------------------------------------------------------------------- |
404 // |
404 // |
405 RFotaEngineSession::TState CIAUpdateFWFotaModel::GetCurrentFwUpdState() |
405 RFotaEngineSession::TState CIAUpdateFWFotaModel::GetCurrentFwUpdState() |
406 { |
406 { |
407 FLOG( "[IAUPDATEFW] CIAUpdateFWFotaModel::GetCurrentFwUpdState()" ); |
407 FLOG( "[IAUPDATEFW] CIAUpdateFWFotaModel::GetCurrentFwUpdState()" ); |
408 const TInt x = -1; |
408 // Workaround because fotaserver has closed all sessions if DM UI was closed. |
409 return iFotaEngine.GetState(x); |
409 // So, we cannot rely on existing session but a new one needs to be opened. |
410 } |
410 iFotaEngine.Close(); |
411 |
411 iFotaEngine.OpenL(); |
|
412 const TInt x = -1; |
|
413 return iFotaEngine.GetState(x); |
|
414 } |
|
415 |
|
416 |
|
417 TInt CIAUpdateFWFotaModel::TryResumeFwUpdDownload() |
|
418 { |
|
419 FLOG( "[IAUPDATEFW] CIAUpdateFWFotaModel::TryResumeFwUpdDownload()" ); |
|
420 TInt retval = iFotaEngine.TryResumeDownload(); |
|
421 return retval; |
|
422 } |
|
423 |
412 // End of File |
424 // End of File |