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 & aCallbackCallback interface to forward notifications to application.
RHssInterface & aServerInterface to send requests to server.

~CHssSrvNotifications()

~CHssSrvNotifications()[virtual]

Destructor.

Member Functions Documentation

Activate(MHssSrvNotifications &)

voidActivate(MHssSrvNotifications &aCallback)

Change the callback interface and activate notifications

Parameters

MHssSrvNotifications & aCallbackNew callback interface.

ConstructL()

voidConstructL()[private]

Second phase construction.

DoCancel()

voidDoCancel()[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 & aCallbackCallback interface to forward notifications to user process.
RHssInterface & aServerInterface to send requests to server.

RunL()

voidRunL()[protected, virtual]

(From CActive) Receive notification.

SetCancelled()

voidSetCancelled()

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

WaitForNotifications()

voidWaitForNotifications()[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