CRegistryData::CDriveData Class Reference

class CRegistryData::CDriveData : public CBase

This class manages the entire data of a registered dll.

Inherits from

Constructor & Destructor Documentation

CDriveData(TDriveUnit, CRegistryData *)

CDriveData ( TDriveUnit aDrive,
CRegistryData * aParent
) [private]

Constructor for CDriveData

Parameters

TDriveUnit aDrive Information on this drive
CRegistryData * aParent A pointer to the parent registry data

~CDriveData()

~CDriveData ( )

Destructor of CDriveData

Member Functions Documentation

AddL(const CDllData *)

void AddL ( 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 * aDll The Dll to add to this drive

ConstructL()

void ConstructL ( ) [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 &)

void DoInternalizeL ( 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 & aFileName The ECOM registry file name.

ExternalizeL(RFs &, const TDesC &)

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

Parameters

RFs & aFs A handle to an open file server session.
const TDesC & aDatFileName the dat file to persist to

FindDllIndex(const TUid)

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

Parameters

const TUid aDllUid the UID of to be found DLL.

InternalizeL(RFs &, const TDesC &)

void InternalizeL ( 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 & aFs A handle to an open file server session.
const TDesC & aDatFileName the dat file name to internalize from

NewLC(TDriveUnit, CRegistryData *)

CDriveData * NewLC ( TDriveUnit aDrive,
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 aDrive Information on this drive
CRegistryData * aParent A 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