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 voidAddEntryL(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 * aMountEntrymount configuration entry - the ownership of the pointer is transferred to CMountStore

AddToRepositoryL(const CRsfwMountEntry *)

voidAddToRepositoryL(const CRsfwMountEntry *aMountEntry)[private]

Parameters

const CRsfwMountEntry * aMountEntry

ClearRepositoryL()

voidClearRepositoryL()[private]

CommitL()

IMPORT_C voidCommitL()

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 *)

voidConstructL(MRsfwMountStoreObserver *aMountStoreObserver)[private]

Parameters

MRsfwMountStoreObserver * aMountStoreObserver

GetDriveLettersL(TDriveList &)

IMPORT_C voidGetDriveLettersL(TDriveList &aDriveList)

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

Parameters

TDriveList & aDriveListreturned information

GetNamesL(CDesC16Array *)

IMPORT_C voidGetNamesL(CDesC16Array *aNames)

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

Parameters

CDesC16Array * aNamesreturned information

HandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)

voidHandleNotifyError(TUint32aId,
TIntaError,
CCenRepNotifyHandler *aHandler
)[private]

Parameters

TUint32 aId
TInt aError
CCenRepNotifyHandler * aHandler

HandleNotifyGeneric(TUint32)

voidHandleNotifyGeneric(TUint32aId)[private]

Parameters

TUint32 aId

LoadEntriesL()

IMPORT_C voidLoadEntriesL()

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

LookupEntryByDriveL(TChar)

IMPORT_C const CRsfwMountEntry *LookupEntryByDriveL(TCharaDriveLetter)

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 & aNamefriendly 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 * aMountStoreObserverstore change notification handler

ReloadEntriesL()

voidReloadEntriesL()[private]

RemoveEntryL(const TDesC &)

IMPORT_C voidRemoveEntryL(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 voidRemoveEntryL(const TCharaDriveLetter)

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 aDriveLettername of the entry to be removed

RemoveFromRepositoryL(const CRsfwMountEntry *)

voidRemoveFromRepositoryL(const CRsfwMountEntry *aMountEntry)[private]

Parameters

const CRsfwMountEntry * aMountEntry

SynchronizeIndexesL()

voidSynchronizeIndexesL()[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]