CApaFsMonitor Class Reference

class CApaFsMonitor : public CBase

Monitors changes in the file system.

If a change is detected, the callback function supplied by the user of the class is called after a 0.25 second delay. If there are further changes, the callback is not called again until 3 seconds have elapsed. It uses RFs::NotifyChange() to request notifications.

RFs::NotifyChange()

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

CApaFsMonitor(RFs &, TCallBack)

CApaFsMonitor(RFs &aFs,
TCallBackaCallBack
)[private]

Parameters

RFs & aFs
TCallBack aCallBack

~CApaFsMonitor()

IMPORT_C~CApaFsMonitor()

Member Functions Documentation

AddLocationL(const TDesC &)

IMPORT_C voidAddLocationL(const TDesC &aLocation)

Parameters

const TDesC & aLocation

AnyNotificationImpending()

TBool AnyNotificationImpending()const

Cancel()

IMPORT_C voidCancel()

DoStart()

voidDoStart()[private]

FsChanged()

voidFsChanged()[private]

NewL(RFs &, const TDesC &, TCallBack)

IMPORT_C CApaFsMonitor *NewL(RFs &aFs,
const TDesC &aLocation,
TCallBackaCallBack
)[static]

Parameters

RFs & aFs
const TDesC & aLocation
TCallBack aCallBack

NotifyType()

IMPORT_C TNotifyTypeNotifyType()const

SetBlocked(TBool)

IMPORT_C voidSetBlocked(TBoolaIsBlocked)

Parameters

TBool aIsBlocked

Start(TNotifyType)

IMPORT_C voidStart(TNotifyTypeaNotifyType)

Parameters

TNotifyType aNotifyType

TimerCallBack(TAny *)

TInt TimerCallBack(TAny *aObject)[private, static]

Parameters

TAny * aObject

Member Data Documentation

TCallBack iCallBack

TCallBack iCallBack[private]

RFs & iFs

RFs &iFs[private]

TBool iFsHasChanged

TBool iFsHasChanged[private]

CPeriodic * iFsTimer

CPeriodic *iFsTimer[private]

TBool iIsBlocked

TBool iIsBlocked[private]

RPointerArray< CApaFsNotifier > iNotifiers

RPointerArray< CApaFsNotifier >iNotifiers[private]

TNotifyType iNotifyType

TNotifyType iNotifyType[private]