CWLMNotify Class Reference

class CWLMNotify : public CActive
CWLMNotify offers the notification service. Active object that waits notifications from server. wlmserver.lib
Since
3.0

Inherits from

Constructor & Destructor Documentation

CWLMNotify(MWLMNotify &, RWLMServer &, TUint32)

CWLMNotify ( MWLMNotify & aCallback,
RWLMServer & aServer,
TUint32 aNotificationMask
) [private]

Constructor.

Parameters

MWLMNotify & aCallback Callback interface to forward notifications to application.
RWLMServer & aServer Interface to send requests to server.
TUint32 aNotificationMask Bitmask of notifications to activate.

~CWLMNotify()

~CWLMNotify ( ) [virtual]

Destructor.

Member Functions Documentation

Activate(MWLMNotify &, TUint32)

void Activate ( MWLMNotify & aCallback,
TUint32 aNotificationMask
)

Change the callback interface and activate notifications

Parameters

MWLMNotify & aCallback New callback interface.
TUint32 aNotificationMask Bitmask of notifications to activate.

ConstructL()

void ConstructL ( ) [private]

Second phase construction.

DoCancel()

void DoCancel ( ) [protected, virtual]

(From CActive ) This is called by Cancel() of CActive framework.

NewL(MWLMNotify &, RWLMServer &, TUint32)

CWLMNotify * NewL ( MWLMNotify & aCallback,
RWLMServer & aServer,
TUint32 aNotificationMask
) [static]
Create and activate notification service.
Note:

This activates the notification service already.

Parameters

MWLMNotify & aCallback Callback interface to forward notifications to user process.
RWLMServer & aServer Interface to send requests to server.
TUint32 aNotificationMask Bitmask of notifications to activate.

RunL()

void RunL ( ) [protected, virtual]

(From CActive ) Receive notification.

SetCancelled()

void SetCancelled ( )

Sets the requests cancelled flag so that no new notification requests are done once current notification is complete.

WaitForNotifications()

void WaitForNotifications ( ) [private]

Notification query loop.

Member Data Documentation

MWLMNotify * iCallback

MWLMNotify * iCallback [private]

Callback interface to the client. Not owned by this class.

TBool iCancelRequested

TBool iCancelRequested [private]

Cancel has been requested

TPckgBuf< TWlmNotifyData > iDataPckg

TPckgBuf < TWlmNotifyData > iDataPckg [private]

Data package for return data

TUint32 iNotificationMask

TUint32 iNotificationMask [private]

Bitmask of active notifications.

RWLMServer & iServer

RWLMServer & iServer [private]

Interface to send messages to the server