#include <uri8.h>
Link against: inetprotutil.lib
class CUri8 : public CBase |
Public Member Functions | |
---|---|
~CUri8() | |
IMPORT_C CUri8 * | CreateFileUriL(const TDesC &, TUint) |
IMPORT_C CUri8 * | CreatePrivateFileUriL(const TDesC &, TDriveNumber, TInt) |
IMPORT_C CUri8 * | NewL(const TUriC8 &) |
IMPORT_C CUri8 * | NewL() |
IMPORT_C CUri8 * | NewLC(const TUriC8 &) |
IMPORT_C CUri8 * | NewLC() |
IMPORT_C void | RemoveComponentL(TUriComponent) |
IMPORT_C CUri8 * | ResolveL(const TUriC8 &, const TUriC8 &) |
IMPORT_C void | SetComponentL(const TDesC8 &, TUriComponent) |
IMPORT_C const TUriC8 & | Uri() |
Dependencies : CBase, TUriC8. 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 8-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>'.
Parameters | |
---|---|
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. |
IMPORT_C CUri8 * | 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>'.
Parameters | |
---|---|
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. |
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.
Parameters | |
---|---|
aUri | A reference to a parsed uri object. |
IMPORT_C CUri8 * | NewL | ( | ) | [static] |
Static factory constructor. Uses two phase construction and leaves nothing on the CleanupStack. Creates a uri object which is empty.
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.
Parameters | |
---|---|
aUri | A reference to a parsed uri object. |
IMPORT_C CUri8 * | 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.
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.
Parameters | |
---|---|
aComponent | An enum specifying the component to be removed. |
Static factory constructor. This creates a CUri8 object that is an absolute uri resulting from a reference uri being resolved against a base uri.
Parameters | |
---|---|
aBaseUri | A referece to the parsed base uri. |
aRefUri | A referece to the parsed reference uri. |
Leave Codes | |
---|---|
KUriErrBadBasePath | if the base path is not an absolute path and not empty. |
IMPORT_C void | SetComponentL | ( | const TDesC8 & | aData, |
TUriComponent | aComponent | |||
) |
Intended Usage : 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.
Parameters | |
---|---|
aData | A descriptor pointer to the new value for the uri component. |
aComponent | An enum specifying the component to be set. |