class CDirScan : public CBase |
Scans a directory structure.
The scan moves from directory to directory through the hierarchy, returning a list of the entries contained in each. The order in which the directories are scanned is determined by a sort key which is specified when setting up the scan. The base directory to be scanned and the entry types of interest must also be specified before performing the scan.
This class is not intended for user derivation
Public Member Functions | |
---|---|
~CDirScan() | |
IMPORT_C TPtrC | AbbreviatedPath() |
IMPORT_C TPtrC | FullPath() |
IMPORT_C CDirScan * | NewL(RFs &) |
IMPORT_C CDirScan * | NewLC(RFs &) |
IMPORT_C void | NextL(CDir *&) |
IMPORT_C void | SetScanDataL(const TDesC &, TUint, TUint, TScanDirection) |
Protected Member Functions | |
---|---|
CDirScan(RFs &) |
Private Member Functions | |
---|---|
RFs & | Fs() |
void | GetDirEntriesL(CDir *&) |
void | ScanDownTreeL(CDir *&) |
void | ScanUpTreeL(CDir *&) |
void | UpdateAbbreviatedPath() |
Public Member Enumerations | |
---|---|
enum | TScanDirection { EScanUpTree, EScanDownTree } |
Private Attributes | |
---|---|
TPtrC | iAbbreviatedPath |
TInt | iAbbreviatedPathPos |
TUint | iEntryAttMask |
TUint | iEntrySortMask |
RFs *const | iFs |
TParse | iFullPath |
TScanDirection | iScanDir |
TBool | iScanning |
CDirStack * | iStack |
void | GetDirEntriesL | ( | CDir *& | aDirEntries | ) | [private] |
CDir *& aDirEntries |
IMPORT_C void | SetScanDataL | ( | const TDesC & | aMatchName, |
TUint | anEntryAttMask, | |||
TUint | anEntrySortMask, | |||
TScanDirection | aScanDir = EScanDownTree | |||
) |
const TDesC & aMatchName | |
TUint anEntryAttMask | |
TUint anEntrySortMask | |
TScanDirection aScanDir = EScanDownTree |
Defines the scan direction.
EScanUpTree |
Scan upwards from the lowest level directory in the hierarchy to the top level directory. |
EScanDownTree |
Scan downwards from the top level directory in the hierarchy to the bottom level directory. |