#include <mw/rsfwmountman.h>
class CRsfwMountMan : public CBase |
Public Member Functions | |
---|---|
virtual | ~CRsfwMountMan() |
IMPORT_C void | AddMountEntryL(CRsfwMountEntry *) |
IMPORT_C TInt | CancelRemoteTransfer(const TDesC &) |
IMPORT_C void | DeleteMountEntryL(const TDesC &) |
IMPORT_C void | DeleteMountEntryL(TChar) |
IMPORT_C void | EditMountEntryL(CRsfwMountEntry *) |
IMPORT_C TInt | GetAllDrivesL(TDriveList &) |
IMPORT_C TInt | GetMountInfo(TChar, TRsfwMountInfo &) |
IMPORT_C void | GetMountNamesL(CDesC16Array *) |
IMPORT_C TInt | GetRemoteMountListL(TDriveList &) |
IMPORT_C TBool | IsAppOnBlackList(TUid) |
IMPORT_C const CRsfwMountEntry * | MountEntryL(const TDesC &) |
IMPORT_C const CRsfwMountEntry * | MountEntryL(TChar) |
IMPORT_C CRsfwMountMan * | NewL(TUint, MRsfwMountManObserver *) |
IMPORT_C TInt | RefreshDirectory(const TDesC &) |
IMPORT_C TInt | SetMountConnectionState(TChar, TUint) |
IMPORT_C TInt | SetMountConnectionStateBlind(TChar, TUint) |
Class for managing mounts to remote file repositories
IMPORT_C void | AddMountEntryL | ( | CRsfwMountEntry * | aMountEntry | ) |
Adds a mount configuration entry in the configurations and mounts the drive in the File Server. If the drive letter item is not set in the configuration, a free letter will be allocated. Then the EMountEntryItemDrive value in aMountEntry will be changed. The EMountEntryItemIndex item of aMountEntry is used for positioning the entry in a specific order in the configuration database (the index itself is not stored)
Parameter | Description |
---|---|
aMountEntry | mount configuration entry the ownership of the pointer is transferred to CRsfwMountMan |
Returns: nothing
IMPORT_C void | DeleteMountEntryL | ( | const TDesC & | aName | ) |
Deletes a mount entry from the configurations and unmounts the drive. Nothing is done if the entry does not exist.
Parameter | Description |
---|---|
aName | name |
Returns: nothing
IMPORT_C void | DeleteMountEntryL | ( | TChar | aDriveLetter | ) |
Deletes a mount entry from the configurations and unmounts the drive. Nothing is done if the entry does not exist.
Parameter | Description |
---|---|
aDriveLetter | drive letter |
Returns: nothing
IMPORT_C void | EditMountEntryL | ( | CRsfwMountEntry * | aMountEntry | ) |
Changes a mount configuration entry in the configurations
Parameter | Description |
---|---|
aMountEntry | mount configuration entry the ownership of the pointer is transferred to CRsfwMountMan |
Returns: nothing
IMPORT_C TInt | GetAllDrivesL | ( | TDriveList & | aDriveList | ) | const |
Gets a list of all drives as seen by the File Server
Returns drive letters. Letters for local drives are in the front of the list Letters for remote drives in order defined in CenRep The number of the drives is the same as the length of the list
Parameter | Description |
---|---|
aDriveList | returned drive list |
Returns: number of remote drives
IMPORT_C TInt | GetMountInfo | ( | TChar | aDriveLetter, |
TRsfwMountInfo & | aMountInfo | |||
) | const |
Gets mount information for an active remote drive.
The information consists of static configuration information and status information (such as strongly or weakly connected). Note that if the drive is not atctive this function will return -1, you need to use MountEntryL to get just the static configuration information
Parameter | Description |
---|---|
aDriveLetter | drive letter of the mount |
aMountInfo | returned information |
Returns: error code
IMPORT_C void | GetMountNamesL | ( | CDesC16Array * | aNames | ) | const |
Returns a list of friendly names of all mount configurations in the mount configuration repository. The entries are returned in the order that they appear in the repository.
Parameter | Description |
---|---|
aNames | friendly names |
Returns: nothing
IMPORT_C TInt | GetRemoteMountListL | ( | TDriveList & | aDriveList | ) | const |
Gets a list of all remote drives as seen by the File Server
The list contains the letters of the remote drives. Letters for remote drives in order defined in CenRep The number of the drives is the same as the length of the list
Parameter | Description |
---|---|
aDriveList | returned drive list |
Returns: number of remote drives
IMPORT_C const CRsfwMountEntry * | MountEntryL | ( | const TDesC & | aName | ) | const |
Gets the mount configuration entry having the given friendly name. The caller must make sure that the name is unique.
Returns: a pointer to the configuration entry or NULL if not found
IMPORT_C const CRsfwMountEntry * | MountEntryL | ( | TChar | aDriveLetter | ) | const |
Gets the mount configuration entry for the given drive letter.
Parameter | Description |
---|---|
aDriveLetter | drive letter |
Returns: a pointer to the configuration entry or NULL if not found
IMPORT_C CRsfwMountMan * | NewL | ( | TUint | aDefaultFlags, |
MRsfwMountManObserver * | aMountManObserver | |||
) | [static] |
Two-phased constructor.
Parameter | Description |
---|---|
aDefaultFlags | must be set to KMountFlagInteractive if the user is to be prompted during the mount procedure. Otherwise the parameter can be set to zero. |
Returns: pointer to the created CRsfwMountMan object instance
Refresh a remote directory
Ensures that contents of a remote directory are up to date. Synchronous variant deletes the currently cached version. Note that this function intentionally does not return directory contents. All data should be read through the File Server instead.
Returns: KErrArgument Path refers to a file KErrNotFound path is not found from cache
Sets the connection state of a mount for an active remote drive
Parameter | Description |
---|---|
aDriveLetter | drive letter of the mount |
aConnectionState | The following connection states have been defined: KMountStronglyConnected = strongly connected state KMountWeaklyConnected = weakly connected state KMountNotConnected = disconnected state |
Returns: error code
Sets the connection state of a mount for an active remote drive sends a bling request, does not wait for reply
Parameter | Description |
---|---|
aDriveLetter | drive letter of the mount |
aConnectionState | The following connection states have been defined: KMountStronglyConnected = strongly connected state KMountWeaklyConnected = weakly connected state KMountNotConnected = disconnected state |
Returns: error code