#include <authority16.h>
class CAuthority16 : public CBase |
Public Member Functions | |
---|---|
~CAuthority16() | |
IMPORT_C const TAuthorityC16 & | Authority() |
IMPORT_C CAuthority16 * | NewL(const TAuthorityC16 &) |
IMPORT_C CAuthority16 * | NewL() |
IMPORT_C CAuthority16 * | NewLC(const TAuthorityC16 &) |
IMPORT_C CAuthority16 * | NewLC() |
IMPORT_C void | RemoveComponentL(TAuthorityComponent) |
IMPORT_C void | SetAndEscapeComponentL(const TDesC16 &, TAuthorityComponent) |
IMPORT_C void | SetComponentL(const TDesC16 &, TAuthorityComponent) |
Dependencies : CBase, TAuthorityC16. Comments : Provides modifying functionality on the components of an authority object, as defined in RFC2396. There are 3 components; userinfo, host and port.
The object holds parsed authority information. It is owning. It uses 16-bit descriptors.
IMPORT_C const TAuthorityC16 & | Authority | ( | ) | const |
Provides a reference to the parsed authority. Allows access to the non-modifying API for TAuthorityC.
IMPORT_C CAuthority16 * | NewL | ( | const TAuthorityC16 & | aAuthority | ) | [static] |
Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates an authority object which is a copy of the input parameter aAuthority.
Parameters | |
---|---|
aAuthority | A reference to a parsed authority object. |
IMPORT_C CAuthority16 * | NewL | ( | ) | [static] |
Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates an authority object which is empty.
IMPORT_C CAuthority16 * | NewLC | ( | const TAuthorityC16 & | aAuthority | ) | [static] |
Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack. Creates an authority object which is a copy of the input parameter aAuthority.
Parameters | |
---|---|
aAuthority | A reference to a parsed authority object. |
IMPORT_C CAuthority16 * | NewLC | ( | ) | [static] |
Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack. Creates an authority object which is empty.
IMPORT_C void | RemoveComponentL | ( | TAuthorityComponent | aComponent | ) |
Removes the specified component from the authority. If the component does not exist then this function does nothing.
Parameters | |
---|---|
aComponent | An enum specifying the component to be removed. |
IMPORT_C void | SetAndEscapeComponentL | ( | const TDesC16 & | aData, |
TAuthorityComponent | aComponent | |||
) |
Escape encodes the component then sets the specified component in the authority. The component is set to the value given in the argument aData. If the specified component already exists then it is replaced with the new value.
Parameters | |
---|---|
aData | A descriptor pointer to the new value for the authority component. |
aComponent | An enum specifying the component to be set. |
IMPORT_C void | SetComponentL | ( | const TDesC16 & | aData, |
TAuthorityComponent | aComponent | |||
) |
Sets the specified component in the authority. The component is set to the value given in the argument aData. If the specified component already exists then it is replaced with the new value.
Parameters | |
---|---|
aData | A descriptor pointer to the new value for the authority component. |
aComponent | An enum specifying the component to be set. |