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

Public Member Functions
IMPORT_C voidExportMountEntryL(const CRsfwMountEntry &, TBool, TDes &)
IMPORT_C voidImportMountEntryFromStreamL(RReadStream &, TInt, CRsfwMountEntry **)
IMPORT_C voidImportMountEntryL(const TDesC &, CRsfwMountEntry **)
IMPORT_C TBoolIsDriveAddressValid(const TDesC8 &)
IMPORT_C TBoolIsFriendlyNameValid(const TDesC &)
Private Member Functions
const TDesC &GetKeyWord(TInt)
voidParseLineL(const TDesC &, CRsfwMountEntry &)

Member Functions Documentation

ExportMountEntryL(const CRsfwMountEntry &, TBool, TDes &)

IMPORT_C voidExportMountEntryL(const CRsfwMountEntry &aEntry,
TBoolaSendCredentials,
TDes &aBuf
)[static]

Exports a mount configuration to a descriptor.

Parameters

const CRsfwMountEntry & aEntrymount entry to be exported
TBool aSendCredentialscontrols whether username/passwd is exported
TDes & aBufreturned descriptor

GetKeyWord(TInt)

const TDesC &GetKeyWord(TIntaIndex)[private, static]

Parameters

TInt aIndex

ImportMountEntryFromStreamL(RReadStream &, TInt, CRsfwMountEntry **)

IMPORT_C voidImportMountEntryFromStreamL(RReadStream &aReadStream,
TIntaSize,
CRsfwMountEntry **aEntry
)[static]

Imports a mount configuration from a stream

Parameters

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

ImportMountEntryL(const TDesC &, CRsfwMountEntry **)

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

Imports a mount configuration from a descriptor

Parameters

const TDesC & aMsgdescriptor to be imported memory is reserved by this function, but ownership transferred to the caller
CRsfwMountEntry ** aEntryreturned mount entry

IsDriveAddressValid(const TDesC8 &)

IMPORT_C TBoolIsDriveAddressValid(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 TBoolIsFriendlyNameValid(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 & aFriendlyNameremote drive friendly name

ParseLineL(const TDesC &, CRsfwMountEntry &)

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

Parameters

const TDesC & aLine
CRsfwMountEntry & aEntry