Symbian
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: Uri16.h
Link against: inetprotutil.lib

Class CUri16

Interface status: deprecatedDeprecated in 9.1 6.0

class CUri16 : public CBase;

Description

Dependencies : CBase, TUriC16. Comments : Provides modifying functionality on the components of a uri object, as defined in RFC2396. There are 5 components; scheme. authority, path, query and fragment.

The object holds parsed uri information. It is owning. It uses 16-bit descriptors.

The functionality provided by this API allows the uri components to be set or removed from this parsed uri. Also, it provides a reference to TUriC16 object so that the non-modifying functionality can be used.

Derivation

Members

Defined in CUri16:
CreateFileUriL(), CreatePrivateFileUriL(), NewL(), NewL(), NewLC(), NewLC(), RemoveComponentL(), ResolveL(), SetComponentL(), Uri(), ~CUri16()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

Interface status: deprecatedDeprecated in 9.1 6.0

static IMPORT_C CUri16 *NewL(const TUriC16 &aUri);

Description

Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates a uri object which is a copy of the input parameter aUri.

Post-Condition

A fully constructed and initialized CUri16 object. Construction and Destruction

Parameters

const TUriC16 &aUri

A reference to a parsed uri object.

Return value

CUri16 *

A pointer to the newly created CUri16 object.


NewLC()

Interface status: deprecatedDeprecated in 9.1

static IMPORT_C CUri16 *NewLC(const TUriC16 &aUri);

Description

Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack. Creates a uri object which is a copy of the input parameter aUri.

Post-Condition

A fully constructed and initialized CUri16 object. Construction and Destruction

Parameters

const TUriC16 &aUri

A reference to a parsed uri object.

Return value

CUri16 *

A pointer to the newly created CUri16 object.


NewL()

Interface status: deprecatedDeprecated in 9.1

static IMPORT_C CUri16 *NewL();

Description

Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates a uri object which is empty.

Post-Condition

A fully constructed and initialized CUri16 object. Construction and Destruction

Return value

CUri16 *

A pointer to the newly created CUri16 object.


NewLC()

Interface status: deprecatedDeprecated in 9.1

static IMPORT_C CUri16 *NewLC();

Description

Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack. Creates a uri object which is empty.

Post-Condition

A fully constructed and initialized CUri16 object. Construction and Destruction

Return value

CUri16 *

A pointer to the newly created CUri16 object.


~CUri16()

Interface status: deprecatedDeprecated in 9.1 Construction and Destruction

IMPORT_C ~CUri16();

Description

Destructor.

[Top]


Member functions


CreateFileUriL()

Interface status: deprecatedInherited from: CUri16

static IMPORT_C CUri16 *CreateFileUriL(const TDesC &aFullFileName, TUint aFlags=0);

Description

Allocates and constructs a file URI object for a specified file.

Post-Condition

A fully constructed and initialized file URI (CUri16) object.

Parameters

const TDesC &aFullFileName

A reference to a fully qualified filename

TUint aFlags

A flag to indicate if the file exists on a fixed drive or removable media drive. This is a TFileUriFlags value.

Return value

CUri16 *

A pointer to the newly created file URI (CUri16) object.

Leave codes

KErrNoMemory


CreatePrivateFileUriL()

Interface status: deprecatedInherited from: CUri16

static IMPORT_C CUri16 *CreatePrivateFileUriL(const TDesC &aRelativeFileName, TDriveNumber aDrive, TInt aFlags=0);

Description

Allocates and constructs a file URI object for a file that is private to the application.

Post-Condition

A fully constructed and initialized file URI (CUri16) object.

Parameters

const TDesC &aRelativeFileName

A reference to the filename relative to the application's private directory.

TDriveNumber aDrive

Drive number, if the private file stored on fixed drive, otherwise not used This is a TDriveNumber value

TInt aFlags

A flag to indicate if the file exists on a fixed drive or removable media drive. This is a TFileUriFlags value.

Return value

CUri16 *

A pointer to the newly created file URI (CUri16) object.

Leave codes

KErrNoMemory

KErrNotSupported

Function is not applicable to the OS release


ResolveL()

Interface status: deprecatedDeprecated in 9.1

static IMPORT_C CUri16 *ResolveL(const TUriC16 &aBaseUri, const TUriC16 &aRefUri);

Pre-Condition

The base uri must have an absolute or empty path, otherwise will leave with KUriErrBadBasePath.

Description

Static factory constructor. This creates a CUri16 object that is an absolute uri resulting from a reference uri being resolved against a base uri.

Post-Condition

A fully constructed and initialized CUri16 object. Construction and Destruction

Parameters

const TUriC16 &aBaseUri

A referece to the parsed base uri.

const TUriC16 &aRefUri

A referece to the parsed reference uri.

Return value

CUri16 *

A pointer to the newly created CUri16 object.


Uri()

Interface status: deprecatedDeprecated in 9.1

IMPORT_C const TUriC16 &Uri() const;

Description

Provides a reference to the parsed uri. Allows access to the non-modifying API for TUriC16.

Return value

const TUriC16 &

A const reference to the parsed uri object.


SetComponentL()

Interface status: deprecatedDeprecated in 9.1

IMPORT_C void SetComponentL(const TDesC16 &aData, TUriComponent aComponent);

Pre-Condition

Object is fully constructed.

Description

Sets the specified component in the uri. 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.

Post-Condition

The uri has the specified component set to the new value.

Parameters

const TDesC16 &aData

A descriptor pointer to the new value for the uri component.

TUriComponent aComponent

An enum specifying the component to be set.


RemoveComponentL()

Interface status: deprecatedDeprecated in 9.1

IMPORT_C void RemoveComponentL(TUriComponent aComponent);

Pre-Condition

Object is fully constructed.

Description

Removes the specified component from the uri. If the component does not exist then this function does nothing.

Post-Condition

The uri is updated to exclude the specified component.

Parameters

TUriComponent aComponent

An enum specifying the component to be removed.

Terms and conditions of use of the material