THttpHeaderValueVariant Class Reference

#include <mw/thttpheadervaluevariant.h>

class THttpHeaderValueVariant

Detailed Description

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.

Member Enumeration Documentation

Enum THttpVariantType

Enumeration type.

EnumeratorValueDescription
ENoType0x00
EIntType0x01
EStrType0x02
EDateTimeType0x03

Constructor & Destructor Documentation

THttpHeaderValueVariant ( )

THttpHeaderValueVariant()[inline]

Default constructor

THttpHeaderValueVariant ( TInt )

THttpHeaderValueVariant(TIntaIntVariant)[inline]

Constructor

THttpHeaderValueVariant ( const TDesC8 & )

THttpHeaderValueVariant(const TDesC8 &aStrVariant)[inline]

THttpHeaderValueVariant ( TDateTime )

THttpHeaderValueVariant(TDateTimeaDateVariant)[inline]

Member Function 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
aDateVariantDatettime value

SetInt ( TInt )

voidSetInt(TIntaIntVariant)[inline]

Set the integer value

Parameters
aIntVariantInteger value

SetStr ( const TDesC8 & )

voidSetStr(const TDesC8 &aStrVariant)[inline]

Set the string value

Parameters
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