TWspPrimitiveEncoder Class Reference

class TWspPrimitiveEncoder

Class encapsulating primitive encoding methods which are defined in the WSP standard. Input will be encoded and returned in an 8 bit buffer.

Public Member Functions
IMPORT_C HBufC8 *DateL(const TDateTime)
IMPORT_C HBufC8 *LongIntL(const TUint32)
IMPORT_C TUint8ShortInt(const TUint8)
IMPORT_C HBufC8 *TextStringL(const RString)
IMPORT_C HBufC8 *TextStringL(const TDesC8 &)
IMPORT_C HBufC8 *UintVarL(const TUint32)

Member Functions Documentation

DateL(const TDateTime)

IMPORT_C HBufC8 *DateL(const TDateTimeaDate)[static]

Takes a TDateTime parameter and encodes it using the WSP specified Date encoding method.

leave
KErrNoMemory

Parameters

const TDateTime aDatevalue to be encoded.

LongIntL(const TUint32)

IMPORT_C HBufC8 *LongIntL(const TUint32aValue)[static]

Takes a TUint32 parameter and encodes it using the WSP specified LongInt method.

leave
KErrNoMemory

Parameters

const TUint32 aValuenumber to be encoded.

ShortInt(const TUint8)

IMPORT_C TUint8ShortInt(const TUint8aValue)[static]

Takes a TUint8 parameter, and sets the top bit. As specified for the WSP ShortInt encoding method.

Parameters

const TUint8 aValuenumber to be encoded.

TextStringL(const RString)

IMPORT_C HBufC8 *TextStringL(const RStringaText)[static]

Takes a RString parameter and encodes it using the WSP specified TextString method.

leave
KErrNoMemory

Parameters

const RString aTextstring to be encoded.

TextStringL(const TDesC8 &)

IMPORT_C HBufC8 *TextStringL(const TDesC8 &aText)[static]

Takes a TDesC8 parameter and encodes it using the WSP specified TextString method.

leave
KErrNoMemory

Parameters

const TDesC8 & aTextstring to be encoded.

UintVarL(const TUint32)

IMPORT_C HBufC8 *UintVarL(const TUint32aInt)[static]

Takes a TUint32 parameter and encodes it using the WSP specified UintVar method.

leave
KErrNoMemory

Parameters

const TUint32 aIntnumber to be encoded.