sysstatemgmt/systemstatemgr/cmd/src/ssmcommandlistresourcereaderimpl.cpp
branchRCL_3
changeset 7 1fc153c72b60
parent 3 a811597961f0
child 21 ccb4f6b3db21
equal deleted inserted replaced
6:6bb05bdcbe09 7:1fc153c72b60
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   799 				{
   799 				{
   800 				// all command lists are processed. Set the inProgress flag to "EFalse" 
   800 				// all command lists are processed. Set the inProgress flag to "EFalse" 
   801 				inProgress = EFalse;
   801 				inProgress = EFalse;
   802 				break;
   802 				break;
   803 				}
   803 				}
       
   804 			else if((iCommandIndexInRssFile[iCurrentCommandListInMapping] == 0))
       
   805 					{
       
   806 					//The current commandlist is empty 
       
   807 					//go to the next commandlist in the mapping.
       
   808 					continue;
       
   809 					}
   804 			else
   810 			else
   805 				{
   811 				{
   806 				//open the next resource id and read the commands
   812 				//open the next resource id and read the commands
   807 				iListReader.Close();
   813 				iListReader.Close();
   808 				iListReader.OpenL(iMappingArray[iCurrentCommandListInMapping].iResourceFile, iMappingArray[iCurrentCommandListInMapping].iResourceId);
   814 				iListReader.OpenL(iMappingArray[iCurrentCommandListInMapping].iResourceFile, iMappingArray[iCurrentCommandListInMapping].iResourceId);