TAuthorityC8 Class Reference

class TAuthorityC8

Dependencies : TAuthorityComponent. Comments : Provides non-modifying functionality on the components of an authority object as defined in RFC2396. There are 3 components; userinfo, host and port.

The object holds descriptor pointers to the parsed authority components and a descriptor pointer to the authority. It is non-owning. It uses 8-bit descriptors.

The functionality provided by this API allows the authority components to be extracted from the parsed authority, checked for their presence in the authority and be compared with those in another TAuthorityC8 object. 6.0

Public Member Functions
IMPORT_C const TDesC8 &AuthorityDes()
IMPORT_C TIntCompare(const TAuthorityC8 &, TAuthorityComponent)
IMPORT_C HBufC *DisplayFormL(TAuthorityComponent)
IMPORT_C const TDesC8 &Extract(TAuthorityComponent)
IMPORT_C TBoolIsPresent(TAuthorityComponent)
Protected Member Functions
TAuthorityC8()
voidReset()
Protected Attributes
TPtrC8 iAuthorityDes
TPtrC8 iComponent

Constructor & Destructor Documentation

TAuthorityC8()

IMPORT_CTAuthorityC8()[protected]

Member Functions Documentation

AuthorityDes()

IMPORT_C const TDesC8 &AuthorityDes()const

Compare(const TAuthorityC8 &, TAuthorityComponent)

IMPORT_C TIntCompare(const TAuthorityC8 &aAuthority,
TAuthorityComponentaComponent
)const

Parameters

const TAuthorityC8 & aAuthority
TAuthorityComponent aComponent

DisplayFormL(TAuthorityComponent)

IMPORT_C HBufC *DisplayFormL(TAuthorityComponentaComponent = EAuthorityComplete)const

Parameters

TAuthorityComponent aComponent = EAuthorityComplete

Extract(TAuthorityComponent)

IMPORT_C const TDesC8 &Extract(TAuthorityComponentaComponent)const

Parameters

TAuthorityComponent aComponent

IsPresent(TAuthorityComponent)

IMPORT_C TBoolIsPresent(TAuthorityComponentaComponent)const

Parameters

TAuthorityComponent aComponent

Reset()

voidReset()[protected]

Member Data Documentation

TPtrC8 iAuthorityDes

TPtrC8 iAuthorityDes[protected]

The descriptor pointer to the authority.

TPtrC8 iComponent

TPtrC8 iComponent[protected]

The array of descriptor pointers to the authority components.