CDosEventNotifier Class Reference

class CDosEventNotifier : public CActive

This active object is used to wait for the event provided by the server throught the class RDosEventRcv. It is not recomended to use this class directly but instead use a derived class from CDosEventListenerBase.

Inherits from

Constructor & Destructor Documentation

CDosEventNotifier(CDosEventListenerBase *, TPriority)

CDosEventNotifier(CDosEventListenerBase *aListener,
TPriorityaPriority = EPriorityStandard
)

Constructor.

Parameters

CDosEventListenerBase * aListenerA pointer to the CDosListenerBase-derived object that owns this object.
TPriority aPriority = EPriorityStandardThe priority of the CActive object.

~CDosEventNotifier()

~CDosEventNotifier()

Destructor.

Member Functions Documentation

ConstructL(RDosServer &)

voidConstructL(RDosServer &aServer)[private]

Symbian two-phased constructor.

Parameters

RDosServer & aServerA connected session to the DosServer.

DoCancel()

voidDoCancel()[private, virtual]

It's called by CActve when Cancel() is called and process the cancelation of the request.

NewL(RDosServer &, CDosEventListenerBase *)

CDosEventNotifier *NewL(RDosServer &aServer,
CDosEventListenerBase *aListener
)[static]

NewL that creates the object.

Parameters

RDosServer & aServerA connected session to the DosServer.
CDosEventListenerBase * aListenerA pointer to the CDosListenerBase-derived object that owns this object.

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

It's called by CActive on error situations.

Parameters

TInt aErrorSymbian error code.

RunL()

voidRunL()[private, virtual]

It's called by CActive when the active object is scheduled to be executed.

StartListeningL(TUint, TInt, TQueueType)

voidStartListeningL(TUintaEvent,
TIntaParamSize,
TQueueTypeaQueue
)

Registers the event in the Server and starts the listening for incoming events.

Parameters

TUint aEventEvent to listen to.
TInt aParamSizeSize of the parameter that the event is going to carry.
TQueueType aQueueDesired type of the event queue.

Member Data Documentation

TSglQueLink iLink

TSglQueLink iLink

CDosEventListenerBase * iListener

CDosEventListenerBase *iListener[private]

RDosEventRcv iReceiver

RDosEventRcv iReceiver[private]