RsfwMountUtils Class Reference

class RsfwMountUtils

ImportMountEntry is used from smart messaging bio control. ExportMountEntryL is used from general settings plugin. Both functions call GetKeyWord() , so only common thing are actually the keywords used Note that because this is only used for smart messaging, currently exports and imports only mount name and address

Member Functions Documentation

ExportMountEntryL(const CRsfwMountEntry &, TBool, TDes &)

IMPORT_C void ExportMountEntryL ( const CRsfwMountEntry & aEntry,
TBool aSendCredentials,
TDes & aBuf
) [static]

Exports a mount configuration to a descriptor.

Parameters

const CRsfwMountEntry & aEntry mount entry to be exported
TBool aSendCredentials controls whether username/passwd is exported
TDes & aBuf returned descriptor

GetKeyWord(TInt)

const TDesC & GetKeyWord ( TInt aIndex ) [private, static]

Parameters

TInt aIndex

ImportMountEntryFromStreamL(RReadStream &, TInt, CRsfwMountEntry **)

IMPORT_C void ImportMountEntryFromStreamL ( RReadStream & aReadStream,
TInt aSize,
CRsfwMountEntry ** aEntry
) [static]

Imports a mount configuration from a stream

Parameters

RReadStream & aReadStream stream data to be imported function assumes that the stream contains 8-bit data
TInt aSize data size
CRsfwMountEntry ** aEntry returned mount entry memory is reserved by this function, but ownership transferred to the caller

ImportMountEntryL(const TDesC &, CRsfwMountEntry **)

IMPORT_C void ImportMountEntryL ( const TDesC & aMsg,
CRsfwMountEntry ** aEntry
) [static]

Imports a mount configuration from a descriptor

Parameters

const TDesC & aMsg descriptor to be imported memory is reserved by this function, but ownership transferred to the caller
CRsfwMountEntry ** aEntry returned mount entry

IsDriveAddressValid(const TDesC8 &)

IMPORT_C TBool IsDriveAddressValid ( const TDesC8 & aDriveAddress ) [static]
Returns ETrue if the address (URL) for a remote drive is valid Used from MountEntry and the General Settings plugin
Since
S60 3.2

Parameters

const TDesC8 & aDriveAddress

IsFriendlyNameValid(const TDesC &)

IMPORT_C TBool IsFriendlyNameValid ( const TDesC & aFriendlyName ) [static]
Returns ETrue if the friendly name for a remote drive is valid Used from MountEntry and the General Settings plugin Currently just calls RFs::IsDriveNameValid() as the friendly name is stored to RFs::DriveName()
Since
S60 3.2

Parameters

const TDesC & aFriendlyName remote drive friendly name

ParseLineL(const TDesC &, CRsfwMountEntry &)

void ParseLineL ( const TDesC & aLine,
CRsfwMountEntry & aEntry
) [private, static]

Parameters

const TDesC & aLine
CRsfwMountEntry & aEntry