CRegistrar Class Reference
class CRegistrar : public CBase |
- Since
- 7.0 Responsible for managing Interface Implementaion Collection registration (adding and removing entries).
Private Member Functions |
---|
| CRegistrar(CRegistryData &, MRegistrarObserver &, RFs &) |
void | ConstructL() |
void | DiscoveriesBegin() |
void | DiscoveriesComplete(TBool, TPluginProcessingTypeIdentifier) |
void | DriveReinstatedL(TDriveUnit) |
void | DriveRemovedL(TDriveUnit) |
void | GetResourceFormatVersionL(RResourceReader &, TInt &) |
void | InitialiseEvent() |
TBool
| IsAnyDllRegisteredWithDriveL(const TDriveUnit) |
void | LanguageChangedL(TBool &) |
TBool
| NotifiedWithErrorCode(TInt) |
void | ParseL(CPluginBase *&, CRegistryData::CDllData &) |
void | ParseRegistrationDataL(CPluginBase *&, const TDriveUnit &, TBool, TInt, CRegistryData::CDriveData *) |
void | RegisterDiscoveryL(const TDriveName &, CPluginBase *&, TBool) |
void | SetDiscoveryFlagL(const TDriveUnit &) |
TRegistrarState
| State() |
TBool
| UpdateRegistryL(TDriveUnit &, TUid, const TTime &, TInt &) |
Constructor & Destructor Documentation
CRegistrar(CRegistryData &, MRegistrarObserver &, RFs &)
Intended Usage : Standardised default c'tor Error Condition : None
- Since
- 7.0
- Pre-condition
- None
- Post-condition
- CRegistrar is fully constructed
Parameters
CRegistryData & aRegistry | A reference to the registry data management class. |
MRegistrarObserver & aRegistrarObserver | A reference to the registrar observer class. |
RFs & aFs | A reference to an connected file server session. |
~CRegistrar()
Intended Usage : Standard default d'tor Error Condition : None
- Since
- 7.0
- Pre-condition
- None
- Post-condition
- CRegistrar is totally destroyed
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
Intended Usage : Standardised 2nd, (Initialisation) phase of two phase construction. Error Condition : None
- leave
- None
- Since
- 7.0
- Pre-condition
- CRegistrar is fully constructed.
- Post-condition
- CRegistrar is fully initialised.
Disable(TUid)
Intended Usage :Stop the specified interface implementation from being used. Error Condition : KErrDisableFailed The disable call failed.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- The interface implementation identified by the UID is no longer available for use.
Parameters
TUid aImplementationUid | The Interface Implementation to disable. |
DiscoveriesBegin()
void | DiscoveriesBegin | ( | ) | [private] |
Intended Usage :Overload of the
MDiscovererObserver callback method. The cue that a registry update is about to occur. Error Condition : None.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- The Registry data manager has been informed that its internal data is out of date.
DiscoveriesComplete(TBool, TPluginProcessingTypeIdentifier)
Intended Usage :Overload of the
MDiscovererObserver callback method. Error Condition : None.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- The current registry data and the internal access indexes have been rebuilt.
Parameters
TBool aSuccessful | ETrue indicates the scan completed successfully, EFalse, that the scan was only partial. |
TPluginProcessingTypeIdentifier aProcessingType | indicates the type of processing for plugins for ensuring that plugins are not processed multiple times during start-up phase |
DriveReinstatedL(TDriveUnit)
Intended Usage :Overload of the
MDiscovererObserver callback method. The cue to signal the registry that the registered Interface Implementation Collections stored upon the specified drive are again available for use. Error Condition : Leaves with an error code.
- leave
- KErrNoMemory, KErrRegistrationFailed.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed.
- Post-condition
- The registered Interface Implementation Collections stored upon the specified drive are again made available for use.
DriveRemovedL(TDriveUnit)
Intended Usage :Overload of the
MDiscovererObserver callback method. The cue to signal the registry that the registered Interface Implementation Collections stored upon the specified drive should no longer available for use. Error Condition : Leaves with an error code.
- leave
- KErrNoMemory
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed.
- Post-condition
- The registered Interface Implementation Collections stored upon the specified drive are no longer available for use.
Enable(TUid)
Intended Usage :Allow the specified Interface Implementation to be used. Error Condition : KErrEnableFailed The enable call failed.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- The interface implementation identified by the UID is made available for use.
Parameters
TUid aImplementationUid | The Interface Implementation to enable. |
GetResourceFormatVersionL(RResourceReader &, TInt &)
void | GetResourceFormatVersionL | ( | RResourceReader & | aReader, |
| TInt & | aResourceFormatVersion |
| ) | [private] |
Intended Usage : Get resource format version from the resource file
- Pre-condition
- CRegistrar is fully constructed.
Parameters
RResourceReader & aReader | The resource file reader. |
TInt & aResourceFormatVersion | The resource file format version |
InitialiseEvent()
void | InitialiseEvent | ( | ) | [private] |
Intended Usage : change the state during the CRegistrar's construction.
- Post-condition
- : state is changed to EReg_StartupInProgess.
InstallBurEventCallBack(const TCallBackWithArg &)
Install a callback function to receive notification of BUR status changes. Note that the callback is passed along to CDsicoverer which does the BUR monitoring.
InstallSwiEventCallBack(const TCallBackWithArg &)
Install a callback function to receive notification of SWI status changes. Note that the callback is passed along to CDsicoverer which does the SWI monitoring.
IsAnyDllRegisteredWithDriveL(const TDriveUnit)
LanguageChangedL(TBool &)
void | LanguageChangedL | ( | TBool & | aLanguageChanged | ) | [private] |
NewL(CRegistryData &, MRegistrarObserver &, RFs &)
Intended Usage : Standardised safe construction which leaves nothing on the cleanup stack. Error Condition : Cannot fully construct because of memory limitations.
- leave
- KErrNoMemory
- Since
- 7.0
- Pre-condition
- None
- Post-condition
- CRegistrar is fully constructed, and initialised.
Parameters
CRegistryData & aRegistry | A reference to the registry data management class. |
MRegistrarObserver & aRegistrarObserver | A reference to the registrar observer class. |
RFs & aFs | A reference to an connected file server session. |
NotifiedWithErrorCode(TInt)
TBool
| NotifiedWithErrorCode | ( | TInt | aError | ) | [private] |
Intended Usage :Overload of the
MDiscovererObserver callback method. The notification that the notifier has been activated with an error status code. The observer should instruct the notification object how to proceed. Error Condition : None.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed.
- Post-condition
- The status code should be used by the observer to instruct the notifier to cease recieving notifications or not.
Parameters
TInt aError | The error value recieved by the notifier. |
ParseL(CPluginBase *&, CRegistryData::CDllData &)
Intended Usage : Parsing the resource file information associated with an Interface Implementation Collection for entry into the registry information. Error Condition : Parsing fails due to a lack of memory, or a parsing error.
- leave
- KErrNoMemory
- Since
- 9.1
- Pre-condition
- CRegistrar is fully constructed.
- Post-condition
- The resource file has been parsed and the data added to 'aDll'.
ParseRegistrationDataL(CPluginBase *&, const TDriveUnit &, TBool, TInt, CRegistryData::CDriveData *)
ProcessSSAEventL(TStartupStateIdentifier)
RegisterDiscoveryL(const TDriveName &, CPluginBase *&, TBool)
Intended Usage :Overload of the
MDiscovererObserver callback method. Adds the specified Interface Implementation Collection to the registry. Error Condition : Leaves with an error code.
- leave
- KErrNoMemory, KErrRegistrationFailed.
- Since
- 9.1 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- The Interface Implementation Collection identified by the directory entry is registered.
Parameters
const TDriveName & aDrive | |
CPluginBase *& aDirEntry | The directory entry to register. |
TBool aAnyDllDiscovered | A flag to tell if any DLL is discovered in the drive. |
Resume()
Intended Usage : Overload of the
MBackupNotifierObserver method. Allow registration of new Interface Implementation Collections to begin again. Error Condition : KErrResumeFailed The registration resume failed.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- Registration suspension is cancelled.
SetDiscoveryFlagL(const TDriveUnit &)
void | SetDiscoveryFlagL | ( | const TDriveUnit & | aDriveUnit | ) | [private] |
Suspend()
Intended Usage : Overload of the
MBackupNotifierObserver method. Suspend registration of new Interface Implementation Collections. Error Condition : KErrSuspendFailed The registration suspension failed.
- Since
- 7.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- Registration is suspended.
UpdateRegistryL(TDriveUnit &, TUid, const TTime &, TInt &)
Intended Usage :Checks if the Registry must be updated or not. Error Condition : Leaves with an error code.
- leave
- KErrNoMemory, KErrRegistrationFailed.
- Since
- 9.0 :
- Pre-condition
- CRegistrar is fully constructed
- Post-condition
- No change to object..
Parameters
TDriveUnit & driveUnit | |
TUid aDllUid | The interface implementation collection data to add. CRegistryData takes ownership of this object so it should not be on the CleanupStack. |
const TTime & aModified | The date of the last modification of the Interface Implementation Collection. |
TInt & aRegistryDriveIndex | An output providing index within the registry data for the branch that the registry entry was found within. |
Member Enumerations Documentation
Enum TRegistrarState
Enumerators
EReg_Undefined |
Undefined state
|
EReg_StartupInProgess |
Internalization/Externalization and Discovery in progress
|
EReg_StartupComplete |
Internalization/Externalization and Discovery complete
|
Member Data Documentation
CBackupNotifier * iBackupNotifier
The owned backup/restore notification handling class
CEComCachedDriveInfo * iCachedDriveInfo
CDiscoverer * iDiscoverer
The owned discovery notification handling class
RFs & iFs
A reference to a conncted file session
MRegistrarObserver & iRegistrarObserver
The reference to the observer of the Registrar for change notification.
CRegistryData & iRegistry
The reference to the registry data manager class
TRegistrarState
iState
The current state of this object
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.