installationservices/swi/source/sisregistry/server/scrhelperutil.cpp
changeset 53 ae54820ef82c
parent 25 98b66e4fb0be
child 75 2d2d25361590
equal deleted inserted replaced
52:92f864ef0288 53:ae54820ef82c
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   421 				
   421 				
   422 		const TDesC& fileTarget = aFileDescriptionArray[index]->Target();
   422 		const TDesC& fileTarget = aFileDescriptionArray[index]->Target();
   423 		TPtrC fileTargetPtr(fileTarget);
   423 		TPtrC fileTargetPtr(fileTarget);
   424 		if (filenamesArray.SpecificFindInOrder(fileTargetPtr, descriptorsComparator, EArrayFindMode_First) != KErrNotFound)
   424 		if (filenamesArray.SpecificFindInOrder(fileTargetPtr, descriptorsComparator, EArrayFindMode_First) != KErrNotFound)
   425 			continue; // Skip duplicates
   425 			continue; // Skip duplicates
   426 		filenamesArray.InsertInOrder(fileTargetPtr, descriptorsComparator);
   426 		filenamesArray.InsertInOrderL(fileTargetPtr, descriptorsComparator);
   427 		
   427 		
   428 		if (IsWildcardFile(fileTarget))
   428 		if (IsWildcardFile(fileTarget))
   429 			{
   429 			{
   430 			// Calls the method with ETrue if it's wild carded file.
   430 			// Calls the method with ETrue if it's wild carded file.
   431 			WriteToScrL(aScrSession, aCompId, *(aFileDescriptionArray[index]), ETrue, wildCardFileCount, -1);
   431 			WriteToScrL(aScrSession, aCompId, *(aFileDescriptionArray[index]), ETrue, wildCardFileCount, -1);