TWspPrimitiveEncoder Class Reference

#include <wspencoder.h>

class TWspPrimitiveEncoder
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)

Detailed Description

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

Member Function 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
ParameterDescription
aDatevalue to be encoded.

Returns: Output, encoded HBufC8 buffer.

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
ParameterDescription
aValuenumber to be encoded.

Returns: Output, encoded HBufC8 buffer.

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.

ParameterDescription
aValuenumber to be encoded.

Returns: Output, encoded as a TUint8, representation of the header buffer. If input greater that 127 (invalid input), returns 0

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
ParameterDescription
aTextstring to be encoded.

Returns: Output, encoded HBufC8 buffer.

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
ParameterDescription
aTextstring to be encoded.

Returns: Output, encoded HBufC8 buffer.

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
ParameterDescription
aIntnumber to be encoded.

Returns: Output, encoded HBufC8 buffer.