equal
deleted
inserted
replaced
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); |