#include <mw/thttpheadervaluevariant.h>
class THttpHeaderValueVariant |
Public Member Enumerations | |
---|---|
enum | THttpVariantType { ENoType, EIntType, EStrType, EDateTimeType } |
Public Member Functions | |
---|---|
THttpHeaderValueVariant() | |
THttpHeaderValueVariant(TInt) | |
THttpHeaderValueVariant(const TDesC8 &) | |
THttpHeaderValueVariant(TDateTime) | |
TDateTime | DateTime() |
TInt | Int() |
void | SetDateTime(TDateTime) |
void | SetInt(TInt) |
void | SetStr(const TDesC8 &) |
TPtrC8 | Str() |
THttpVariantType | Type() |
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.
Enumeration type.
Enumerator | Value | Description |
---|---|---|
ENoType | 0x00 | |
EIntType | 0x01 | |
EStrType | 0x02 | |
EDateTimeType | 0x03 |
THttpHeaderValueVariant | ( | const TDesC8 & | aStrVariant | ) | [inline] |
THttpHeaderValueVariant | ( | TDateTime | aDateVariant | ) | [inline] |
TDateTime | DateTime | ( | ) | const [inline] |
Returns the contained datetime value. Will panic if the contained datatype is not a datettime value
TInt | Int | ( | ) | const [inline] |
Returns the contained integer. Will panic if the contained datatype is not an ineger
void | SetDateTime | ( | TDateTime | aDateVariant | ) | [inline] |
Set the datettime value
Parameters | |
---|---|
aDateVariant | Datettime value |
void | SetStr | ( | const TDesC8 & | aStrVariant | ) | [inline] |
Set the string value
Parameters | |
---|---|
aStrVariant | String value |
TPtrC8 | Str | ( | ) | const [inline] |
Returns the contained string. Will panic if the contained datatype is not an string