sysstatemgmt/systemstatemgr/cmd/src/ssmcommandlistimpl.cpp
branchRCL_3
changeset 3 a811597961f0
parent 0 4e1aa6a622a0
child 59 0f7422b6b602
equal deleted inserted replaced
0:4e1aa6a622a0 3:a811597961f0
   235 // Execute a specific command in the list
   235 // Execute a specific command in the list
   236 //@panic ECmdListBadIdx if the index value is out of range
   236 //@panic ECmdListBadIdx if the index value is out of range
   237 //@panic ECmdNullPtr if the information used to create command is null
   237 //@panic ECmdNullPtr if the information used to create command is null
   238 void CSsmCommandListImpl::Execute( const TInt aIndex, TRequestStatus& aStatus )
   238 void CSsmCommandListImpl::Execute( const TInt aIndex, TRequestStatus& aStatus )
   239 	{
   239 	{
   240 	DEBUGPRINT2A("CSsmCommandListImpl::Execute - List Count() = %d", Count());
       
   241 	
       
   242 	__ASSERT_DEBUG( __IN_RANGE(aIndex, iCmdList.Count()), PanicNow(KPanicCmdList, ECmdListBadIdx));
   240 	__ASSERT_DEBUG( __IN_RANGE(aIndex, iCmdList.Count()), PanicNow(KPanicCmdList, ECmdListBadIdx));
   243 	__ASSERT_DEBUG( iCmdList[ aIndex ], PanicNow(KPanicCmdList, ECmdNullPtr));
   241 	__ASSERT_DEBUG( iCmdList[ aIndex ], PanicNow(KPanicCmdList, ECmdNullPtr));
   244 	
   242 	
   245 	MSsmCommand* cmd = iCmdList[ aIndex ];
   243 	MSsmCommand* cmd = iCmdList[ aIndex ];
   246 	if( cmd )
   244 	if( cmd )
   331 	if (!aCmd)
   329 	if (!aCmd)
   332 		{
   330 		{
   333 		SSMLOGLEAVE(KErrArgument);
   331 		SSMLOGLEAVE(KErrArgument);
   334 		}
   332 		}
   335 	
   333 	
   336 	const TSsmCommandType cmdType = aCmd->Type();	
   334 	const TSsmCommandType cmdType = aCmd->Type();
   337 	DEBUGPRINT2A("Adding command type: %d", cmdType);
   335 	DEBUGPRINT2A("Adding command type: %d", cmdType);
   338 	
   336 
   339     if (ESsmCmdPublishSystemState == cmdType) 
   337     if (ESsmCmdPublishSystemState == cmdType) 
   340         {
   338         {
   341         ++iPublishSysStateCmdCount;
   339         ++iPublishSysStateCmdCount;
   342         }
   340         }
   343     else if (ESsmCmdPublishSwp == cmdType) 
   341     else if (ESsmCmdPublishSwp == cmdType)