|
|
|
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.
Defined in TAuthorityC8:
AuthorityDes()constRetrieves the descriptor for the entire authority.Compare(const TAuthorityC8 &,TAuthorityComponent)constCompares the specified component against the one in the authority passed in.DisplayFormL(TAuthorityComponent)constCreate a new HBufC descriptor containing the desired component or the full Autho...Extract(TAuthorityComponent)constRetrieves the specified component in the authority.IsPresent(TAuthorityComponent)constIndicates whether the specified component is present in the authority.TAuthorityC8()Constructor.iAuthorityDesThe descriptor pointer to the authority.iComponentThe array of descriptor pointers to the authority components.IMPORT_C const TDesC8& Extract(TAuthorityComponent aComponent) const;
Retrieves the specified component in the authority.
|
|
IMPORT_C TBool IsPresent(TAuthorityComponent aComponent) const;
Indicates whether the specified component is present in the authority.
|
|
IMPORT_C TInt Compare(const TAuthorityC8 &aAuthority, TAuthorityComponent aComponent) const;
Compares the specified component against the one in the authority passed in.
|
|
IMPORT_C const TDesC8& AuthorityDes() const;
Retrieves the descriptor for the entire authority.
|
IMPORT_C HBufC* DisplayFormL(TAuthorityComponent aComponent=EAuthorityComplete) const;
Create a new HBufC descriptor containing the desired component or the full Authority.
|
|
protected: TPtrC8 iComponent[EAuthorityMaxComponents];
The array of descriptor pointers to the authority components.
protected: TPtrC8 iAuthorityDes;
The descriptor pointer to the authority.