TWspPrimitiveDecoder Class Reference

class TWspPrimitiveDecoder

Decoder for WSP Primitves - WAP-WSP Section 8.4.1

Public Member Functions
TWspPrimitiveDecoder(TPtrC8)
IMPORT_C TIntDate(TDateTime &)
IMPORT_C TIntInteger(TUint32 &)
IMPORT_C TIntLengthVal(TInt &)
IMPORT_C TIntLongInt(TUint32 &)
IMPORT_C TIntString(TPtrC8 &)
IMPORT_C TIntUintVar(TUint32 &)
IMPORT_C TIntVal7Bit(TUint8 &)
IMPORT_C TWspHeaderTypeVarType()
IMPORT_C TIntVersionL(RStringPool, RStringF &)
Public Member Enumerations
enumTWspHeaderType { ENotSet, ELengthVal, EQuotedString, EString, E7BitVal }
Private Attributes
TPtrC8 iBuffer
TInt iOffset

Constructor & Destructor Documentation

TWspPrimitiveDecoder(TPtrC8)

TWspPrimitiveDecoder(TPtrC8aBuffer)[inline]

Constructor

Parameters

TPtrC8 aBufferIn - the buffer containing the value in its raw format

Member Functions Documentation

Date(TDateTime &)

IMPORT_C TIntDate(TDateTime &aDateTime)

Parameters

TDateTime & aDateTime

Integer(TUint32 &)

IMPORT_C TIntInteger(TUint32 &aVal)

Parameters

TUint32 & aVal

LengthVal(TInt &)

IMPORT_C TIntLengthVal(TInt &aVal)

Parameters

TInt & aVal

LongInt(TUint32 &)

IMPORT_C TIntLongInt(TUint32 &aVal)

Parameters

TUint32 & aVal

String(TPtrC8 &)

IMPORT_C TIntString(TPtrC8 &aString)

Parameters

TPtrC8 & aString

UintVar(TUint32 &)

IMPORT_C TIntUintVar(TUint32 &aVal)

Parameters

TUint32 & aVal

Val7Bit(TUint8 &)

IMPORT_C TIntVal7Bit(TUint8 &aVal)

Parameters

TUint8 & aVal

VarType()

IMPORT_C TWspHeaderTypeVarType()const

VersionL(RStringPool, RStringF &)

IMPORT_C TIntVersionL(RStringPoolaPool,
RStringF &aVer
)

Parameters

RStringPool aPool
RStringF & aVer

Member Enumerations Documentation

Enum TWspHeaderType

TWspHeaderType describe the types from WAP-WSP Section 8.4.1.2

Enumerators

ENotSet

The type has not been set

ELengthVal

0-31 - octet is a value length

EQuotedString

34 - value is a quoted text string, terminated by a Null

EString

32-127 - value is a text string, terminated by a Null

E7BitVal

128-255 - encoded 7 bit value, this header has no more data

Member Data Documentation

TPtrC8 iBuffer

TPtrC8 iBuffer[private]

The raw buffer

TInt iOffset

TInt iOffset[private]

The current offset