154 // This is called when the silent installer has done its job. |
154 // This is called when the silent installer has done its job. |
155 // Close the installer. |
155 // Close the installer. |
156 // The launcher is shown in the application list. |
156 // The launcher is shown in the application list. |
157 // So, it would not be nice to leave it there after operation is completed. |
157 // So, it would not be nice to leave it there after operation is completed. |
158 |
158 |
159 |
159 /* Uncomment for testing |
160 TInt ErrCategory = 0; |
160 TInt ErrCategory = 0; |
161 TInt ErrCode = 0; |
161 TInt ErrCode = 0; |
162 TInt ExtendedErrCode =0; |
162 TInt ExtendedErrCode =0; |
163 |
163 |
164 TBool ret = iResults->GetIntByNameL(Usif::KSifOutParam_ErrCategory, ErrCategory); |
164 ErrCategory = iResults->GetIntByNameL(Usif::KSifOutParam_ErrCategory, ErrCategory); |
165 ret = iResults->GetIntByNameL(Usif::KSifOutParam_ErrCode, ErrCode); |
165 ErrCode = iResults->GetIntByNameL(Usif::KSifOutParam_ErrCode, ErrCode); |
166 ret = iResults->GetIntByNameL(Usif::KSifOutParam_ExtendedErrCode, ExtendedErrCode); |
166 ExtendedErrCode = iResults->GetIntByNameL(Usif::KSifOutParam_ExtendedErrCode, ExtendedErrCode); |
167 SilentLauncher().Close(); |
167 SilentLauncher().Close(); |
168 |
168 */ |
|
169 |
169 TInt errorCode( ConvertErrorCode( iStatus.Int() ) ); |
170 TInt errorCode( ConvertErrorCode( iStatus.Int() ) ); |
170 |
171 |
171 // Just forward the information to the observer. |
172 // Just forward the information to the observer. |
172 AsyncObserver().AsyncSilentInstallComplete( errorCode ); |
173 AsyncObserver().AsyncSilentInstallComplete( errorCode ); |
173 } |
174 } |