os/kernelhwsrv/userlibandfileserver/fileserver/sfsrv/cl_scan.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1996-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 the License "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 // f32\sfsrv\cl_scan.h
    15 // 
    16 //
    17 
    18 #if !defined(__CL_SCAN_H__)
    19 #define __CL_SCAN_H__
    20 #if !defined(__E32BASE_H__)
    21 #include <e32base.h>
    22 #endif
    23 
    24 class CDirFactory : public CDir
    25 	{
    26 public:
    27 	static CDir* NewL(const TDesC& anEntryName);
    28 	static CDir* NewL();
    29 	};	
    30 
    31 NONSHARABLE_CLASS(CDirList) : public CBase
    32 	{
    33 public:
    34 	CDirList();
    35 	static CDirList* NewL(CDir& aDirList);
    36 	~CDirList();
    37 	const TEntry& Next();
    38 	TBool MoreEntries() const;
    39 private:
    40 	CDirList(const CDirList&);
    41 	TBool operator=(const CDirList&);
    42 private:
    43 	CDir* iDirList;
    44 	TInt iCurrentPos;
    45 	};
    46 
    47 NONSHARABLE_CLASS(CDirStack) : public CBase
    48 	{
    49 public:
    50 	static CDirStack* NewL();
    51 	~CDirStack();
    52 	void ResetL(const TDesC& aStartDir);
    53 	TBool IsEmpty();
    54 	void PushL(CDir& aSubDirs);
    55 	void Pop();
    56 	CDirList* Peek();
    57 private:
    58 	CDirStack();
    59 private:
    60 	RPointerArray<CDirList> iDirStack;
    61 	TParse iPath;
    62 	};
    63 
    64 #endif