1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/sfsrv/cl_scan.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,64 @@
1.4 +// Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// f32\sfsrv\cl_scan.h
1.18 +//
1.19 +//
1.20 +
1.21 +#if !defined(__CL_SCAN_H__)
1.22 +#define __CL_SCAN_H__
1.23 +#if !defined(__E32BASE_H__)
1.24 +#include <e32base.h>
1.25 +#endif
1.26 +
1.27 +class CDirFactory : public CDir
1.28 + {
1.29 +public:
1.30 + static CDir* NewL(const TDesC& anEntryName);
1.31 + static CDir* NewL();
1.32 + };
1.33 +
1.34 +NONSHARABLE_CLASS(CDirList) : public CBase
1.35 + {
1.36 +public:
1.37 + CDirList();
1.38 + static CDirList* NewL(CDir& aDirList);
1.39 + ~CDirList();
1.40 + const TEntry& Next();
1.41 + TBool MoreEntries() const;
1.42 +private:
1.43 + CDirList(const CDirList&);
1.44 + TBool operator=(const CDirList&);
1.45 +private:
1.46 + CDir* iDirList;
1.47 + TInt iCurrentPos;
1.48 + };
1.49 +
1.50 +NONSHARABLE_CLASS(CDirStack) : public CBase
1.51 + {
1.52 +public:
1.53 + static CDirStack* NewL();
1.54 + ~CDirStack();
1.55 + void ResetL(const TDesC& aStartDir);
1.56 + TBool IsEmpty();
1.57 + void PushL(CDir& aSubDirs);
1.58 + void Pop();
1.59 + CDirList* Peek();
1.60 +private:
1.61 + CDirStack();
1.62 +private:
1.63 + RPointerArray<CDirList> iDirStack;
1.64 + TParse iPath;
1.65 + };
1.66 +
1.67 +#endif