#include <authority8.h>
| class TAuthorityC8 |
| Protected Attributes | |
|---|---|
| TPtrC8 | iAuthorityDes |
| TPtrC8 | iComponent |
| Public Member Functions | |
|---|---|
| IMPORT_C const TDesC8 & | AuthorityDes() |
| IMPORT_C TInt | Compare(const TAuthorityC8 &, TAuthorityComponent) |
| IMPORT_C HBufC * | DisplayFormL(TAuthorityComponent) |
| IMPORT_C const TDesC8 & | Extract(TAuthorityComponent) |
| IMPORT_C TBool | IsPresent(TAuthorityComponent) |
| Protected Member Functions | |
|---|---|
| TAuthorityC8() | |
| void | Reset() |
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.
| TPtrC8 | iComponent | [protected] |
The array of descriptor pointers to the authority components.
| IMPORT_C const TDesC8 & | AuthorityDes | ( | ) | const |
Retrieves the descriptor for the entire authority.
Returns: A const reference to a descriptor pointer to the authority.
| IMPORT_C TInt | Compare | ( | const TAuthorityC8 & | aAuthority, |
| TAuthorityComponent | aComponent | |||
| ) | const | |||
Compares the specified component against the one in the authority passed in.
| Parameter | Description |
|---|---|
| aAuthority | The authority to compare components against. |
| aComponent | The enum specifying the component to compare. |
Returns: An integer value of zero if the components are the same, any other value if the components are not the same.
| IMPORT_C HBufC * | DisplayFormL | ( | TAuthorityComponent | aComponent = EAuthorityComplete | ) | const |
Create a new HBufC descriptor containing the desired component or the full Authority.
| Parameter | Description |
|---|---|
| aComponent | The component to convert into Unicode (EAuthorityScheme - EAuthorityFragment) or the full authority (EAuthorityComplete -- the default)). |
Returns: the descriptor containing the desired component.
| IMPORT_C const TDesC8 & | Extract | ( | TAuthorityComponent | aComponent | ) | const |
Retrieves the specified component in the authority.
| Parameter | Description |
|---|---|
| aComponent | The enum specifying the component. |
Returns: A constant reference to a descriptor pointer to the specified component.
| IMPORT_C TBool | IsPresent | ( | TAuthorityComponent | aComponent | ) | const |
Indicates whether the specified component is present in the authority.
| Parameter | Description |
|---|---|
| aComponent | The enum specifying the component. |
Returns: A boolean value of ETrue if the desired component is present, or EFalse if the desired component is not present.