iaupdate/IAD/api/client/src/iaupdatemanager.cpp
branchRCL_3
changeset 81 42552535c1ac
parent 73 79647526f98c
equal deleted inserted replaced
73:79647526f98c 81:42552535c1ac
    99     delete iUpdateParameters;
    99     delete iUpdateParameters;
   100     iUpdateParameters = NULL;
   100     iUpdateParameters = NULL;
   101     // If an operation is still active, 
   101     // If an operation is still active, 
   102     // then DoCancel will cancel ongoing request
   102     // then DoCancel will cancel ongoing request
   103     Cancel();
   103     Cancel();
       
   104 
       
   105     // if server is just started then session to be created that closing can be
       
   106     // done normal way  
       
   107     if ( UpdateType() == EIAUpdateStartServer )
       
   108         {
       
   109         IAUPDATE_TRACE("[IAUPDATE] CIAUpdateManager::~CIAUpdateManager() server just started"); 
       
   110         UpdateClient().ConnectToApp();
       
   111         } 
       
   112 
   104     UpdateClient().Close();
   113     UpdateClient().Close();
   105     if ( iEikEnv )
   114     if ( iEikEnv )
   106         {
   115         {
   107     	iEikEnv->RemoveForegroundObserver(*this);
   116     	iEikEnv->RemoveForegroundObserver(*this);
   108         }
   117         }
   385     // Use the update type of the ongoing operation to check what callback
   394     // Use the update type of the ongoing operation to check what callback
   386     // function to call.
   395     // function to call.
   387     switch ( updateType )
   396     switch ( updateType )
   388         {
   397         {
   389         case EIAUpdateStartServer:
   398         case EIAUpdateStartServer:
   390             if ( errorCode == KErrNone || errorCode == KErrAlreadyExists )
   399             if ( errorCode == KErrNone )
   391                 {
   400                 {
   392                 CheckUpdatesContinue();            
   401                 CheckUpdatesContinue();            
   393                 }
   402                 }
   394             else
   403             else
   395                 {
   404                 {