#include <uri16.h>
class CUri16 : public CBase |
Public Member Functions | |
---|---|
~CUri16() | |
IMPORT_C CUri16 * | CreateFileUriL(const TDesC &, TUint) |
IMPORT_C CUri16 * | CreatePrivateFileUriL(const TDesC &, TDriveNumber, TInt) |
IMPORT_C CUri16 * | NewL(const TUriC16 &) |
IMPORT_C CUri16 * | NewL() |
IMPORT_C CUri16 * | NewLC(const TUriC16 &) |
IMPORT_C CUri16 * | NewLC() |
IMPORT_C void | RemoveComponentL(TUriComponent) |
IMPORT_C CUri16 * | ResolveL(const TUriC16 &, const TUriC16 &) |
IMPORT_C void | SetComponentL(const TDesC16 &, TUriComponent) |
IMPORT_C const TUriC16 & | Uri() |
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.
Allocates and constructs a file URI object for a specified file.
If the file exists on a fixed drive, then the file URI takes the form: 'file://<drive-letter>/<filepath including filename>'.
If the file exists on a removable media drive, then the file URI takes the form: 'file://ext-media/<filepath including filename>'.
Parameter | Description |
---|---|
aFullFileName | A reference to a fully qualified filename |
aFlags | A flag to indicate if the file exists on a fixed drive or removable media drive. This is a TFileUriFlags value. |
Returns: A pointer to the newly created file URI (CUri16) object.
IMPORT_C CUri16 * | CreatePrivateFileUriL | ( | const TDesC & | aRelativeFileName, |
TDriveNumber | aDrive, | |||
TInt | aFlags = 0 | |||
) | [static] |
Allocates and constructs a file URI object for a file that is private to the application.
If the file exists on a fixed drive, then the file URI takes the form 'file://private/<drive-letter>/<filepath including filename>'.
If the file exists on a removable media drive, then the file URI takes the form 'file://private/ext-media/<filepath including filename>'.
Parameter | Description |
---|---|
aRelativeFileName | A reference to the filename relative to the application's private directory. |
aDrive | Drive number, if the private file stored on fixed drive, otherwise not used This is a TDriveNumber value |
aFlags | A flag to indicate if the file exists on a fixed drive or removable media drive. This is a TFileUriFlags value. |
Returns: A pointer to the newly created file URI (CUri16) object.
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.
Parameter | Description |
---|---|
aUri | A reference to a parsed uri object. |
Returns: A pointer to the newly created CUri16 object.
IMPORT_C CUri16 * | NewL | ( | ) | [static] |
Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates a uri object which is empty.
Returns: A pointer to the newly created CUri16 object.
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.
Parameter | Description |
---|---|
aUri | A reference to a parsed uri object. |
Returns: A pointer to the newly created CUri16 object.
IMPORT_C CUri16 * | NewLC | ( | ) | [static] |
Static factory constructor. Uses two phase construction and leaves a pointer to created object on the CleanupStack. Creates a uri object which is empty.
Returns: A pointer to the newly created CUri16 object.
IMPORT_C void | RemoveComponentL | ( | TUriComponent | aComponent | ) |
Removes the specified component from the uri. If the component does not exist then this function does nothing.
If host is removed, then userinfo and port components will also be removed.
Parameter | Description |
---|---|
aComponent | An enum specifying the component to be removed. |
Static factory constructor. This creates a CUri16 object that is an absolute uri resulting from a reference uri being resolved against a base uri.
Ownership of created CUri16 object is transferred to caller.
Parameter | Description |
---|---|
aBaseUri | A referece to the parsed base uri. |
aRefUri | A referece to the parsed reference uri. |
Returns: A pointer to the newly created CUri16 object.
IMPORT_C void | SetComponentL | ( | const TDesC16 & | aData, |
TUriComponent | aComponent | |||
) |
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.
The userinfo and port components can only be set if the host component is present. Setting these components without a host component present will have no effect on the uri.
Parameter | Description |
---|---|
aData | A descriptor pointer to the new value for the uri component. |
aComponent | An enum specifying the component to be set. |
IMPORT_C const TUriC16 & | Uri | ( | ) | const |
Provides a reference to the parsed uri. Allows access to the non-modifying API for TUriC16.
Returns: A const reference to the parsed uri object.