RInetUri Class Reference

#include <mw/ineturi.h>

Link against: ineturilist.lib

class RInetUri
Public Member Functions
IMPORT_C voidClose()
IMPORT_C voidCreateL(const TDesC8 &, TServiceType, TListType)
IMPORT_C const TDesC8 &FavouriteName()
IMPORT_C TListTypeListType()
IMPORT_C TPermissionPermission()
IMPORT_C TServiceTypeServiceType()
IMPORT_C voidSetFavouriteNameL(const TDesC8 &)
IMPORT_C voidSetListType(TListType)
IMPORT_C const CUri8 &Uri()

Detailed Description

RInetUri represents a handle to the URI and its associated URI properties. A URI must always be associated with a service type and a list type. Service type defines the purpose for which the URI is added (for example, Browser, WAP Push, Push EMail, and so on), and the list type defines the permission associated with the URI (for example, whitelist or blacklist).

Constructor & Destructor Documentation

RInetUri ( )


A default RInetUri constructor.

Member Function Documentation

Close ( )

IMPORT_C voidClose()

Closes the RInetUri handle.

CreateL ( const TDesC8 &, TServiceType, TListType )

IMPORT_C voidCreateL(const TDesC8 &aUri,

Creates and opens a new URI object handle, given a URI and its associated service type and list type. The URI will be syntax normalised before creation. All the URIs will be created with read-write permission. The permission cannot be changed. The service type cannot be modified later.

aUriURI descriptor object
aServiceTypeThe service type associated with the URI. For possible values, see InetUriList::TServiceType
aListTypeThe list type associated with the URI

FavouriteName ( )

IMPORT_C const TDesC8 &FavouriteName()const

Returns the favourite name of the URI. Returns KNullDesC8 if no favourite name is set.

Return Value
Favourite name of URI

ListType ( )

IMPORT_C TListTypeListType()const

Returns the list type associated with the URI.

Return Value
list type of the URI

Permission ( )

IMPORT_C TPermissionPermission()const

Returns the permission associated with the URI, that is, read-only or read-write.

Return Value
list type

ServiceType ( )

IMPORT_C TServiceTypeServiceType()const

Returns the service type associated with the URI.

Return Value
service type

SetFavouriteNameL ( const TDesC8 & )

IMPORT_C voidSetFavouriteNameL(const TDesC8 &aFavouriteName)

Set the favourite name associated with the URI.

aFavouriteNameFavourite name of the URI

SetListType ( TListType )

IMPORT_C voidSetListType(TListTypeaListType)

Set the new list type for the URI.

aListTypeNew list type to be associated with the URI

Uri ( )

IMPORT_C const CUri8 &Uri()const

Returns the CUri8 type object.

Return Value
Reference to URI