CMimeParser Class Reference

class CMimeParser : public CBase

Inherits from

Public Member Functions
~CMimeParser ()
const TBool BoundaryExists ()
const TBool BoundaryFound ()
const TDesC & ContentDescription ()
const TPtrC8 ContentDisposition ()
TImEncodingType ContentEncoding ()
const TPtrC8 ContentId ()
const TPtrC ContentLocation ()
TPtrC8 ContentSubType ()
TMimeContentType ContentType ()
TPtrC8 ContentTypeDescription ()
TUint CurrentCharsetL ()
void DoMultipartTypeForNonMIMEL ()
void ExtractParameterInfoL (const TDesC8 &, TDes16 &, HBufC8 *&)
void ExtractParameterInfoL (const TDesC8 &, HBufC8 *&)
TBool ICalendar ()
TBool IsBoundary (const TDesC8 &)
TBool IsMessageDigest ()
const TBool IsTerminatingBoundary ()
TImEmailFolderType MessageFolderType ()
const TBool MessageIsMime ()
TBool MimeFieldsExist ()
const TInt MimeHeaderSize ()
IMPORT_C CMimeParser * NewL ( CImRecvConvert &)
IMPORT_C CMimeParser * NewLC ( CImRecvConvert &)
void ParseLineL (const TDesC8 &)
const TInt ReceiveError ()
void RemoveBoundary ()
void Reset ()
void ResetForNewEntry ()
void ResetMimeFieldsExist ()
void RestoreMimeHeaderL ( CMsvStore &)
void RestoreMimeParserL ( CMsvStore &)
void SetBoundaryL (const TDesC8 &)
void SetMessageFolderType ( TImEmailFolderType )
TBool StartPart ()
void StoreMimeHeaderL ( CMsvStore &)
void StoreMimeHeaderWithoutCommitL ( CMsvStore &)
TBool VCalendar ()
TBool VCard ()
Private Member Functions
CMimeParser ( CImRecvConvert &)
void ConstructL ()
TBool DecodeRfc2231ParameterInfoL ( TDes8 &, TDes &, TPtrC8 )
void DoAttachmentTypeL ()
void DoContentBaseL ()
void DoContentIdL ()
void DoContentLocationL ()
void DoContentTypeL ()
void DoDescriptionL ()
void DoDispositionL ()
void DoEncodingL ()
void DoMessageTypeL ()
void DoMimeVersion ()
void DoMultipartTypeL ()
void DoTextTypeL ()
TPtrC8 ExtractParameterString ( TLexMark8 &)
TInt FindAttribute (const TDesC8 &, const TDesC8 &)
const TPtrC8 GetContentTypeValue (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 TBool BoundaryExists ( ) const [inline]

BoundaryFound()

const TBool BoundaryFound ( ) const [inline]

ConstructL()

void ConstructL ( ) [private]

ContentDescription()

const TDesC & ContentDescription ( ) const [inline]

ContentDisposition()

const TPtrC8 ContentDisposition ( ) const [inline]

ContentEncoding()

TImEncodingType ContentEncoding ( ) [inline]

ContentId()

const TPtrC8 ContentId ( ) const [inline]

ContentLocation()

const TPtrC ContentLocation ( ) 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,
TPtrC8 aCharset
) [private]

Parameters

TDes8 & aInput
TDes & rBufOut
TPtrC8 aCharset

DoAttachmentTypeL()

void DoAttachmentTypeL ( ) [private]

DoContentBaseL()

void DoContentBaseL ( ) [private]

DoContentIdL()

void DoContentIdL ( ) [private]

DoContentLocationL()

void DoContentLocationL ( ) [private]

DoContentTypeL()

void DoContentTypeL ( ) [private]

DoDescriptionL()

void DoDescriptionL ( ) [private]

DoDispositionL()

void DoDispositionL ( ) [private]

DoEncodingL()

void DoEncodingL ( ) [private]

DoMessageTypeL()

void DoMessageTypeL ( ) [private]

DoMimeVersion()

void DoMimeVersion ( ) [private]

DoMultipartTypeForNonMIMEL()

void DoMultipartTypeForNonMIMEL ( )

DoMultipartTypeL()

void DoMultipartTypeL ( ) [private]

DoTextTypeL()

void DoTextTypeL ( ) [private]

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

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

Parameters

const TDesC8 & aTag
TDes16 & rBuffer
HBufC8 *& paramValue8

ExtractParameterInfoL(const TDesC8 &, HBufC8 *&)

void ExtractParameterInfoL ( 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 & aTag The name of the attribute to be found
const TDesC8 & aParameterList The string to be searched

GetContentTypeValue(const TDesC8 &)

const TPtrC8 GetContentTypeValue ( 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 TUint8 aChar ) [private]

Parameters

const TUint8 aChar

IsTerminatingBoundary()

const TBool IsTerminatingBoundary ( ) const [inline]

MatchAndRemoveToken(const TDesC8 &)

TBool MatchAndRemoveToken ( const TDesC8 & aToken ) [private]

Parameters

const TDesC8 & aToken

MessageFolderType()

TImEmailFolderType MessageFolderType ( ) const

MessageIsMime()

const TBool MessageIsMime ( ) const [inline]

MimeFieldsExist()

TBool MimeFieldsExist ( ) const [inline]

MimeHeaderSize()

const TInt MimeHeaderSize ( ) 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 &)

void ParseLineL ( 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,
TInt aOffset
) [private]

Parameters

const TDesC8 & aTag
TDes & rBuffer
TInt aOffset

ReceiveError()

const TInt ReceiveError ( ) const [inline]

RemoveBoundary()

void RemoveBoundary ( )

Reset()

void Reset ( )

ResetForNewEntry()

void ResetForNewEntry ( )

ResetMimeFieldsExist()

void ResetMimeFieldsExist ( ) [inline]

RestoreMimeHeaderL(CMsvStore &)

void RestoreMimeHeaderL ( CMsvStore & entryStore ) [inline]

Parameters

CMsvStore & entryStore

RestoreMimeParserL(CMsvStore &)

void RestoreMimeParserL ( CMsvStore & entryStore )

Parameters

CMsvStore & entryStore

SetBoundaryL(const TDesC8 &)

void SetBoundaryL ( const TDesC8 & aBoundaryText )

Parameters

const TDesC8 & aBoundaryText

SetMessageFolderType(TImEmailFolderType)

void SetMessageFolderType ( TImEmailFolderType aFolderType )

Parameters

TImEmailFolderType aFolderType

StartPart()

TBool StartPart ( ) const

StoreMimeHeaderL(CMsvStore &)

void StoreMimeHeaderL ( CMsvStore & entryStore ) [inline]

Parameters

CMsvStore & entryStore

StoreMimeHeaderWithoutCommitL(CMsvStore &)

void StoreMimeHeaderWithoutCommitL ( 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]