ChspsFileChangeListener Class Reference

class ChspsFileChangeListener : public CActive
FileChangeListener listens to given file folder and notifies it observer if there is any file change. Observer is given as a parameter on initialising the listener. Observer must implement MhspsFileChangeObserver-interface. FileChangeListener is asynchronous object that deploys Symbian RFs client-side handle on File Manager. FileChangeListener is intended to be used by any object that wants listen Symbian file system events hspsThemeServer.exe
Since
S60 5.0

Inherits from

Constructor & Destructor Documentation

ChspsFileChangeListener(RFs &, MhspsFileChangeObserver &, TNotifyType, TListenerType)

ChspsFileChangeListener ( RFs & aFs,
MhspsFileChangeObserver & aObserver,
TNotifyType aNotifyType,
TListenerType aListenerType
) [private]

ChspsFileChangeListener C++ default constructor.

Parameters

RFs & aFs
MhspsFileChangeObserver & aObserver
TNotifyType aNotifyType
TListenerType aListenerType

~ChspsFileChangeListener()

~ChspsFileChangeListener ( ) [virtual]

~ChspsFileChangeListener Destructor.

Member Functions Documentation

ConstructL(const TDesC &)

void ConstructL ( const TDesC & aFullPath ) [private]

ConstructL By default Symbian 2nd phase constructor is private.

Parameters

const TDesC & aFullPath

DoCancel()

void DoCancel ( ) [protected, virtual]
DoCancel From CActive Called when asynchronous request was cancelled
Since
S60 3.1

InformObserver()

void InformObserver ( ) [private]
Informs observer InformObserver
Since
S60 3.1

NewL(RFs &, MhspsFileChangeObserver &, TNotifyType, const TDesC &, TListenerType)

ChspsFileChangeListener * NewL ( RFs & aFs,
MhspsFileChangeObserver & aObserver,
TNotifyType aNotifyType,
const TDesC & aPath,
TListenerType aListenerType
) [static]

NewL Two-phased constructor.

Parameters

RFs & aFs
MhspsFileChangeObserver & aObserver
TNotifyType aNotifyType
const TDesC & aPath
TListenerType aListenerType

RunError(TInt)

TInt RunError ( TInt aError ) [protected, virtual]
From CActive Called when asynchronous request has failed RunError
Since
S60 3.1

Parameters

TInt aError

RunL()

void RunL ( ) [protected, virtual]
Set log bus to be used.
Since
S60 3.1

Setup()

void Setup ( )
Setup Sets up the file change listener.
Since
S60 3.1

Member Data Documentation

RFs & iFs

RFs & iFs [private]

TFileName iFullPath

TFileName iFullPath [private]

TListenerType iListenerType

TListenerType iListenerType [private]

TNotifyType iNotifyType

TNotifyType iNotifyType [private]

MhspsFileChangeObserver & iObserver

MhspsFileChangeObserver & iObserver [private]