THttpHeaderValueVariant Class Reference

class THttpHeaderValueVariant

THttpHeaderValueVariant represents a value found in the header element. The value of the header element can be of the various datatype like integer, string and datetime hence THttpHeaderValueVariant is a container for them.

Constructor & Destructor Documentation

THttpHeaderValueVariant()

THttpHeaderValueVariant ( ) [inline]

Default constructor

THttpHeaderValueVariant(TInt)

THttpHeaderValueVariant ( TInt aIntVariant ) [inline]

Constructor

Parameters

TInt aIntVariant

THttpHeaderValueVariant(const TDesC8 &)

THttpHeaderValueVariant ( const TDesC8 & aStrVariant ) [inline]

Parameters

const TDesC8 & aStrVariant

THttpHeaderValueVariant(TDateTime)

THttpHeaderValueVariant ( TDateTime aDateVariant ) [inline]

Parameters

TDateTime aDateVariant

Member Functions Documentation

DateTime()

TDateTime DateTime ( ) const [inline]

Returns the contained datetime value. Will panic if the contained datatype is not a datettime value

Int()

TInt Int ( ) const [inline]

Returns the contained integer. Will panic if the contained datatype is not an ineger

SetDateTime(TDateTime)

void SetDateTime ( TDateTime aDateVariant ) [inline]

Set the datettime value

Parameters

TDateTime aDateVariant Datettime value

SetInt(TInt)

void SetInt ( TInt aIntVariant ) [inline]

Set the integer value

Parameters

TInt aIntVariant Integer value

SetStr(const TDesC8 &)

void SetStr ( const TDesC8 & aStrVariant ) [inline]

Set the string value

Parameters

const TDesC8 & aStrVariant String value

Str()

TPtrC8 Str ( ) const [inline]

Returns the contained string. Will panic if the contained datatype is not an string

Type()

THttpVariantType Type ( ) const [inline]

Return the type that is represented by "this" object

Member Enumerations Documentation

Enum THttpVariantType

Enumeration type.

Enumerators

ENoType = 0x00
EIntType = 0x01
EStrType = 0x02
EDateTimeType = 0x03

Member Data Documentation

TInt iMoreSpace

TInt iMoreSpace [private]

THttpVariantType iVariantType

THttpVariantType iVariantType [private]

TInt iVariantVal

TInt iVariantVal [private]