CHTTPResponse Class Reference

class CHTTPResponse : public CBase

Inherits from

Public Member Functions
~CHTTPResponse()
IMPORT_C voidAddResponse(HBufC8 *)
IMPORT_C TBoolCharSet(TPtrC8 &)
IMPORT_C voidContentType(TPtrC8 &)
IMPORT_C THttpStatusCodeDetailedStatusCode()
IMPORT_C TBoolExtractCacheControlTime(TCacheControlFieldValue, TTime &)
IMPORT_C TBoolFindBinaryDescField(THttpHeaderField, TPtrC8 &, TInt)
IMPORT_C TIntFindCacheControlFieldValue(TCacheControlFieldValue)
IMPORT_C TBoolFindField(THttpHeaderField, TPtrC8 &, TInt)
IMPORT_C TBoolFindField(THttpHeaderField, TTime &, TInt)
IMPORT_C TBoolFindRealm(TPtrC8 &)
IMPORT_C CHTTPResponse *NewL()
IMPORT_C voidReset()
IMPORT_C HBufC8 &Response()
IMPORT_C voidSetStatusCode(TInt)
IMPORT_C THttpStatusCodeStatusCode()
Protected Member Functions
CHTTPResponse()
IMPORT_C const TText8 *CharSet(TInt)
IMPORT_C voidConstructL()
IMPORT_C const TText8 *ContentType(TInt)
IMPORT_C TIntLocateField(THttpHeaderField, TInt)
Private Member Functions
IMPORT_C TAny *Extend_CHTTPResponse(TAny *)
IMPORT_C TAny *Extend_CHTTPResponse_const(TAny *)
voidExtractFieldDateValue(const TPtrC8 &, TInt, TTime &)
voidExtractMultiOctetInteger(TInt &, const TPtrC8 &)
TInt FindCacheControlFieldValue(TCacheControlFieldValue, TPtrC8 &)
voidPanic(THttpPanicCode)
TInt ParseUIntVar(const TDesC8 &, TInt &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
THttpStatusCode iDetailedStatusCode
HBufC8 *iResponse
THttpStatusCode iStatusCode

Constructor & Destructor Documentation

CHTTPResponse()

IMPORT_CCHTTPResponse()[protected]

~CHTTPResponse()

IMPORT_C~CHTTPResponse()[virtual]

Member Functions Documentation

AddResponse(HBufC8 *)

IMPORT_C voidAddResponse(HBufC8 *aResponse)

Parameters

HBufC8 * aResponse

CharSet(TPtrC8 &)

IMPORT_C TBoolCharSet(TPtrC8 &aDesc)const

Parameters

TPtrC8 & aDesc

CharSet(TInt)

IMPORT_C const TText8 *CharSet(TIntaCharsetCode)const [protected]

Parameters

TInt aCharsetCode

ConstructL()

IMPORT_C voidConstructL()[protected]

ContentType(TPtrC8 &)

IMPORT_C voidContentType(TPtrC8 &aDesc)const

Parameters

TPtrC8 & aDesc

ContentType(TInt)

IMPORT_C const TText8 *ContentType(TIntaContentTypeCode)const [protected]

Parameters

TInt aContentTypeCode

DetailedStatusCode()

IMPORT_C THttpStatusCodeDetailedStatusCode()const

Extend_CHTTPResponse(TAny *)

IMPORT_C TAny *Extend_CHTTPResponse(TAny *aArgs)[private, virtual]

Parameters

TAny * aArgs

Extend_CHTTPResponse_const(TAny *)

IMPORT_C TAny *Extend_CHTTPResponse_const(TAny *aArgs)const [private, virtual]

Parameters

TAny * aArgs

ExtractCacheControlTime(TCacheControlFieldValue, TTime &)

IMPORT_C TBoolExtractCacheControlTime(TCacheControlFieldValueaField,
TTime &aTime
)const

Parameters

TCacheControlFieldValue aField
TTime & aTime

ExtractFieldDateValue(const TPtrC8 &, TInt, TTime &)

voidExtractFieldDateValue(const TPtrC8 &aSource,
TIntaFrom,
TTime &aTime
)const [private]

Parameters

const TPtrC8 & aSource
TInt aFrom
TTime & aTime

ExtractMultiOctetInteger(TInt &, const TPtrC8 &)

voidExtractMultiOctetInteger(TInt &aInt,
const TPtrC8 &aSource
)const [private]

Parameters

TInt & aInt
const TPtrC8 & aSource

FindBinaryDescField(THttpHeaderField, TPtrC8 &, TInt)

IMPORT_C TBoolFindBinaryDescField(THttpHeaderFieldaField,
TPtrC8 &aDesc,
TIntaStartIndex = 0
)const

Parameters

THttpHeaderField aField
TPtrC8 & aDesc
TInt aStartIndex = 0

FindCacheControlFieldValue(TCacheControlFieldValue)

IMPORT_C TIntFindCacheControlFieldValue(TCacheControlFieldValueaField)const

Parameters

TCacheControlFieldValue aField

FindCacheControlFieldValue(TCacheControlFieldValue, TPtrC8 &)

TInt FindCacheControlFieldValue(TCacheControlFieldValueaField,
TPtrC8 &aCacheControl
)const [private]

Parameters

TCacheControlFieldValue aField
TPtrC8 & aCacheControl

FindField(THttpHeaderField, TPtrC8 &, TInt)

IMPORT_C TBoolFindField(THttpHeaderFieldaField,
TPtrC8 &aDesc,
TIntaStartIndex = 0
)const

Parameters

THttpHeaderField aField
TPtrC8 & aDesc
TInt aStartIndex = 0

FindField(THttpHeaderField, TTime &, TInt)

IMPORT_C TBoolFindField(THttpHeaderFieldaField,
TTime &aTime,
TIntaStartIndex = 0
)const

Parameters

THttpHeaderField aField
TTime & aTime
TInt aStartIndex = 0

FindRealm(TPtrC8 &)

IMPORT_C TBoolFindRealm(TPtrC8 &aRealm)const

Parameters

TPtrC8 & aRealm

LocateField(THttpHeaderField, TInt)

IMPORT_C TIntLocateField(THttpHeaderFieldaField,
TIntaStartIndex = 0
)const [protected]

Parameters

THttpHeaderField aField
TInt aStartIndex = 0

NewL()

IMPORT_C CHTTPResponse *NewL()[static]

Panic(THttpPanicCode)

voidPanic(THttpPanicCodeaPanicCode)const [private]

Parameters

THttpPanicCode aPanicCode

ParseUIntVar(const TDesC8 &, TInt &)

TInt ParseUIntVar(const TDesC8 &aBuffer,
TInt &aVal
)const [private]

Parameters

const TDesC8 & aBuffer
TInt & aVal

Reset()

IMPORT_C voidReset()

Response()

IMPORT_C HBufC8 &Response()const

SetStatusCode(TInt)

IMPORT_C voidSetStatusCode(TIntaCode)

Parameters

TInt aCode

StatusCode()

IMPORT_C THttpStatusCodeStatusCode()const

Member Data Documentation

THttpStatusCode iDetailedStatusCode

THttpStatusCode iDetailedStatusCode[private]

HBufC8 * iResponse

HBufC8 *iResponse[private]

THttpStatusCode iStatusCode

THttpStatusCode iStatusCode[private]