CImConvertHeader Class Reference
class CImConvertHeader : public CBase
|
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
)
|
Constructor & Destructor Documentation
CImConvertHeader(CImConvertCharconv &)
Member Functions Documentation
AddEncodedWordInfoL(const TDesC8 &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &)
Append(TDes &, const TDesC8 &)
void
|
Append
|
(
|
TDes
&
|
aBuffer,
|
|
const
TDesC8
&
|
aAddition
|
|
)
|
|
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.
DecodeAllHeaderFieldsL(CImHeader &)
IMPORT_C void
|
DecodeAllHeaderFieldsL
|
(
|
CImHeader
&
|
rHeader
|
)
|
|
DecodeFieldL(const TDesC &)
void
|
DecodeFieldL
|
(
|
const
TDesC
&
|
aField
|
)
|
[private]
|
DecodeHeaderFieldL(const TDesC8 &, TDes &)
IMPORT_C void
|
DecodeHeaderFieldL
|
(
|
const
TDesC8
&
|
aBufIn,
|
|
TDes
&
|
aBufOut
|
|
)
|
|
Search for one or more encoded words in aLine
DecodeHeaderFieldL(const TDesC16 &, TDes &)
IMPORT_C void
|
DecodeHeaderFieldL
|
(
|
const
TDesC16
&
|
aBufIn,
|
|
TDes
&
|
aBufOut
|
|
)
|
|
Search for one or more encoded words in aLine
DecodeNonMIMEHeaderFieldL(const TDesC8 &, TDes &)
IMPORT_C void
|
DecodeNonMIMEHeaderFieldL
|
(
|
const
TDesC8
&
|
aBufIn,
|
|
TDes
&
|
aBufOut
|
|
)
|
|
DecodeRecipientListL(CDesCArray &)
void
|
DecodeRecipientListL
|
(
|
CDesCArray
&
|
aArray
|
)
|
[private]
|
DecodeWordL(const TDesC8 &, TDes &, TInt)
DoCharsetConversionL(const TDesC &, RBuf8 &)
TBool
|
DoCharsetConversionL
|
(
|
const
TDesC
&
|
aDataToConvert,
|
|
RBuf8
&
|
aEncodedWord
|
|
)
|
[private]
|
DoEncodingL(RBuf8 &, TImHeaderEncodingInfo &)
EncodeHeaderFieldL(const TDesC &, RBuf8 &, CArrayFix< TImHeaderEncodingInfo > *, TInt, TInt)
EncodeHeaderFieldL(const TDesC &, RBuf8 &, const TUint, const TImHeaderEncodingInfo::TEncodingType, TBool)
This function has to encode without any prestored information. Encodes from UNICODE, to UTF-7
EncodeWordL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &, const TDesC8 &, RBuf8 &)
ExtractTextToEncode(const TDesC &, TInt &, TInt &, TBool)
FindEncodedWord(TPtrC8 &, TInt &, TInt &, TInt &)
GetCharsetAndEncodeDataL(const TDesC &, RBuf8 &, TImHeaderEncodingInfo &)
Insert(TDes8 &, const TDesC16 &)
void
|
Insert
|
(
|
TDes8
&
|
aBuffer,
|
|
const
TDesC16
&
|
aInsert
|
|
)
|
[private]
|
NewL(CImConvertCharconv &)
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
|
)
|
|
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
CImConvertCharconv & iCharConv
TUint
iCharacterSetId
TUint
|
iCharacterSetId
|
[private]
|
TImHeaderEncodingInfo
iEncodingInfo
TUint
iOverrideCharset
TUint
|
iOverrideCharset
|
[private]
|
TBool
isMIMEMessageHeader
TBool
|
isMIMEMessageHeader
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.