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(TIntaIntVariant)[inline]

Constructor

Parameters

TInt aIntVariant

THttpHeaderValueVariant(const TDesC8 &)

THttpHeaderValueVariant(const TDesC8 &aStrVariant)[inline]

Parameters

const TDesC8 & aStrVariant

THttpHeaderValueVariant(TDateTime)

THttpHeaderValueVariant(TDateTimeaDateVariant)[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)

voidSetDateTime(TDateTimeaDateVariant)[inline]

Set the datettime value

Parameters

TDateTime aDateVariantDatettime value

SetInt(TInt)

voidSetInt(TIntaIntVariant)[inline]

Set the integer value

Parameters

TInt aIntVariantInteger value

SetStr(const TDesC8 &)

voidSetStr(const TDesC8 &aStrVariant)[inline]

Set the string value

Parameters

const TDesC8 & aStrVariantString 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]