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.

Parameters
aDatevalue to be encoded.
Return Value
Output, encoded HBufC8 buffer.
Leave Codes
KErrNoMemory

LongIntL ( const TUint32 )

IMPORT_C HBufC8 *LongIntL(const TUint32aValue)[static]

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

Parameters
aValuenumber to be encoded.
Return Value
Output, encoded HBufC8 buffer.
Leave Codes
KErrNoMemory

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

Parameters
aTextstring to be encoded.
Return Value
Output, encoded HBufC8 buffer.
Leave Codes
KErrNoMemory

TextStringL ( const TDesC8 & )

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

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

Parameters
aTextstring to be encoded.
Return Value
Output, encoded HBufC8 buffer.
Leave Codes
KErrNoMemory

UintVarL ( const TUint32 )

IMPORT_C HBufC8 *UintVarL(const TUint32aInt)[static]

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

Parameters
aIntnumber to be encoded.
Return Value
Output, encoded HBufC8 buffer.
Leave Codes
KErrNoMemory