CAuthority16 Class Reference
class CAuthority16 : public CBase
|
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.
The functionality provided by this API allows the authority components to be set or removed from this parsed authority. Also, it provides a reference to
TAuthorityC16
object so that the non-modifying functionality can be used. Deprecated in 9.1
-
Since
-
6.0
Constructor & Destructor Documentation
CAuthority16(const TAuthorityC16 &)
Constructor. First phase of two-phase construction method. Does non-allocating construction.
Parameters
const
TAuthorityC16
& aAuthority
|
The parsed authority component information from which to create the authority.
|
~CAuthority16()
IMPORT_C
|
~CAuthority16
|
(
|
)
|
|
Destructor.
-
Since
-
6.0
Deprecated in 9.1
Member Functions Documentation
Authority()
Provides a reference to the parsed authority. Allows access to the non-modifying API for TAuthorityC.
-
Since
-
6.0
Deprecated in 9.1
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
Second phase of two-phase construction method. Does any allocations required to fully construct the object.
-
Since
-
6.0
-
Pre-condition
-
First phase of construction is complete.
-
Post-condition
-
The object is fully constructed and initialized.
FormAuthorityL()
void
|
FormAuthorityL
|
(
|
)
|
[private]
|
Forms the authority from the parsed authority information. A copy of the parsed authority is created. The parsed authority is changed to refer to the copy.
-
Since
-
6.0
-
Pre-condition
-
The parsed authority information is set.
-
Post-condition
-
The authority buffer is a copy of the parsed authority, and the parsed authority now refers to the copy.
NewL(const TAuthorityC16 &)
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.
-
Since
-
6.0
Deprecated in 9.1
-
Post-condition
-
A fully constructed and initialized
CAuthority16
object.
Parameters
const
TAuthorityC16
& aAuthority
|
A reference to a parsed authority object.
|
NewL()
Static factory constructor. Uses two phase construction and leaves nothing on the
CleanupStack
. Creates an authority object which is empty.
-
Since
-
6.0
Deprecated in 9.1
-
Post-condition
-
A fully constructed and initialized
CAuthority16
object.
NewLC(const TAuthorityC16 &)
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.
-
Since
-
6.0
Deprecated in 9.1
-
Post-condition
-
A fully constructed and initialized
CAuthority16
object.
Parameters
const
TAuthorityC16
& aAuthority
|
A reference to a parsed authority object.
|
NewLC()
Static factory constructor. Uses two phase construction and leaves a pointer to created object on the
CleanupStack
. Creates an authority object which is empty.
-
Since
-
6.0
Deprecated in 9.1
-
Post-condition
-
A fully constructed and initialized
CAuthority16
object.
RemoveComponentL(TAuthorityComponent)
Removes the specified component from the authority. If the component does not exist then this function does nothing.
-
Since
-
6.0
Deprecated in 9.1
-
Pre-condition
-
Object is fully constructed.
-
Post-condition
-
The authority is updated to exclude the specified component.
SetAndEscapeComponentL(const TDesC16 &, TAuthorityComponent)
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.
-
Since
-
6.0
Deprecated in 9.1
-
Pre-condition
-
Object is fully constructed.
-
Post-condition
-
The authority has the specified component set to the new value.
Parameters
const
TDesC16
& aData
|
A descriptor pointer to the new value for the authority component.
|
TAuthorityComponent
aComponent
|
An enum specifying the component to be set.
|
SetComponentL(const TDesC16 &, TAuthorityComponent)
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.
-
Since
-
6.0
Deprecated in 9.1
-
Pre-condition
-
Object is fully constructed.
-
Post-condition
-
The authority has the specified component set to the new value. KErrArgument If aComponent goes out of range.
Parameters
const
TDesC16
& aData
|
A descriptor pointer to the new value for the authority component.
|
TAuthorityComponent
aComponent
|
An enum specifying the component to be set.
|
Member Data Documentation
TAuthorityC16
iAuthority
The parsed authority object.
HBufC16 * iAuthorityBuf
The descriptor buffer that contains the authority.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.