CRsfwMountStore Class Reference
class CRsfwMountStore : public CBase |
Maintain permanent storage of mount configuration entries
mountstore.lib
- Since
- Series 60 3.1
Constructor & Destructor Documentation
~CRsfwMountStore()
IMPORT_C | ~CRsfwMountStore | ( | ) | [virtual] |
Member Functions Documentation
AddEntryL(CRsfwMountEntry *)
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 *)
ClearRepositoryL()
void | ClearRepositoryL | ( | ) | [private] |
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 *)
GetDriveLettersL(TDriveList &)
IMPORT_C void | GetDriveLettersL | ( | TDriveList & | aDriveList | ) | |
Gets remote drive letters of all mount configurations stored in Central Repository (in correct order)
GetNamesL(CDesC16Array *)
Gets a list of friendly names of all mount configurations stored in Central Repository
HandleNotifyError(TUint32, TInt, CCenRepNotifyHandler *)
HandleNotifyGeneric(TUint32)
void | HandleNotifyGeneric | ( | TUint32 | aId | ) | [private] |
LoadEntriesL()
IMPORT_C void | LoadEntriesL | ( | ) | |
(Re)loads the mount configurations into memory from the repository.
LookupEntryByDriveL(TChar)
Finds the configuration configuration entry by drive letter.
LookupEntryByNameL(const TDesC &)
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] |
NewL(MRsfwMountStoreObserver *)
Two-phased constructor. At the construction phase, all mount configurations are loaded into memory (that is, LoadEntries() is called).
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
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 *)
SynchronizeIndexesL()
void | SynchronizeIndexesL | ( | ) | [private] |
Member Data Documentation
TBool
iCenRepChanged
TBool
| iCenRepChanged | [private] |
CCenRepNotifyHandler * iCenRepNotifyHandler
RPointerArray< CRsfwMountEntry > iMountEntries
MRsfwMountStoreObserver * iMountStoreObserver
TBool
iReceivingCenRepNotifications
TBool
| iReceivingCenRepNotifications | [private] |
CRepository * iRepository
CRepository * | iRepository | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.