conn::CSBEFileEntry Class Reference
class conn::CSBEFileEntry : public CBase |
This class is a more memory efficient heap based externalisable version of TEntry containing just the information required for public backup. TEntry contains a TFileName which is a modifiable descriptor of 512 bytes and therefore takes up needless memory. CSBEFileEntry on the other hand occupies only as much RAM as is required to represent the name and path of the file that it represents.
This class is a more memory efficient heap based externalisable version of TEntry containing just the information required for public backup. TEntry contains a TFileName which is a modifiable descriptor of 512 bytes and therefore takes up needless memory. CSBEFileEntry on the other hand occupies only as much RAM as is required to represent the name and path of the file that it represents.
Constructor & Destructor Documentation
CSBEFileEntry(const TEntry &)
CSBEFileEntry | ( | const TEntry & | aEntry | ) | [private] |
C++ ctor that copies out the parts of aEntry that don't require heap allocation
Parameters
const TEntry & aEntry | The entry to copy most of the settings from |
Member Functions Documentation
CalculatePackedSize()
TUint16
| CalculatePackedSize | ( | ) | const [private] |
calculate the size of this object when externalised
ConstructL(const TEntry &, RApaLsSession &)
Symbian 2nd phase constructor used when instantiating an instance from component parts rather than from a previously externalised stream
Parameters
const TEntry & aEntry | Information about the file that this object will represent |
RApaLsSession & aSession | Required to map from TEntry's UID MIME type into a textual representation |
FileAttributes()
IMPORT_C TUint | FileAttributes | ( | ) | const |
Accessor function returning the packed bitmask representing the attributes of the file that this object represents in the format defined by TEntry TEntry::iAtt
FileSize()
IMPORT_C TInt | FileSize | ( | ) | const |
Accessor function returning the size in bytes of the file represented by this object TEntry::iSize
InternaliseL(const TDesC8 &, TInt &)
void | InternaliseL | ( | const TDesC8 & | aStream, |
| TInt & | aBytesRead |
| ) | [private] |
Symbian 2nd phase constructor used when instantiating an instance from a previously externalised stream of bytes. aStream must begin at the beginning of the internalised form of this object and upon return, aBytesRead will contain the number of bytes read from that stream which allows multiple objects to be packed into a stream and read sequentially
Parameters
const TDesC8 & aStream | The stream containing at least one instance of CSBEFileEntry |
TInt & aBytesRead | Upon return, this will contain the number of bytes read from aStream in order to internalise this single instance of CSBEFileEntry |
LastModified()
IMPORT_C TTime | LastModified | ( | ) | const |
Accessor function returning the time that the file represented by this object# was last modified TEntry::iModified
MIMEType()
Accessor function returning a textual representation of the MIME type of the file represented by this object.
MIMEUid()
Accessor function returning the UID of the MIME type of the file represented by this object. TEntry::iType
NewLC(const TEntry &, RApaLsSession &)
Constructor for creating a CSBEFileEntry from an existing TEntry (as returned from RFs' directory listing mechanisms)
Parameters
const TEntry & aEntry | Information about the file that this object will represent |
RApaLsSession & aSession | Required to map from TEntry's UID MIME type into a textual representation |
Member Data Documentation
HBufC * iFilename
HBufC * | iFilename | [private] |
Path and name of the file
TTime
iModified
The system time of last modification, in universal time.
TInt
iSize
The size of the file in bytes.
HBufC * iType
The textual version of the file's UIDtype
TUidType
iUidType
Array of UID Types corresponding to this file
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.