ncdengine/provider/deviceinteraction/src/ncdsilentinstallactiveobserver.cpp
changeset 69 b18a4bf55ddb
parent 64 48c14c385b0e
equal deleted inserted replaced
64:48c14c385b0e 69:b18a4bf55ddb
   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     }
   178     return iObserver;
   179     return iObserver;
   179     }
   180     }
   180 
   181 
   181 Usif::RSoftwareInstall& CNcdSilentInstallActiveObserver::SilentLauncher()
   182 Usif::RSoftwareInstall& CNcdSilentInstallActiveObserver::SilentLauncher()
   182     {
   183     {
   183     // return iSilentLauncher;
       
   184     return iInstaller;
   184     return iInstaller;
   185     }
   185     }
   186 
   186 
   187 
   187 
   188 TInt CNcdSilentInstallActiveObserver::ConvertErrorCode( TInt aErrorCode )
   188 TInt CNcdSilentInstallActiveObserver::ConvertErrorCode( TInt aErrorCode )