CDiscoverer::CDirChangeNotifier Class Reference

class CDiscoverer::CDirChangeNotifier : public CActive
Since
7.0 The notification object which watches the Interface Implementation Collection directories for any changes. When its RunL method is called, it notifies its owning CDiscoverer class object to re-scan the Interface Implementation Collection directories.

Inherits from

Constructor & Destructor Documentation

CDirChangeNotifier(CDiscoverer &, RFs &, const TDriveUnit &)

CDirChangeNotifier(CDiscoverer &aDiscoverer,
RFs &aFs,
const TDriveUnit &aDriveUnit
)

Parameters

CDiscoverer & aDiscoverer
RFs & aFs
const TDriveUnit & aDriveUnit

~CDirChangeNotifier()

~CDirChangeNotifier()[virtual]
Intended Usage : Standard default d'tor Error Condition : None
Since
7.0
Pre-condition
CDirChangeNotifier is fully constructed.
Post-condition
CDirChangeNotifier is totally destroyed

Member Functions Documentation

Activate()

voidActivate()
Intended Usage : Activate the notifier and attach it to the File session to watch the appropriate Interface Implementation Collection directories. Error Condition : None
Since
7.0
Pre-condition
CDirChangeNotifier is fully constructed.
Post-condition
CDirChangeNotifier is active on the current scheduler.

DoCancel()

voidDoCancel()[private, virtual]
Intended Usage : The cancel action called by CActive::Cancel(). Error Condition : None
Since
7.0
Pre-condition
CDirChangeNotifier is fully constructed.
Post-condition
CDirChangeNotifier notifications are cancelled and it is no longer active on the current scheduler.

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]
Intended Usage : Called by the notifier RunL leaving.
Since
7.0
Pre-condition
CDirChangeNotifier is fully constructed.
Post-condition
CDirChangeNotifier is returned to a sensible active state.

Parameters

TInt aErrorThe error code that the RunL left with.

RunL()

voidRunL()[private, virtual]
Intended Usage : When the object activates, this is method is called and notifies the CDiscoverer to re-scan the Interface Implementation Collection directories. Error Condition : Not enough memory available to complete the scan.
leave
KErrNoMemory
Since
7.0
Pre-condition
CDirChangeNotifier is fully constructed.
Post-condition
CDirChangeNotifier notifications are cancelled and it is no longer active on the current scheduler.

Member Type Definitions Documentation

Typedef TResourcePathName

typedef TBuf< KEComPlugRSCPathMaxLen >TResourcePathName[private]

The file path for a specific drivethat we are interested in.

Member Data Documentation

CDiscoverer & iDiscoverer

CDiscoverer &iDiscoverer[private]

A reference to its owning class instance

TDriveUnit iDriveUnit

TDriveUnit iDriveUnit[private]

A drive which the notification object watches for.

RFs & iFs

RFs &iFs[private]

A reference to a connected file server instance

TResourcePathName iNotificationFilePath

TResourcePathName iNotificationFilePath[private]