#include <f32file.h>
class TEntry |
Public Attributes | |
---|---|
TUint | iAtt |
TTime | iModified |
TBufC< KMaxFileName > | iName |
TInt | iSize |
TUidType | iType |
Public Member Functions | |
---|---|
TEntry() | |
TEntry(const TEntry &) | |
IMPORT_C TInt64 | FileSize() |
IMPORT_C TBool | IsArchive() |
IMPORT_C TBool | IsDir() |
IMPORT_C TBool | IsHidden() |
IMPORT_C TBool | IsReadOnly() |
IMPORT_C TBool | IsSystem() |
TBool | IsTypeValid() |
TBool | IsUidPresent(TUid) |
TUid | MostDerivedUid() |
void | SetFileSize(TInt64) |
IMPORT_C TEntry & | operator=(const TEntry &) |
const TUid & | operator[](TInt) |
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.
See also: RDir RFs::Entry RFs::SetEntry CfileBase::CurrentEntry
TUint | iAtt |
The individual bits within this byte indicate which attributes have been set.
See also: KEntryAttNormal KEntryAttReadOnly KEntryAttHidden KEntryAttSystem
TBufC< KMaxFileName > | iName |
The name of the file relative to the owning directory, with a maximum of KMaxFileName characters.
See also: KMaxFileName
TInt | 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.
IMPORT_C | TEntry | ( | const TEntry & | aEntry | ) |
Copy constructor.
Parameter | Description |
---|---|
aEntry | The TEntry object to be copied. |
IMPORT_C TBool | IsArchive | ( | ) | const |
Tests whether the file is an archive file.
See also: KEntryAttArchive
Returns: ETrue if file is archive, EFalse if not.
IMPORT_C TBool | IsDir | ( | ) | const |
Tests whether the entry is a directory.
See also: KEntryAttDir
Returns: ETrue if entry indicates a directory, EFalse if not.
IMPORT_C TBool | IsHidden | ( | ) | const |
Tests whether the file or directory is hidden.
See also: KEntryAttHidden
Returns: ETrue if entry is hidden, EFalse if not.
IMPORT_C TBool | IsReadOnly | ( | ) | const |
Tests whether the file or directory is read-only.
See also: KEntryAttReadOnly
Returns: ETrue if entry is read-only, EFalse if not.
IMPORT_C TBool | IsSystem | ( | ) | const |
Tests whether the file or directory has the system attribute set.
See also: KEntryAttSystem
Returns: ETrue if entry is a system entry, EFalse if not.
TBool | IsTypeValid | ( | ) | const [inline] |
Test whether the file has a valid UID.
See also: TUidType::IsValid TUidType
Returns: True if the entry has a valid UID, false otherwise.
Tests whether the specified UID matches any of the UIDs in the UID type.
See also: TUidType::IsPresent TUidType
Parameter | Description |
---|---|
aUid | The UID to be checked. |
Returns: True if the specified UID is present, false otherwise.
TUid | MostDerivedUid | ( | ) | const [inline] |
Gets the most derived (i.e. the most specific) UID.
See also: TUidType::MostDerived TUidType
Returns: The entry's most derived UID.
void | SetFileSize | ( | TInt64 | aFileSize | ) | [inline] |
Sets 64 bit file size.
The low word is stored in iSize and high word is stored in private data member iSizeHigh. This is intended to be used by File Systsem Plugin implementations, and not recommended to be called by general clients of the File Server.
See also: TEntry::iSize