CMimeParser Class Reference

class CMimeParser : public CBase

Inherits from

Public Member Functions
~CMimeParser()
const TBoolBoundaryExists()
const TBoolBoundaryFound()
const TDesC &ContentDescription()
const TPtrC8ContentDisposition()
TImEncodingType ContentEncoding()
const TPtrC8ContentId()
const TPtrCContentLocation()
TPtrC8 ContentSubType()
TMimeContentType ContentType()
TPtrC8 ContentTypeDescription()
TUint CurrentCharsetL()
voidDoMultipartTypeForNonMIMEL()
voidExtractParameterInfoL(const TDesC8 &, TDes16 &, HBufC8 *&)
voidExtractParameterInfoL(const TDesC8 &, HBufC8 *&)
TBool ICalendar()
TBool IsBoundary(const TDesC8 &)
TBool IsMessageDigest()
const TBoolIsTerminatingBoundary()
TImEmailFolderType MessageFolderType()
const TBoolMessageIsMime()
TBool MimeFieldsExist()
const TIntMimeHeaderSize()
IMPORT_C CMimeParser *NewL(CImRecvConvert &)
IMPORT_C CMimeParser *NewLC(CImRecvConvert &)
voidParseLineL(const TDesC8 &)
const TIntReceiveError()
voidRemoveBoundary()
voidReset()
voidResetForNewEntry()
voidResetMimeFieldsExist()
voidRestoreMimeHeaderL(CMsvStore &)
voidRestoreMimeParserL(CMsvStore &)
voidSetBoundaryL(const TDesC8 &)
voidSetMessageFolderType(TImEmailFolderType)
TBool StartPart()
voidStoreMimeHeaderL(CMsvStore &)
voidStoreMimeHeaderWithoutCommitL(CMsvStore &)
TBool VCalendar()
TBool VCard()
Private Member Functions
CMimeParser(CImRecvConvert &)
voidConstructL()
TBool DecodeRfc2231ParameterInfoL(TDes8 &, TDes &, TPtrC8)
voidDoAttachmentTypeL()
voidDoContentBaseL()
voidDoContentIdL()
voidDoContentLocationL()
voidDoContentTypeL()
voidDoDescriptionL()
voidDoDispositionL()
voidDoEncodingL()
voidDoMessageTypeL()
voidDoMimeVersion()
voidDoMultipartTypeL()
voidDoTextTypeL()
TPtrC8 ExtractParameterString(TLexMark8 &)
TInt FindAttribute(const TDesC8 &, const TDesC8 &)
const TPtrC8GetContentTypeValue(const TDesC8 &)
TBool IsSpecialChar(const TUint8)
TBool MatchAndRemoveToken(const TDesC8 &)
TBool ParseRfc2047ParameterInfoL(const TDesC8 &, TDes &)
TBool ParseRfc2231ParameterInfoL(const TDesC8 &, TDes &, TInt)
Inherited Functions
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()
Private Attributes
TBool iBoundaryFound
TInt iBoundaryIndex
TInt iBoundaryLength
CDesC8ArrayFlat *iBoundaryText
TUint iCharset
TFileName iContentDescription
TImEncodingType iContentEncoding
TMimeContentType iContentType
TBool iCorrectMimeVersion
TUint iDefaultCharset
TInt iEmptyMimeHeaderSize
TBool iICalendar
CImRecvConvert &iImRecvConvert
TLex8 iLex
TLexMark8 iMark
TImEmailFolderType iMessageFolderType
TBool iMimeFieldsExist
CImMimeHeader *iMimeHeader
HBufC8 *iMimeHeaderLine
TInt iReceiveError
HBufC8 *iStartId
TBool iStartPart
TBool iTerminatingBoundary
TLex8 iTestLex
TPtrC8 iTestLine
TBool iVCalendar
TBool iVCard
TBool isMessageDigest
TBool isMime

Constructor & Destructor Documentation

CMimeParser(CImRecvConvert &)

CMimeParser(CImRecvConvert &aImRecvConvert)[private]

Parameters

CImRecvConvert & aImRecvConvert

~CMimeParser()

IMPORT_C~CMimeParser()

Member Functions Documentation

BoundaryExists()

const TBoolBoundaryExists()const [inline]

BoundaryFound()

const TBoolBoundaryFound()const [inline]

ConstructL()

voidConstructL()[private]

ContentDescription()

const TDesC &ContentDescription()const [inline]

ContentDisposition()

const TPtrC8ContentDisposition()const [inline]

ContentEncoding()

TImEncodingType ContentEncoding()[inline]

ContentId()

const TPtrC8ContentId()const [inline]

ContentLocation()

const TPtrCContentLocation()const [inline]

ContentSubType()

TPtrC8 ContentSubType()const

ContentType()

TMimeContentType ContentType()[inline]

ContentTypeDescription()

TPtrC8 ContentTypeDescription()const

CurrentCharsetL()

TUint CurrentCharsetL()const

DecodeRfc2231ParameterInfoL(TDes8 &, TDes &, TPtrC8)

TBool DecodeRfc2231ParameterInfoL(TDes8 &aInput,
TDes &rBufOut,
TPtrC8aCharset
)[private]

Parameters

TDes8 & aInput
TDes & rBufOut
TPtrC8 aCharset

DoAttachmentTypeL()

voidDoAttachmentTypeL()[private]

DoContentBaseL()

voidDoContentBaseL()[private]

DoContentIdL()

voidDoContentIdL()[private]

DoContentLocationL()

voidDoContentLocationL()[private]

DoContentTypeL()

voidDoContentTypeL()[private]

DoDescriptionL()

voidDoDescriptionL()[private]

DoDispositionL()

voidDoDispositionL()[private]

DoEncodingL()

voidDoEncodingL()[private]

DoMessageTypeL()

voidDoMessageTypeL()[private]

DoMimeVersion()

voidDoMimeVersion()[private]

DoMultipartTypeForNonMIMEL()

voidDoMultipartTypeForNonMIMEL()

DoMultipartTypeL()

voidDoMultipartTypeL()[private]

DoTextTypeL()

voidDoTextTypeL()[private]

ExtractParameterInfoL(const TDesC8 &, TDes16 &, HBufC8 *&)

voidExtractParameterInfoL(const TDesC8 &aTag,
TDes16 &rBuffer,
HBufC8 *&paramValue8
)

Parameters

const TDesC8 & aTag
TDes16 & rBuffer
HBufC8 *& paramValue8

ExtractParameterInfoL(const TDesC8 &, HBufC8 *&)

voidExtractParameterInfoL(const TDesC8 &aTag,
HBufC8 *&rBuffer
)

Parameters

const TDesC8 & aTag
HBufC8 *& rBuffer

ExtractParameterString(TLexMark8 &)

TPtrC8 ExtractParameterString(TLexMark8 &rMark)[private]

Parameters

TLexMark8 & rMark

FindAttribute(const TDesC8 &, const TDesC8 &)

TInt FindAttribute(const TDesC8 &aTag,
const TDesC8 &aParameterList
)[private]

Searches the passed parameter list for the specified attribute.

Parameters

const TDesC8 & aTagThe name of the attribute to be found
const TDesC8 & aParameterListThe string to be searched

GetContentTypeValue(const TDesC8 &)

const TPtrC8GetContentTypeValue(const TDesC8 &aContentTypeParameter)const [private]

Parameters

const TDesC8 & aContentTypeParameter

ICalendar()

TBool ICalendar()const

IsBoundary(const TDesC8 &)

TBool IsBoundary(const TDesC8 &aSourceLine)

Parameters

const TDesC8 & aSourceLine

IsMessageDigest()

TBool IsMessageDigest()[inline]

IsSpecialChar(const TUint8)

TBool IsSpecialChar(const TUint8aChar)[private]

Parameters

const TUint8 aChar

IsTerminatingBoundary()

const TBoolIsTerminatingBoundary()const [inline]

MatchAndRemoveToken(const TDesC8 &)

TBool MatchAndRemoveToken(const TDesC8 &aToken)[private]

Parameters

const TDesC8 & aToken

MessageFolderType()

TImEmailFolderType MessageFolderType()const

MessageIsMime()

const TBoolMessageIsMime()const [inline]

MimeFieldsExist()

TBool MimeFieldsExist()const [inline]

MimeHeaderSize()

const TIntMimeHeaderSize()const [inline]

NewL(CImRecvConvert &)

IMPORT_C CMimeParser *NewL(CImRecvConvert &aImRecvConvert)[static]

Parameters

CImRecvConvert & aImRecvConvert

NewLC(CImRecvConvert &)

IMPORT_C CMimeParser *NewLC(CImRecvConvert &aImRecvConvert)[static]

Parameters

CImRecvConvert & aImRecvConvert

ParseLineL(const TDesC8 &)

voidParseLineL(const TDesC8 &aSourceLine)

Parameters

const TDesC8 & aSourceLine

ParseRfc2047ParameterInfoL(const TDesC8 &, TDes &)

TBool ParseRfc2047ParameterInfoL(const TDesC8 &aParam,
TDes &rBuffer
)[private]

Parameters

const TDesC8 & aParam
TDes & rBuffer

ParseRfc2231ParameterInfoL(const TDesC8 &, TDes &, TInt)

TBool ParseRfc2231ParameterInfoL(const TDesC8 &aTag,
TDes &rBuffer,
TIntaOffset
)[private]

Parameters

const TDesC8 & aTag
TDes & rBuffer
TInt aOffset

ReceiveError()

const TIntReceiveError()const [inline]

RemoveBoundary()

voidRemoveBoundary()

Reset()

voidReset()

ResetForNewEntry()

voidResetForNewEntry()

ResetMimeFieldsExist()

voidResetMimeFieldsExist()[inline]

RestoreMimeHeaderL(CMsvStore &)

voidRestoreMimeHeaderL(CMsvStore &entryStore)[inline]

Parameters

CMsvStore & entryStore

RestoreMimeParserL(CMsvStore &)

voidRestoreMimeParserL(CMsvStore &entryStore)

Parameters

CMsvStore & entryStore

SetBoundaryL(const TDesC8 &)

voidSetBoundaryL(const TDesC8 &aBoundaryText)

Parameters

const TDesC8 & aBoundaryText

SetMessageFolderType(TImEmailFolderType)

voidSetMessageFolderType(TImEmailFolderTypeaFolderType)

Parameters

TImEmailFolderType aFolderType

StartPart()

TBool StartPart()const

StoreMimeHeaderL(CMsvStore &)

voidStoreMimeHeaderL(CMsvStore &entryStore)[inline]

Parameters

CMsvStore & entryStore

StoreMimeHeaderWithoutCommitL(CMsvStore &)

voidStoreMimeHeaderWithoutCommitL(CMsvStore &entryStore)[inline]

Parameters

CMsvStore & entryStore

VCalendar()

TBool VCalendar()const

VCard()

TBool VCard()const

Member Data Documentation

TBool iBoundaryFound

TBool iBoundaryFound[private]

TInt iBoundaryIndex

TInt iBoundaryIndex[private]

TInt iBoundaryLength

TInt iBoundaryLength[private]

CDesC8ArrayFlat * iBoundaryText

CDesC8ArrayFlat *iBoundaryText[private]

TUint iCharset

TUint iCharset[private]

TFileName iContentDescription

TFileName iContentDescription[private]

TImEncodingType iContentEncoding

TImEncodingType iContentEncoding[private]

TMimeContentType iContentType

TMimeContentType iContentType[private]

TBool iCorrectMimeVersion

TBool iCorrectMimeVersion[private]

TUint iDefaultCharset

TUint iDefaultCharset[private]

TInt iEmptyMimeHeaderSize

TInt iEmptyMimeHeaderSize[private]

TBool iICalendar

TBool iICalendar[private]

CImRecvConvert & iImRecvConvert

CImRecvConvert &iImRecvConvert[private]

TLex8 iLex

TLex8 iLex[private]

TLexMark8 iMark

TLexMark8 iMark[private]

TImEmailFolderType iMessageFolderType

TImEmailFolderType iMessageFolderType[private]

TBool iMimeFieldsExist

TBool iMimeFieldsExist[private]

CImMimeHeader * iMimeHeader

CImMimeHeader *iMimeHeader[private]

HBufC8 * iMimeHeaderLine

HBufC8 *iMimeHeaderLine[private]

TInt iReceiveError

TInt iReceiveError[private]

HBufC8 * iStartId

HBufC8 *iStartId[private]

TBool iStartPart

TBool iStartPart[private]

TBool iTerminatingBoundary

TBool iTerminatingBoundary[private]

TLex8 iTestLex

TLex8 iTestLex[private]

TPtrC8 iTestLine

TPtrC8 iTestLine[private]

TBool iVCalendar

TBool iVCalendar[private]

TBool iVCard

TBool iVCard[private]

TBool isMessageDigest

TBool isMessageDigest[private]

TBool isMime

TBool isMime[private]