CImConvertHeader Class Reference

class CImConvertHeader : public CBase

Inherits from

Public Member Functions
~CImConvertHeader()
voidAppend(TDes &, const TDesC8 &)
CImConvertCharconv &CharConv()
IMPORT_C voidConvertHeaderFieldL(const TDesC16 &, RBuf8 &, TBool)
IMPORT_C voidDecodeAllHeaderFieldsL(CImHeader &)
IMPORT_C voidDecodeHeaderFieldL(const TDesC8 &, TDes &)
IMPORT_C voidDecodeHeaderFieldL(const TDesC16 &, TDes &)
IMPORT_C voidDecodeNonMIMEHeaderFieldL(const TDesC8 &, TDes &)
IMPORT_C voidEncodeHeaderFieldL(const TDesC &, RBuf8 &, CArrayFix< TImHeaderEncodingInfo > *, TInt, TInt)
IMPORT_C voidEncodeHeaderFieldL(const TDesC &, RBuf8 &, const TUint, const TImHeaderEncodingInfo::TEncodingType, TBool)
IMPORT_C TBoolFindEncodedWord(TPtrC8 &, TInt &, TInt &, TInt &)
IMPORT_C CImConvertHeader *NewL(CImConvertCharconv &)
IMPORT_C TUintOverrideCharset()
IMPORT_C voidSetMessageType(TBool)
IMPORT_C voidSetOverrideCharset(TUint)
Private Member Functions
CImConvertHeader(CImConvertCharconv &)
TInt AddEncodedWordInfoL(const TDesC8 &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &)
voidConstructL()
voidDecodeFieldL(const TDesC &)
voidDecodeRecipientListL(CDesCArray &)
TBool DecodeWordL(const TDesC8 &, TDes &, TInt)
TBool DoCharsetConversionL(const TDesC &, RBuf8 &)
voidDoEncodingL(RBuf8 &, TImHeaderEncodingInfo &)
voidEncodeWordL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &, RBuf8 &)
TBool ExtractTextToEncode(const TDesC &, TInt &, TInt &, TBool)
voidGetCharsetAndEncodeDataL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &)
voidInsert(TDes8 &, const TDesC16 &)
TBool IsAscii(TUint)
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
TImCodecB64 iB64Codec
CImConvertCharconv &iCharConv
TUint iCharacterSetId
TImHeaderEncodingInfo iEncodingInfo
CImHeader *iHeader
TUint iOverrideCharset
TImCodecQP iQPCodec
TBool isMIMEMessageHeader

Constructor & Destructor Documentation

CImConvertHeader(CImConvertCharconv &)

CImConvertHeader(CImConvertCharconv &)[private]

Parameters

CImConvertCharconv &

~CImConvertHeader()

~CImConvertHeader()

Member Functions Documentation

AddEncodedWordInfoL(const TDesC8 &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &)

TInt AddEncodedWordInfoL(const TDesC8 &aEncodedWord,
RBuf8 &aBufOut,
TImHeaderEncodingInfo &aInfo,
const TDesC8 &aCharsetName
)[private]

Parameters

const TDesC8 & aEncodedWord
RBuf8 & aBufOut
TImHeaderEncodingInfo & aInfo
const TDesC8 & aCharsetName

Append(TDes &, const TDesC8 &)

voidAppend(TDes &aBuffer,
const TDesC8 &aAddition
)

Parameters

TDes & aBuffer
const TDesC8 & aAddition

CharConv()

CImConvertCharconv &CharConv()[inline]

ConstructL()

voidConstructL()[private]

ConvertHeaderFieldL(const TDesC16 &, RBuf8 &, TBool)

IMPORT_C voidConvertHeaderFieldL(const TDesC16 &aBufIn,
RBuf8 &aBufOut,
TBoolaIsAddressField
)

Convert function used for non-MIME messages.

Parameters

const TDesC16 & aBufIn
RBuf8 & aBufOut
TBool aIsAddressField

DecodeAllHeaderFieldsL(CImHeader &)

IMPORT_C voidDecodeAllHeaderFieldsL(CImHeader &rHeader)

Parameters

CImHeader & rHeader

DecodeFieldL(const TDesC &)

voidDecodeFieldL(const TDesC &aField)[private]

Parameters

const TDesC & aField

DecodeHeaderFieldL(const TDesC8 &, TDes &)

IMPORT_C voidDecodeHeaderFieldL(const TDesC8 &aBufIn,
TDes &aBufOut
)

Search for one or more encoded words in aLine

Parameters

const TDesC8 & aBufIn
TDes & aBufOut

DecodeHeaderFieldL(const TDesC16 &, TDes &)

IMPORT_C voidDecodeHeaderFieldL(const TDesC16 &aBufIn,
TDes &aBufOut
)

Search for one or more encoded words in aLine

Parameters

const TDesC16 & aBufIn
TDes & aBufOut

DecodeNonMIMEHeaderFieldL(const TDesC8 &, TDes &)

IMPORT_C voidDecodeNonMIMEHeaderFieldL(const TDesC8 &aBufIn,
TDes &aBufOut
)

Parameters

const TDesC8 & aBufIn
TDes & aBufOut

DecodeRecipientListL(CDesCArray &)

voidDecodeRecipientListL(CDesCArray &aArray)[private]

Parameters

CDesCArray & aArray

DecodeWordL(const TDesC8 &, TDes &, TInt)

TBool DecodeWordL(const TDesC8 &aBufIn,
TDes &aBufOut,
TIntrRemainder
)[private]

Parameters

const TDesC8 & aBufIn
TDes & aBufOut
TInt rRemainder

DoCharsetConversionL(const TDesC &, RBuf8 &)

TBool DoCharsetConversionL(const TDesC &aDataToConvert,
RBuf8 &aEncodedWord
)[private]

Parameters

const TDesC & aDataToConvert
RBuf8 & aEncodedWord

DoEncodingL(RBuf8 &, TImHeaderEncodingInfo &)

voidDoEncodingL(RBuf8 &aEncodedWord,
TImHeaderEncodingInfo &aInfo
)[private]

Parameters

RBuf8 & aEncodedWord
TImHeaderEncodingInfo & aInfo

EncodeHeaderFieldL(const TDesC &, RBuf8 &, CArrayFix< TImHeaderEncodingInfo > *, TInt, TInt)

IMPORT_C voidEncodeHeaderFieldL(const TDesC &aBufIn,
RBuf8 &aBufOut,
CArrayFix< TImHeaderEncodingInfo > *aInfoArray,
TIntaState,
TIntaArrayVal = 0
)

Parameters

const TDesC & aBufIn
RBuf8 & aBufOut
CArrayFix< TImHeaderEncodingInfo > * aInfoArray
TInt aState
TInt aArrayVal = 0

EncodeHeaderFieldL(const TDesC &, RBuf8 &, const TUint, const TImHeaderEncodingInfo::TEncodingType, TBool)

IMPORT_C voidEncodeHeaderFieldL(const TDesC &aBufIn,
RBuf8 &aBufOut,
const TUintaCharset,
const TImHeaderEncodingInfo::TEncodingTypeaType,
TBoolaIsAddressField
)

This function has to encode without any prestored information. Encodes from UNICODE, to UTF-7

Parameters

const TDesC & aBufIn
RBuf8 & aBufOut
const TUint aCharset
const TImHeaderEncodingInfo::TEncodingType aType
TBool aIsAddressField

EncodeWordL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &, RBuf8 &)

voidEncodeWordL(const TDesC &aBufIn,
RBuf8 &aBufOut,
TImHeaderEncodingInfo &aInfo,
const TDesC8 &aCharsetName,
RBuf8 &aEncodedWord
)[private]

Parameters

const TDesC & aBufIn
RBuf8 & aBufOut
TImHeaderEncodingInfo & aInfo
const TDesC8 & aCharsetName
RBuf8 & aEncodedWord

ExtractTextToEncode(const TDesC &, TInt &, TInt &, TBool)

TBool ExtractTextToEncode(const TDesC &aBufIn,
TInt &rStart,
TInt &rEnd,
TBoolaIsAddressField
)[private]

Parameters

const TDesC & aBufIn
TInt & rStart
TInt & rEnd
TBool aIsAddressField

FindEncodedWord(TPtrC8 &, TInt &, TInt &, TInt &)

IMPORT_C TBoolFindEncodedWord(TPtrC8 &aData,
TInt &aInit,
TInt &rStart,
TInt &rEnd
)

Parameters

TPtrC8 & aData
TInt & aInit
TInt & rStart
TInt & rEnd

GetCharsetAndEncodeDataL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &)

voidGetCharsetAndEncodeDataL(const TDesC &aBufIn,
RBuf8 &aBufOut,
TImHeaderEncodingInfo &aInfo
)[private]

Parameters

const TDesC & aBufIn
RBuf8 & aBufOut
TImHeaderEncodingInfo & aInfo

Insert(TDes8 &, const TDesC16 &)

voidInsert(TDes8 &aBuffer,
const TDesC16 &aInsert
)[private]

Parameters

TDes8 & aBuffer
const TDesC16 & aInsert

IsAscii(TUint)

TBool IsAscii(TUintaChar)const [private]

Parameters

TUint aChar

NewL(CImConvertCharconv &)

IMPORT_C CImConvertHeader *NewL(CImConvertCharconv &aConverter)[static]

Parameters

CImConvertCharconv & aConverter

OverrideCharset()

IMPORT_C TUintOverrideCharset()const

Retrieves the override character set that will be used when decoding the 8 bit data. A character set value of zero indicates no overriding character set will be used.

SetMessageType(TBool)

IMPORT_C voidSetMessageType(TBoolaIsMIME)

Parameters

TBool aIsMIME

SetOverrideCharset(TUint)

IMPORT_C voidSetOverrideCharset(TUintaCharset)

Sets the override character set to use when decoding the 8 bit data. Zero indicates the charset not to be used.

Parameters

TUint aCharsetThe new character set to use as an overriding character set.

Member Data Documentation

TImCodecB64 iB64Codec

TImCodecB64 iB64Codec[private]

CImConvertCharconv & iCharConv

CImConvertCharconv &iCharConv[private]

TUint iCharacterSetId

TUint iCharacterSetId[private]

TImHeaderEncodingInfo iEncodingInfo

TImHeaderEncodingInfo iEncodingInfo[private]

CImHeader * iHeader

CImHeader *iHeader[private]

TUint iOverrideCharset

TUint iOverrideCharset[private]

TImCodecQP iQPCodec

TImCodecQP iQPCodec[private]

TBool isMIMEMessageHeader

TBool isMIMEMessageHeader[private]