featuremgmt/featuremgr/src/serverexe/featmgrsession.cpp
branchRCL_3
changeset 11 667e88a979d7
parent 10 fa9941cf3867
equal deleted inserted replaced
10:fa9941cf3867 11:667e88a979d7
   141             aMessage.Complete( KErrServerBusy );
   141             aMessage.Complete( KErrServerBusy );
   142             }
   142             }
   143         else
   143         else
   144             {
   144             {
   145             INFO_LOG( "CFeatMgrSession::ServiceL() - plugins not ready" );
   145             INFO_LOG( "CFeatMgrSession::ServiceL() - plugins not ready" );
   146             iList.AddLast( *CFeatMgrPendingRequest::NewL( aMessage ) );
   146             CFeatMgrPendingRequest* request=NULL;
       
   147             TRAPD(error,request=CFeatMgrPendingRequest::NewL( aMessage ));
       
   148             if (error!=KErrNone)
       
   149               {
       
   150               LOG_IF_ERROR1( error, "CFeatMgrSession::ServiceL(): Error in Adding Pending Request: %d", error );
       
   151               //cannot create pending request so need to indicate to the client rather than letting the cient wait forever.
       
   152               aMessage.Complete(error);              
       
   153               }
       
   154             else
       
   155               {
       
   156               iList.AddLast(*request);
       
   157               }
   147             }
   158             }
   148         }
   159         }
   149     else
   160     else
   150         {
   161         {
   151         #if defined(FEATMGR_INFO_LOG_ENABLED)
   162         #if defined(FEATMGR_INFO_LOG_ENABLED)
   535     		break;
   546     		break;
   536     	    }
   547     	    }
   537 
   548 
   538 #ifdef EXTENDED_FEATURE_MANAGER_TEST
   549 #ifdef EXTENDED_FEATURE_MANAGER_TEST
   539     	    
   550     	    
       
   551 #pragma BullseyeCoverage off
       
   552     	    
   540         case EFeatMgrResourceMark:
   553         case EFeatMgrResourceMark:
   541             ResourceCountMarkStart();
   554             ResourceCountMarkStart();
   542             break;
   555             break;
   543             
   556             
   544         case EFeatMgrResourceCheck:
   557         case EFeatMgrResourceCheck:
   584     	    TInt count = User::CountAllocCells();
   597     	    TInt count = User::CountAllocCells();
   585             TPckgC<TInt> resPckg( count );
   598             TPckgC<TInt> resPckg( count );
   586             aMessage.WriteL( 0, resPckg );
   599             aMessage.WriteL( 0, resPckg );
   587     	    
   600     	    
   588     	    break;
   601     	    break;
   589     	    }    
   602     	    }
       
   603     	    
       
   604 #pragma BullseyeCoverage on
       
   605     	    
   590 #endif
   606 #endif
   591 
   607 
   592         // Cannot identify the message.
   608         // Cannot identify the message.
   593         default:
   609         default:
   594             {
   610             {