CAgentAdapterSessionNotifier Class Reference

class CAgentAdapterSessionNotifier : public CBase

This class is an Adapter to allow CAgentBase to Notify for ServiceChangeNotification post-399.

Inherits from

  • CAgentAdapterSessionNotifier

Constructor & Destructor Documentation

CAgentAdapterSessionNotifier(CAgentAdapter *, const Messages::TNodeId &)

CAgentAdapterSessionNotifier(CAgentAdapter *aCreator,
const Messages::TNodeId &aSender
)[private]

Private Constructor to realize Phase #1 Construction.

Parameters

CAgentAdapter * aCreator
const Messages::TNodeId & aSender

~CAgentAdapterSessionNotifier()

~CAgentAdapterSessionNotifier()[virtual]

Destructor. It also complete the internal RResponseMsg returning "KErrCancel" if it was not done before.

Member Functions Documentation

CancelServiceChangeNotification(TInt)

voidCancelServiceChangeNotification(TIntaReason =  KErrCancel )[virtual]

Implementation of MAgentSessionNotify interface. This send back the ServiceChangeNotification to the Client side, but with the Status set to "aReason".

Parameters

TInt aReason =  KErrCancel The Reason for this Cancel. Default value is "KErrCancel".

ConstructL(ESock::RLegacyResponseMsg &)

voidConstructL(ESock::RLegacyResponseMsg &aResponseMsg)[private]

Phase #2 Constructor. It stores a copy the original RResponseMsg to allow to answer "later" to the request of Service Change Notification.

Parameters

ESock::RLegacyResponseMsg & aResponseMsg

NewL(CAgentAdapter *, const Messages::TNodeId &, ESock::RLegacyResponseMsg &)

CAgentAdapterSessionNotifier *NewL(CAgentAdapter *aCreator,
const Messages::TNodeId &aSender,
ESock::RLegacyResponseMsg &aResponseMsg
)[static]

2-Phase Static Constructor.

Parameters

CAgentAdapter * aCreatorCreator of this AgentAdapterSessionNotifier
const Messages::TNodeId & aSenderThe Node which asked to be notified for Serv.Change Notif.
ESock::RLegacyResponseMsg & aResponseMsgAllows to send back the Answer

NewL(CAgentAdapter *, const Messages::TNodeId &)

CAgentAdapterSessionNotifier *NewL(CAgentAdapter *aCreator,
const Messages::TNodeId &aSender
)[static]

2-Phase Static Constructor. This constructor builds an "empty" AgentAdapterSessionNotifier. It does not contain a RResponseMsg. In general, not supposed to be used.

Parameters

CAgentAdapter * aCreatorCreator of this AgentAdapterSessionNotifier
const Messages::TNodeId & aSenderThe Node which asked to be notified for Serv.Change Notif.

NodeId()

const Messages::TNodeId &NodeId()const [virtual]

Return an Id that identify this Agent Session

ServiceChangeNotification(TUint32, const TDesC &)

voidServiceChangeNotification(TUint32aId,
const TDesC &aType
)[virtual]

Implementation of MAgentSessionNotify interface. This send back the ServiceChangeNotification to the Client side, updating the Id and the Type.

Parameters

TUint32 aIdNew ISP
const TDesC & aTypeNew Service Type

operator==(const CAgentAdapterSessionNotifier &)

TBool operator==(const CAgentAdapterSessionNotifier &aOtherInstanceOfThisClass)const [virtual]

Operator to allow the usage of Find(...) inside a R(Pointer)Array container

Parameters

const CAgentAdapterSessionNotifier & aOtherInstanceOfThisClass

Member Data Documentation

CAgentAdapter * iCreator

CAgentAdapter *iCreator[private]

The AgentAdapter which has created this object. This Pointer allows this CAgentAdapterSessionNotifier to remove itself from the Array in the Creator (Queue of S.C. Notifications)

ESock::RLegacyResponseMsg * iResponseMsg

ESock::RLegacyResponseMsg *iResponseMsg[private]

The RResponseMsg to use to answer(notify) the request.

Messages::TNodeId iSender

Messages::TNodeId iSender[private]

This identify "who" asked for being notified.