THttpHeaderValueVariant Class Reference
#include
<mw/thttpheadervaluevariant.h>
Link against: httpservice.lib
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
Enumerator | Value | Description |
---|
ENoType | 0x00 | |
EIntType | 0x01 | |
EStrType | 0x02 | |
EDateTimeType | 0x03 | |
Constructor & Destructor Documentation
THttpHeaderValueVariant ( )
THttpHeaderValueVariant | ( | ) | [inline] |
THttpHeaderValueVariant ( TInt )
THttpHeaderValueVariant | ( | TInt | aIntVariant | ) | [inline] |
THttpHeaderValueVariant ( const TDesC8 & )
THttpHeaderValueVariant | ( | const TDesC8 & | aStrVariant | ) | [inline] |
THttpHeaderValueVariant ( TDateTime )
THttpHeaderValueVariant | ( | TDateTime | aDateVariant | ) | [inline] |
Member Function Documentation
DateTime ( )
Returns the contained datetime value. Will panic if the contained datatype is not a datettime value
Int ( )
Returns the contained integer. Will panic if the contained datatype is not an ineger
SetDateTime ( TDateTime )
void | SetDateTime | ( | TDateTime | aDateVariant | ) | [inline] |
Parameter | Description | aDateVariant | Datettime value |
SetInt ( TInt )
void | SetInt | ( | TInt | aIntVariant | ) | [inline] |
Parameter | Description | aIntVariant | Integer value |
SetStr ( const TDesC8 & )
void | SetStr | ( | const TDesC8 & | aStrVariant | ) | [inline] |
Parameter | Description | aStrVariant | String value |
Str ( )
Returns the contained string. Will panic if the contained datatype is not an string
Type ( )
Return the type that is represented by "this" object