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,
TCallBack aCallBack
) [private]

Parameters

RFs & aFs
TCallBack aCallBack

~CApaFsMonitor()

IMPORT_C ~CApaFsMonitor ( )

Member Functions Documentation

AddLocationL(const TDesC &)

IMPORT_C void AddLocationL ( const TDesC & aLocation )

Parameters

const TDesC & aLocation

AnyNotificationImpending()

TBool AnyNotificationImpending ( ) const

Cancel()

IMPORT_C void Cancel ( )

DoStart()

void DoStart ( ) [private]

FsChanged()

void FsChanged ( ) [private]

NewL(RFs &, const TDesC &, TCallBack)

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

Parameters

RFs & aFs
const TDesC & aLocation
TCallBack aCallBack

NotifyType()

IMPORT_C TNotifyType NotifyType ( ) const

SetBlocked(TBool)

IMPORT_C void SetBlocked ( TBool aIsBlocked )

Parameters

TBool aIsBlocked

Start(TNotifyType)

IMPORT_C void Start ( TNotifyType aNotifyType )

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]