diff -r 491b3ed49290 -r 65326cf895ed filesystemuis/memscaneng/serversrc/msengfilescanner.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filesystemuis/memscaneng/serversrc/msengfilescanner.cpp Wed Sep 01 12:31:07 2010 +0100 @@ -0,0 +1,88 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Scanner class used to scan file system by file UID. +* +*/ + + +// USER INCLUDES +#include "msengfilescanner.h" + + + +// ================= MEMBER FUNCTIONS ======================================== + +// --------------------------------------------------------------------------- +// CMsengFileScanner::CMsengFileScanner() +// +// Constructor +// --------------------------------------------------------------------------- +CMsengFileScanner::CMsengFileScanner(MMsengScannerObserver& aObserver, + CMsengInfoArray& aScanArray, + RFs& aFsSession) +: CMsengDirectoryScanner(aObserver, aScanArray, aFsSession) + { + } + +// --------------------------------------------------------------------------- +// CMsengFileScanner::~CMsengFileScanner() +// +// Destructor +// --------------------------------------------------------------------------- + +CMsengFileScanner::~CMsengFileScanner() + { + } + +// --------------------------------------------------------------------------- +// CMsengFileScanner::ScanDirectoryL() +// +// +// --------------------------------------------------------------------------- +CMsengDirectoryScanner::TScanDirectoryResult CMsengFileScanner::ScanDirectoryL + (const TDesC& aDirectory, RFs& /*aFsSession*/) + { + TBool moveToNextDirectory = ETrue; + CDir* results = FindFilesL(aDirectory, moveToNextDirectory); + if (results) + { + CleanupStack::PushL(results); + + // Go through all files in the list and tell subclass + TFileName file; + const TInt count = results->Count(); + for(TInt i=0; i