Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <mmfdatapathproxy.h>
Link against: mmfserverbaseclasses.lib
This item is not part of the S60 5th Edition SDK

Class CMMFDataPathEventMonitor

class CMMFDataPathEventMonitor : public CActive;

Description

Active object utility class that can be used to monitor a datapath that is running in its own thread for events. If an event occurs, the client will be notified via the MMMFDataPathEventMonitorObserver interface.

Derivation

Members

Defined in CMMFDataPathEventMonitor:

Inherited from CActive:

Inherited from CBase:


Construction and destruction


NewL(MMMFDataPathEventMonitorObserver &,RMMFDataPathProxy &)

IMPORT_C static CMMFDataPathEventMonitor* NewL(MMMFDataPathEventMonitorObserver &aObserver, RMMFDataPathProxy &aMMFDataPathProxy);

Description

Constructs a datapath event monitor object.

Parameters

MMMFDataPathEventMonitorObserver &aObserver

A reference to the observer of the active object. The observer will be notified when an event occurs.

RMMFDataPathProxy &aMMFDataPathProxy

A reference to the client datapath proxy class.

Return value

CMMFDataPathEventMonitor *

A pointer to the new event monitor.


~CMMFDataPathEventMonitor()

IMPORT_C ~CMMFDataPathEventMonitor();

Description

Destructor.

Calls CActive::Cancel().

[Top]


Member functions


Start()

IMPORT_C void Start();

Description

Tells the datapath event monitor to start listening for events.

The datapath proxy must have been opened before this method is called.


RunL()

IMPORT_C virtual void RunL();

Description

Internal active object function.

Starts the data path event monitor and handles an event if there is no error status.

Calls HandleEvent on iObserver.


DoCancel()

protected: virtual void DoCancel();

Description

Cancels the outstanding request on iMMFDataPathProxy.