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 TUint8 ShortInt (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 TDateTime aDate ) [static]

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

leave
KErrNoMemory

Parameters

const TDateTime aDate value to be encoded.

LongIntL(const TUint32)

IMPORT_C HBufC8 * LongIntL ( const TUint32 aValue ) [static]

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

leave
KErrNoMemory

Parameters

const TUint32 aValue number to be encoded.

ShortInt(const TUint8)

IMPORT_C TUint8 ShortInt ( const TUint8 aValue ) [static]

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

Parameters

const TUint8 aValue number to be encoded.

TextStringL(const RString)

IMPORT_C HBufC8 * TextStringL ( const RString aText ) [static]

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

leave
KErrNoMemory

Parameters

const RString aText string 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 & aText string to be encoded.

UintVarL(const TUint32)

IMPORT_C HBufC8 * UintVarL ( const TUint32 aInt ) [static]

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

leave
KErrNoMemory

Parameters

const TUint32 aInt number to be encoded.