CImConvertHeader Class Reference

class CImConvertHeader : public CBase

Inherits from

Public Member Functions
~CImConvertHeader ()
void Append ( TDes &, const TDesC8 &)
CImConvertCharconv & CharConv ()
IMPORT_C void ConvertHeaderFieldL (const TDesC16 &, RBuf8 &, TBool )
IMPORT_C void DecodeAllHeaderFieldsL ( CImHeader &)
IMPORT_C void DecodeHeaderFieldL (const TDesC8 &, TDes &)
IMPORT_C void DecodeHeaderFieldL (const TDesC16 &, TDes &)
IMPORT_C void DecodeNonMIMEHeaderFieldL (const TDesC8 &, TDes &)
IMPORT_C void EncodeHeaderFieldL (const TDesC &, RBuf8 &, CArrayFix < TImHeaderEncodingInfo > *, TInt , TInt )
IMPORT_C void EncodeHeaderFieldL (const TDesC &, RBuf8 &, const TUint , const TImHeaderEncodingInfo::TEncodingType , TBool )
IMPORT_C TBool FindEncodedWord ( TPtrC8 &, TInt &, TInt &, TInt &)
IMPORT_C CImConvertHeader * NewL ( CImConvertCharconv &)
IMPORT_C TUint OverrideCharset ()
IMPORT_C void SetMessageType ( TBool )
IMPORT_C void SetOverrideCharset ( TUint )
Private Member Functions
CImConvertHeader ( CImConvertCharconv &)
TInt AddEncodedWordInfoL (const TDesC8 &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &)
void ConstructL ()
void DecodeFieldL (const TDesC &)
void DecodeRecipientListL ( CDesCArray &)
TBool DecodeWordL (const TDesC8 &, TDes &, TInt )
TBool DoCharsetConversionL (const TDesC &, RBuf8 &)
void DoEncodingL ( RBuf8 &, TImHeaderEncodingInfo &)
void EncodeWordL (const TDesC &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &, RBuf8 &)
TBool ExtractTextToEncode (const TDesC &, TInt &, TInt &, TBool )
void GetCharsetAndEncodeDataL (const TDesC &, RBuf8 &, TImHeaderEncodingInfo &)
void Insert ( 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]

~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 &)

void Append ( TDes & aBuffer,
const TDesC8 & aAddition
)

Parameters

TDes & aBuffer
const TDesC8 & aAddition

CharConv()

CImConvertCharconv & CharConv ( ) [inline]

ConstructL()

void ConstructL ( ) [private]

ConvertHeaderFieldL(const TDesC16 &, RBuf8 &, TBool)

IMPORT_C void ConvertHeaderFieldL ( const TDesC16 & aBufIn,
RBuf8 & aBufOut,
TBool aIsAddressField
)

Convert function used for non-MIME messages.

Parameters

const TDesC16 & aBufIn
RBuf8 & aBufOut
TBool aIsAddressField

DecodeAllHeaderFieldsL(CImHeader &)

IMPORT_C void DecodeAllHeaderFieldsL ( CImHeader & rHeader )

Parameters

CImHeader & rHeader

DecodeFieldL(const TDesC &)

void DecodeFieldL ( const TDesC & aField ) [private]

Parameters

const TDesC & aField

DecodeHeaderFieldL(const TDesC8 &, TDes &)

IMPORT_C void DecodeHeaderFieldL ( 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 void DecodeHeaderFieldL ( 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 void DecodeNonMIMEHeaderFieldL ( const TDesC8 & aBufIn,
TDes & aBufOut
)

Parameters

const TDesC8 & aBufIn
TDes & aBufOut

DecodeRecipientListL(CDesCArray &)

void DecodeRecipientListL ( CDesCArray & aArray ) [private]

Parameters

CDesCArray & aArray

DecodeWordL(const TDesC8 &, TDes &, TInt)

TBool DecodeWordL ( const TDesC8 & aBufIn,
TDes & aBufOut,
TInt rRemainder
) [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 &)

void DoEncodingL ( RBuf8 & aEncodedWord,
TImHeaderEncodingInfo & aInfo
) [private]

Parameters

RBuf8 & aEncodedWord
TImHeaderEncodingInfo & aInfo

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

IMPORT_C void EncodeHeaderFieldL ( const TDesC & aBufIn,
RBuf8 & aBufOut,
CArrayFix < TImHeaderEncodingInfo > * aInfoArray,
TInt aState,
TInt aArrayVal = 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 void EncodeHeaderFieldL ( const TDesC & aBufIn,
RBuf8 & aBufOut,
const TUint aCharset,
const TImHeaderEncodingInfo::TEncodingType aType,
TBool aIsAddressField
)

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 &)

void EncodeWordL ( 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,
TBool aIsAddressField
) [private]

Parameters

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

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

IMPORT_C TBool FindEncodedWord ( TPtrC8 & aData,
TInt & aInit,
TInt & rStart,
TInt & rEnd
)

Parameters

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

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

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

Parameters

const TDesC & aBufIn
RBuf8 & aBufOut
TImHeaderEncodingInfo & aInfo

Insert(TDes8 &, const TDesC16 &)

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

Parameters

TDes8 & aBuffer
const TDesC16 & aInsert

IsAscii(TUint)

TBool IsAscii ( TUint aChar ) const [private]

Parameters

TUint aChar

NewL(CImConvertCharconv &)

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

Parameters

CImConvertCharconv & aConverter

OverrideCharset()

IMPORT_C TUint OverrideCharset ( ) 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 void SetMessageType ( TBool aIsMIME )

Parameters

TBool aIsMIME

SetOverrideCharset(TUint)

IMPORT_C void SetOverrideCharset ( TUint aCharset )

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

Parameters

TUint aCharset The 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]