CRegistryData::CDriveData Class Reference

class CRegistryData::CDriveData : public CBase

This class manages the entire data of a registered dll.

Inherits from

  • CRegistryData::CDriveData

Constructor & Destructor Documentation

CDriveData(TDriveUnit, CRegistryData *)

CDriveData(TDriveUnitaDrive,
CRegistryData *aParent
)[private]

Constructor for CDriveData

Parameters

TDriveUnit aDriveInformation on this drive
CRegistryData * aParentA pointer to the parent registry data

~CDriveData()

~CDriveData()

Destructor of CDriveData

Member Functions Documentation

AddL(const CDllData *)

voidAddL(const CDllData *aDll)
Adds the specified CDllData to this drive data in the registry.
Pre-condition
This object is fully constructed.
Post-condition
aDll is added to the list of dll on this drive.

Parameters

const CDllData * aDllThe Dll to add to this drive

ConstructL()

voidConstructL()[private]
Standard second phase construction function.
Pre-condition
This object is fully constructed.
Post-condition
This object is fully constructed and initialized.

DoInternalizeL(RFs &, const TDesC &)

voidDoInternalizeL(RFs &aFs,
const TDesC &aFileName
)[private]
The method internalizes the data from aRegistryStream.
leave
KErrNoMemory
leave
Some other system-wide error codes as well.

Parameters

RFs & aFs
const TDesC & aFileNameThe ECOM registry file name.

ExternalizeL(RFs &, const TDesC &)

voidExternalizeL(RFs &aFs,
const TDesC &aDatFileName
)
Writes out the state of this CDriveData to file.
Pre-condition
This object is fully constructed.

Parameters

RFs & aFsA handle to an open file server session.
const TDesC & aDatFileNamethe dat file to persist to

FindDllIndex(const TUid)

TInt FindDllIndex(const TUidaDllUid)const
Returns the index of the DLL with this Uid in the Dll list.
Pre-condition
This object is fully constructed.

Parameters

const TUid aDllUidthe UID of to be found DLL.

InternalizeL(RFs &, const TDesC &)

voidInternalizeL(RFs &aFs,
const TDesC &aDatFileName
)
Restores the state of this CDriveData from file.
Pre-condition
This object is fully constructed.
Post-condition
The state of this object is restored to that specified in the file on this drive.

Parameters

RFs & aFsA handle to an open file server session.
const TDesC & aDatFileNamethe dat file name to internalize from

NewLC(TDriveUnit, CRegistryData *)

CDriveData *NewLC(TDriveUnitaDrive,
CRegistryData *aParent
)[static]
Creates a new CDriveData object and places it on the CleanupStack
Post-condition
This object is fully constructed and initialized and on the CleanupStack.

Parameters

TDriveUnit aDriveInformation on this drive
CRegistryData * aParentA pointer to the parent registry data

Member Data Documentation

TDll * iDllList

TDll *iDllList

The list of Interface Implementation Collections upon the drive

TDriveUnit iDrive

TDriveUnit iDrive

A reference to the drive.

TBool iDriveChanged

TBool iDriveChanged

indicate the drive has change

CRegistryData * iParent

CRegistryData *iParent

The registry data.

TBool iRegistryChanged

TBool iRegistryChanged

indiacate the registry data on the drive has changed