CAgnAttachmentFile Class Reference

class CAgnAttachmentFile : public CAgnAttachment

Inherits from

Public Member Functions
CAgnAttachmentFile()
~CAgnAttachmentFile()
TBool CompareL(const CAgnAttachment &)
IMPORT_C const TDesC8 &ContentId()
IMPORT_C voidCopyFileHandle(const RFile &)
voidCopyL(const CAgnAttachment &)
IMPORT_C TDriveNameDrive()
voidExternalizeL(RWriteStream &)
IMPORT_C const RFile &FileHandle()
IMPORT_C const TDesC &FileName()
IMPORT_C TBoolIsFileHandleSet()
IMPORT_C const TTime &LastModifiedTimeUtc()
IMPORT_C voidSetContentIdL(const TDesC8 &)
IMPORT_C voidSetDriveL(const TDesC &)
IMPORT_C voidSetFileNameL(const TDesC &)
IMPORT_C voidSetHasFileHandle(TBool)
IMPORT_C voidSetLastModifiedTimeUtc(const TTime &)
Private Member Functions
voidInternalizeL(RReadStream &)
Inherited Functions
CAgnAttachment::CAgnAttachment(CCalContent::TDisposition)
CAgnAttachment::ClearAttribute(TUint16)
CAgnAttachment::ClearFlag(TUint16)
CAgnAttachment::FlagsSet(TUint16)const
CAgnAttachment::IsAttributeSet(TUint16)const
CAgnAttachment::Label()const
CAgnAttachment::SetAttribute(TUint16)
CAgnAttachment::SetFlag(TUint16)
CAgnAttachment::SetLabelL(const TDesC &)
CAgnAttachment::SetMimeTypeL(const TDesC8 &)
CAgnAttachment::SetSize(TInt)
CAgnAttachment::SetUid(TCalAttachmentUid)
CAgnAttachment::SetValue(TDesC8 *)
CAgnAttachment::Size()const
CAgnAttachment::Uid()const
CAgnAttachment::~CAgnAttachment()
CAgnContent::CAgnContent()
CAgnContent::CAgnContent(CCalContent::TDisposition)
CAgnContent::CloneL()const
CAgnContent::Content()const
CAgnContent::MimeType()const
CAgnContent::SetContent(TDesC8 *)
CAgnContent::SetContentL(TDesC8 *,TDesC8 *,CCalContent::TDisposition)
CAgnContent::SetMimeType(TDesC8 *)
CAgnContent::Type()const
CAgnContent::~CAgnContent()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Inherited Enumerations
CAgnAttachment:@41
Private Attributes
TDesC8 *iContentId
RFile iFileHandle
HBufC *iFileName
TBool iIsFileHandleSet
TTime iLastModifiedTimeUtc

Constructor & Destructor Documentation

CAgnAttachmentFile()

CAgnAttachmentFile()

~CAgnAttachmentFile()

~CAgnAttachmentFile()

Member Functions Documentation

CompareL(const CAgnAttachment &)

TBool CompareL(const CAgnAttachment &aSource)const [virtual]

Parameters

const CAgnAttachment & aSource

ContentId()

IMPORT_C const TDesC8 &ContentId()const

CopyFileHandle(const RFile &)

IMPORT_C voidCopyFileHandle(const RFile &aFile)

Set the file handle (should be called on client side only).

Parameters

const RFile & aFile

CopyL(const CAgnAttachment &)

voidCopyL(const CAgnAttachment &aSource)[virtual]

Parameters

const CAgnAttachment & aSource

Drive()

IMPORT_C TDriveNameDrive()const

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const [virtual]

Parameters

RWriteStream & aStream

FileHandle()

IMPORT_C const RFile &FileHandle()const

Get the file handle (should be called on client side only).

FileName()

IMPORT_C const TDesC &FileName()const

returns the attachment's file name

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private, virtual]

Used when store the object to the file

Parameters

RReadStream & aStream

IsFileHandleSet()

IMPORT_C TBoolIsFileHandleSet()const

LastModifiedTimeUtc()

IMPORT_C const TTime &LastModifiedTimeUtc()const

Last modified date of an attachment is separate data from the entry's last modified time. It is set by the client and may not match the actual file attachment's modified time.

SetContentIdL(const TDesC8 &)

IMPORT_C voidSetContentIdL(const TDesC8 &aContentId)

The content ID should only be set by a client on import or export.

Parameters

const TDesC8 & aContentId

SetDriveL(const TDesC &)

IMPORT_C voidSetDriveL(const TDesC &aDrive)

Set the drive on which to store the attachment

Parameters

const TDesC & aDrive

SetFileNameL(const TDesC &)

IMPORT_C voidSetFileNameL(const TDesC &aFileName)

Set the name of the file where the attachment is stored internally. This is not exposed to clients.

Parameters

const TDesC & aFileName

SetHasFileHandle(TBool)

IMPORT_C voidSetHasFileHandle(TBoolaHasFileHandel)

Parameters

TBool aHasFileHandel

SetLastModifiedTimeUtc(const TTime &)

IMPORT_C voidSetLastModifiedTimeUtc(const TTime &aTime)

Parameters

const TTime & aTime

Member Data Documentation

TDesC8 * iContentId

TDesC8 *iContentId[private]

RFile iFileHandle

RFile iFileHandle[private]

HBufC * iFileName

HBufC *iFileName[private]

TBool iIsFileHandleSet

TBool iIsFileHandleSet[private]

TTime iLastModifiedTimeUtc

TTime iLastModifiedTimeUtc[private]