CHssSrvNotifications Class Reference

class CHssSrvNotifications : public CActive

CHssSrvNotifications offers the notification service. Active object that waits notifications from server.

Inherits from

Constructor & Destructor Documentation

CHssSrvNotifications(MHssSrvNotifications &, RHssInterface &)

CHssSrvNotifications ( MHssSrvNotifications & aCallback,
RHssInterface & aServer
) [private]

Constructor.

Parameters

MHssSrvNotifications & aCallback Callback interface to forward notifications to application.
RHssInterface & aServer Interface to send requests to server.

~CHssSrvNotifications()

~CHssSrvNotifications ( ) [virtual]

Destructor.

Member Functions Documentation

Activate(MHssSrvNotifications &)

void Activate ( MHssSrvNotifications & aCallback )

Change the callback interface and activate notifications

Parameters

MHssSrvNotifications & aCallback New callback interface.

ConstructL()

void ConstructL ( ) [private]

Second phase construction.

DoCancel()

void DoCancel ( ) [protected, virtual]

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

NewL(MHssSrvNotifications &, RHssInterface &)

CHssSrvNotifications * NewL ( MHssSrvNotifications & aCallback,
RHssInterface & aServer
) [static]
Create and activate notification service.
Note:

The notification service is activated in this call.

Parameters

MHssSrvNotifications & aCallback Callback interface to forward notifications to user process.
RHssInterface & aServer Interface to send requests to server.

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

MHssSrvNotifications * iCallback

MHssSrvNotifications * iCallback [private]

Callback interface to the client

TBool iCancelRequested

TBool iCancelRequested [private]

Cancel has been requested

TPckg< THssPckgData > iDataPckg

TPckg < THssPckgData > iDataPckg [private]

Data package for return data

TUint iIapId

TUint iIapId [private]

IapId for notifications

THssPckgData iReturnData

THssPckgData iReturnData [private]

Return data value from server for the asynchronous messages

RHssInterface & iServer

RHssInterface & iServer [private]

Interface to send messages to the server