CRsfwMountStore Class Reference

class CRsfwMountStore : public CBase

Maintain permanent storage of mount configuration entries

mountstore.lib
Since
Series 60 3.1

Inherits from

Constructor & Destructor Documentation

CRsfwMountStore()

CRsfwMountStore ( )

~CRsfwMountStore()

IMPORT_C ~CRsfwMountStore ( ) [virtual]

Destructor.

Member Functions Documentation

AddEntryL(CRsfwMountEntry *)

IMPORT_C void AddEntryL ( CRsfwMountEntry * aMountEntry )
Adds a new mount configuration entry in the list of entries. If an entry with the same name already exists, that entry is replaced with the new entry. The entry is positioned among the existing entries according to the EMountEntryItemIndex value The drive letter in aMountEntry must be set before calling.
leave
KErrArgument drive letter not set
leave
KErrInUse all nine allowed remote drives are in use

Parameters

CRsfwMountEntry * aMountEntry mount configuration entry - the ownership of the pointer is transferred to CMountStore

AddToRepositoryL(const CRsfwMountEntry *)

void AddToRepositoryL ( const CRsfwMountEntry * aMountEntry ) [private]

Parameters

const CRsfwMountEntry * aMountEntry

ClearRepositoryL()

void ClearRepositoryL ( ) [private]

CommitL()

IMPORT_C void CommitL ( )

Saves the mount configuration entries permanently. This function must be called after changes have been made in the mount configuration entries in order to store the cahnges permanently.

ConstructL(MRsfwMountStoreObserver *)

void ConstructL ( MRsfwMountStoreObserver * aMountStoreObserver ) [private]

Parameters

MRsfwMountStoreObserver * aMountStoreObserver

GetDriveLettersL(TDriveList &)

IMPORT_C void GetDriveLettersL ( TDriveList & aDriveList )

Gets remote drive letters of all mount configurations stored in Central Repository (in correct order)

Parameters

TDriveList & aDriveList returned information

GetNamesL(CDesC16Array *)

IMPORT_C void GetNamesL ( CDesC16Array * aNames )

Gets a list of friendly names of all mount configurations stored in Central Repository

Parameters

CDesC16Array * aNames returned information

HandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)

void HandleNotifyError ( TUint32 aId,
TInt aError,
CCenRepNotifyHandler * aHandler
) [private]

Parameters

TUint32 aId
TInt aError
CCenRepNotifyHandler * aHandler

HandleNotifyGeneric(TUint32)

void HandleNotifyGeneric ( TUint32 aId ) [private]

Parameters

TUint32 aId

LoadEntriesL()

IMPORT_C void LoadEntriesL ( )

(Re)loads the mount configurations into memory from the repository.

LookupEntryByDriveL(TChar)

IMPORT_C const CRsfwMountEntry * LookupEntryByDriveL ( TChar aDriveLetter )

Finds the configuration configuration entry by drive letter.

Parameters

TChar aDriveLetter

LookupEntryByNameL(const TDesC &)

IMPORT_C const CRsfwMountEntry * LookupEntryByNameL ( const TDesC & aName )

Finds the mount configuration entry by friendly name. The ownership of the entry is not moved

Parameters

const TDesC & aName friendly name

MapDriveLetterToRecordIdL(const HBufC *)

TInt MapDriveLetterToRecordIdL ( const HBufC * drive ) [private]

Parameters

const HBufC * drive

NewL(MRsfwMountStoreObserver *)

IMPORT_C CRsfwMountStore * NewL ( MRsfwMountStoreObserver * aMountStoreObserver ) [static]

Two-phased constructor. At the construction phase, all mount configurations are loaded into memory (that is, LoadEntries() is called).

Parameters

MRsfwMountStoreObserver * aMountStoreObserver store change notification handler

ReloadEntriesL()

void ReloadEntriesL ( ) [private]

RemoveEntryL(const TDesC &)

IMPORT_C void RemoveEntryL ( const TDesC & aName )

Removes a mount configuration entry from the list of entries. Nothing is done if no entry with the name is found

Parameters

const TDesC & aName

RemoveEntryL(const TChar)

IMPORT_C void RemoveEntryL ( const TChar aDriveLetter )

Removes a mount configuration entry from the list of entries. Nothing is done if no entry with the drive letter is found.

Parameters

const TChar aDriveLetter name of the entry to be removed

RemoveFromRepositoryL(const CRsfwMountEntry *)

void RemoveFromRepositoryL ( const CRsfwMountEntry * aMountEntry ) [private]

Parameters

const CRsfwMountEntry * aMountEntry

SynchronizeIndexesL()

void SynchronizeIndexesL ( ) [private]

Member Data Documentation

TBool iCenRepChanged

TBool iCenRepChanged [private]

CCenRepNotifyHandler * iCenRepNotifyHandler

CCenRepNotifyHandler * iCenRepNotifyHandler [private]

RPointerArray< CRsfwMountEntry > iMountEntries

RPointerArray < CRsfwMountEntry > iMountEntries [private]

MRsfwMountStoreObserver * iMountStoreObserver

MRsfwMountStoreObserver * iMountStoreObserver [private]

TBool iReceivingCenRepNotifications

TBool iReceivingCenRepNotifications [private]

CRepository * iRepository

CRepository * iRepository [private]