MDiscovererObserver Class Reference

class MDiscovererObserver
Since
7.0 Responsible for managing the registry (adding and removing entries).

Member Functions Documentation

DiscoveriesBegin()

voidDiscoveriesBegin()[pure virtual]
Intended Usage : Pure virtual method used by the CDiscoverer class to signal that a discovery session is starting. Error Condition : None.
Since
7.0
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
Discovery start is noted, and any appropriate action for the observer is completed.

DiscoveriesComplete(TBool, TPluginProcessingTypeIdentifier)

voidDiscoveriesComplete(TBoolaSuccessful,
TPluginProcessingTypeIdentifieraProcessingType
)[pure virtual]
Intended Usage : Pure virtual method used by the CDiscoverer class to signal that a discovery session is complete. Error Condition : None.
Since
7.0
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
Discovery completion is noted, and any appropriate action for the observer is completed.

Parameters

TBool aSuccessfulETrue indicates the scan completed successfully, EFalse, that the scan was only partial.
TPluginProcessingTypeIdentifier aProcessingTypeindicates the type of processing for plugins for ensuring that plugins are not processed multiple times during start-up phase

DriveReinstatedL(TDriveUnit)

voidDriveReinstatedL(TDriveUnitaDrive)[pure virtual]
Intended Usage :Pure virtual method used by the CDiscoverer class to notify the observer that a drive letter has become available for use. Error Condition : None.
Since
7.0 :
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
Drive removal is noted, and any appropriate action for the observer is completed. E.g. The registered Interface Implementation Collections stored upon the specified drive are again made available for use.

Parameters

TDriveUnit aDriveThe drive identifier.

DriveRemovedL(TDriveUnit)

voidDriveRemovedL(TDriveUnitaDrive)[pure virtual]
Intended Usage :Pure virtual method used by the CDiscoverer class to notify the observer that a drive letter is no longer available for use. Error Condition : Leaves with an error code.
leave
Depends on implementation
Since
7.0 :
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
Drive removal is noted, and any appropriate action for the observer is completed. E.g. The registered Interface Implementation Collectionss stored upon the specified drive are no longer available for use.

Parameters

TDriveUnit aDriveThe drive identifier.

IsAnyDllRegisteredWithDriveL(const TDriveUnit)

TBool IsAnyDllRegisteredWithDriveL(const TDriveUnitaDrive)const [pure virtual]

Parameters

const TDriveUnit aDrive

LanguageChangedL(TBool &)

voidLanguageChangedL(TBool &aLanguageChanged)[pure virtual]
Intended Usage :Pure virtual method used by the CDiscoverer class to notify the observer that the language switch notifier has been activated. The observer should instruct the notification object how to proceed. Error Condition : Leaves with an error code.
leave
Depends on implementation
Since
9.3 :
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
The CRegistryData will have its iLanguageChanged flag set to True when language switch happens.

Parameters

TBool & aLanguageChangedthe flag returned to indicate whether language downgrade path is changed.

NotifiedWithErrorCode(TInt)

TBool NotifiedWithErrorCode(TIntaError)[pure virtual]
Intended Usage :Pure virtual method used by the CDiscoverer class to notify the observer 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
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
The status code should be used by the observer to instruct the notifier to cease recieving notifications or not.

Parameters

TInt aErrorThe error value recieved by the notifier.

RegisterDiscoveryL(const TDriveName &, CPluginBase *&, TBool)

voidRegisterDiscoveryL(const TDriveName &aDrive,
CPluginBase *&aDirEntry,
TBoolaAnyDllDiscovered
)[pure virtual]
Intended Usage : Pure virtual method used by the CDiscoverer class to register a discovery. Error Condition : Depends upon the implementation class.
leave
Implementation class dependent.
CRegistrar.
Since
9.1
Pre-condition
The MDiscovererObserver must be fully constructed, and capable of accepting discoveries for registration.
Post-condition
Discovery is registered.

Parameters

const TDriveName & aDrivethe drive containing this entry
CPluginBase *& aDirEntryA reference to the Discovered directory entry.
TBool aAnyDllDiscoveredA flag to tell if any Dll is discovered in the drive.

SetDiscoveryFlagL(const TDriveUnit &)

voidSetDiscoveryFlagL(const TDriveUnit &aDrive)[pure virtual]

Parameters

const TDriveUnit & aDrive