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,
TPriority aPriority = EPriorityStandard
)

Constructor.

Parameters

CDosEventListenerBase * aListener A pointer to the CDosListenerBase-derived object that owns this object.
TPriority aPriority = EPriorityStandard The priority of the CActive object.

~CDosEventNotifier()

~CDosEventNotifier ( )

Destructor.

Member Functions Documentation

ConstructL(RDosServer &)

void ConstructL ( RDosServer & aServer ) [private]

Symbian two-phased constructor.

Parameters

RDosServer & aServer A connected session to the DosServer.

DoCancel()

void DoCancel ( ) [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 & aServer A connected session to the DosServer.
CDosEventListenerBase * aListener A pointer to the CDosListenerBase-derived object that owns this object.

RunError(TInt)

TInt RunError ( TInt aError ) [private, virtual]

It's called by CActive on error situations.

Parameters

TInt aError Symbian error code.

RunL()

void RunL ( ) [private, virtual]

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

StartListeningL(TUint, TInt, TQueueType)

void StartListeningL ( TUint aEvent,
TInt aParamSize,
TQueueType aQueue
)

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

Parameters

TUint aEvent Event to listen to.
TInt aParamSize Size of the parameter that the event is going to carry.
TQueueType aQueue Desired type of the event queue.

Member Data Documentation

TSglQueLink iLink

TSglQueLink iLink

CDosEventListenerBase * iListener

CDosEventListenerBase * iListener [private]

RDosEventRcv iReceiver

RDosEventRcv iReceiver [private]