lowlevellibsandfws/apputils/inc/BAFINDF.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined(__BAFINDF_H__)
       
    17 #define __BAFINDF_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <f32file.h>
       
    21 
       
    22 class CFindFileByType : public CBase
       
    23 /**
       
    24 @publishedAll
       
    25 @released
       
    26 */
       
    27 	{
       
    28 public:
       
    29 	IMPORT_C CFindFileByType(RFs& aFs);
       
    30 	IMPORT_C ~CFindFileByType();
       
    31 	IMPORT_C TInt FindFirst(const TDesC& aName,const TDesC& aDir,const TUidType& aType);
       
    32 	IMPORT_C TInt FindNext();
       
    33 	IMPORT_C const TEntry& Entry() const;
       
    34 	inline const TParse& File() const;
       
    35 private:
       
    36 	void CloseDir();
       
    37 private:
       
    38 	TUidType iType;
       
    39 	CDir* iDir;
       
    40 	TInt iCurrentFile;
       
    41 	TParse iFile;
       
    42 	TFindFile iFind;
       
    43 	};
       
    44 
       
    45 inline const TParse& CFindFileByType::File() const
       
    46 	{return iFile;}
       
    47 
       
    48 #endif