|
||
class TEntry;
Encapsulates an entry in a directory, which can be another (nested) directory, a file or a volume label.
Each directory entry has a name which is relative to its owning directory and a type, which is indicated by its unique identifier (UID).
An entry can be interrogated for the following properties:
1. the kind of entry: stored in the entry UIDs, stored in iType
2. the entry attributes, stored in iAtt
3. the size of entry
4. the time the entry was last modified.
Defined in TEntry
:
IsArchive()
Tests whether the file is an archive fileIsDir()
Tests whether the entry is a directoryIsHidden()
Tests whether the file or directory is hiddenIsReadOnly()
Tests whether the file or directory is read-onlyIsSystem()
Tests whether the file or directory has the system attribute setIsTypeValid()
Test whether the file has a valid UIDIsUidPresent()
Tests whether the specified UID matches any of the UIDs in the UID typeMostDerivedUid()
Gets the most derived (i.eTEntry()
Default constructorTEntry()
Copy constructoriAtt
The individual bits within this byte indicate which attributes have been setiModified
The local time of last modificationiName
The name of the file relative to the owning directory, with a maximum of KMaxFileName charactersiSize
The size of the file in bytesiType
The file's UIDtypeoperator=()
Assignment operatoroperator[]()
Gets any one of the file's three UIDsRDir
Reads the entries contained in a directoryIMPORT_C TEntry(const TEntry &aEntry);
Copy constructor.
|
IMPORT_C TEntry &operator=(const TEntry &aEntry);
Assignment operator.
|
|
IMPORT_C TBool IsReadOnly() const;
Tests whether the file or directory is read-only.
|
KEntryAttReadOnly
File/directory attribute: read-only file or directoryIMPORT_C TBool IsHidden() const;
Tests whether the file or directory is hidden.
|
KEntryAttHidden
File/directory attribute: hidden file or directoryIMPORT_C TBool IsSystem() const;
Tests whether the file or directory has the system attribute set.
|
KEntryAttSystem
File/directory attribute: system fileIMPORT_C TBool IsDir() const;
Tests whether the entry is a directory.
|
KEntryAttDir
File/directory attribute: a directory without the hidden or system attributeIMPORT_C TBool IsArchive() const;
Tests whether the file is an archive file.
|
KEntryAttArchive
File/directory attribute: an archive fileinline const TUid &operator[](TInt anIndex) const;
Gets any one of the file's three UIDs.
|
|
TUidType
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object such as a GUI application
or a DLLinline TBool IsUidPresent(TUid aUid) const;
Tests whether the specified UID matches any of the UIDs in the UID type.
|
|
TUidType
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object such as a GUI application
or a DLLinline TBool IsTypeValid() const;
Test whether the file has a valid UID.
|
TUidType
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object such as a GUI application
or a DLLinline TUid MostDerivedUid() const;
Gets the most derived (i.e. the most specific) UID.
|
TUidType
Encapsulates a set of three unique identifiers (UIDs) which, in combination, identify a system object such as a GUI application
or a DLLTUint iAtt;
The individual bits within this byte indicate which attributes have been set.
KEntryAttNormal
File/directory attribute: any file without the hidden or system attributeKEntryAttReadOnly
File/directory attribute: read-only file or directoryKEntryAttHidden
File/directory attribute: hidden file or directoryKEntryAttSystem
File/directory attribute: system fileTInt iSize;
The size of the file in bytes. For files larger that 2G it must be cast to TUint in order to avoid looking like negative signed.
TBufC< KMaxFileName > iName;
The name of the file relative to the owning directory, with a maximum of KMaxFileName characters.
KMaxFileName
Defines the maximum length of a filename