diff -r 000000000000 -r 3e07fef1e154 testexecfw/useremul/inc/FolderContentsListener.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testexecfw/useremul/inc/FolderContentsListener.h Mon Mar 08 15:03:44 2010 +0800 @@ -0,0 +1,69 @@ +/*------------------------------------------------------------------ + - + * Software Name : UserEmulator + * Version : v4.2.1309 + * + * Copyright (c) 2009 France Telecom. All rights reserved. + * This software is distributed under the License + * "Eclipse Public License - v 1.0" the text of which is available + * at the URL "http://www.eclipse.org/legal/epl-v10.html". + * + * Initial Contributors: + * France Telecom + * + * Contributors: + *------------------------------------------------------------------ + - + * File Name: FolderContentsListener.h + * + * Created: 13/08/2009 + * Author(s): Marcell Kiss, Reshma Sandeep Das + * + * Description: + * An interface class for folder scan notifications + *------------------------------------------------------------------ + - + * + */ + +#ifndef FOLDERCONTENTSLISTENER_H__ +#define FOLDERCONTENTSLISTENER_H__ + +//System includes +#include + +/** + * MFolderContentsListener, an interface class for folder scan notifications + */ + +class MFolderContentsListener +{ +public: + /** + * This gets called before a new folder is being scanned. + */ + virtual void FolderStarting( const TDesC & aFullPath, TBool aIsDriveListFlag ) = 0; + /** + * This gets called with every entry of the currently scanned folder that is a folder + */ + virtual void NewFolder( const TDesC & aEntry ) = 0; + + /** + * This gets called with every entry of the currently scanned folder that is a plain file + */ + virtual void NewFile( const TDesC & aEntry ) = 0; + + /** + * This is called after all entries of the currently scanned folder + * have been delivered. This is NOT called when a scan operation is + * aborted by starting a new scan before this got called! + */ + virtual void FolderCompleteL() = 0; + + /** + * This gets called if an unexpected error occures during scanning. + */ + virtual void ErrorOccured( TInt aReasonCode ) = 0; +}; + +#endif